Skip to content

Instantly share code, notes, and snippets.

@notpushkin
Last active July 31, 2019 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notpushkin/038cbb73073e468778eb6a714096a990 to your computer and use it in GitHub Desktop.
Save notpushkin/038cbb73073e468778eb6a714096a990 to your computer and use it in GitHub Desktop.
# reboot to recovery and connect via adb shell:
twrp wipe system
twrp wipe data
twrp install /sdcard/lineage-*.zip
twrp remountrw
setprop persist.service.adb.enable 1
setprop persist.service.debuggable 1
setprop persist.sys.usb.config mtp,adb
setprop persist.sys.root_access 2
setprop ro.setupwizard.mode DISABLED
# leave adb shell and push your adb key:
adb push ~/.android/adbkey.pub /data/misc/adb/adb_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment