This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I got it to work :) | |
NOTE: This requires unlocked bootloader. | |
Connect the device to Mac or PC in recovery mode. (I had to map the process in my mind as the screen was broken). | |
Now open terminal/CMD in computer and go to platform-tools/. type and enter ./adb devices to check if the device is connected in recovery mode. | |
Now type ./adb shell mount data and ./adb shell mount system to mount the respective directories. | |
Get the persist.sys.usb.config file in your system using ./adb pull /data/property/persist.sys.usb.config /Your directory | |
Now open that file in a texteditor and edit it to mtp,adb and save. | |
Now push the file back in the device; ./adb push /your-directory/persist.sys.usb.config /data/property |