Skip to content

Instantly share code, notes, and snippets.

@BedrockDigger
Created November 21, 2021 10:24
Show Gist options
  • Save BedrockDigger/e646d433b0a7ace9e52505762c4b1b0a to your computer and use it in GitHub Desktop.
Save BedrockDigger/e646d433b0a7ace9e52505762c4b1b0a to your computer and use it in GitHub Desktop.
DEVICE STUCK IN A BOOTLOOP AND UNABLE TO GRAB A LOG?
Forcing adb authorization will help you.
1. Reboot to TWRP
2. Mount _System
_ 3. Execute the following commands via adb
`adb shell 'echo "persist.service.adb.enable=1" >> default.prop'
adb shell 'echo "persist.service.debuggable=1" >> default.prop'
adb shell 'echo "persist.sys.usb.config=mtp,adb" >> default.prop'
adb shell 'echo "persist.service.adb.enable=1" >> /system/build.prop'
adb shell 'echo "persist.service.debuggable=1" >> /system/build.prop'
adb shell 'echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop'
adb push ~/.android/adbkey.pub /data/misc/adb/adb_keys
`* You should now be able to grab a log using adb!
*Source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment