Skip to content

Instantly share code, notes, and snippets.

@c7x43t
Last active August 24, 2021 18:45
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 c7x43t/c66ee911c2dc9485e45f6606e91e333f to your computer and use it in GitHub Desktop.
Save c7x43t/c66ee911c2dc9485e45f6606e91e333f to your computer and use it in GitHub Desktop.
fastboot boot twrp-3.5.2_9-0-jasmine_sprout.img
adb reboot bootloader
fastboot flashing unlock
# adb boot into fastboot:
adb reboot bootloader
fastboot flash recovery twrp.img
# if error: FAILED (remote: '(recovery_b) No such partition')
fastboot getvar current-slot # -> <letter> , then:
fastboot flash boot_<letter> <filename>.img
fastboot flash boot_b twrp.img
fastboot boot_b twrp.img
fastboot boot twrp.img
fastboot reboot
to exit
fastboot reboot
or
fastboot continue
In TWRP you do this by going to Advanced then ADB Sideload.
adb sideload: # https://download.lineageos.org/jasmine_sprout
adb sideload lineage-18.1-20210731-nightly-jasmine_sprout-signed.zip
# https://wiki.lineageos.org/gapps.html
adb sideload MindTheGapps-11.0.0-arm64-20210412_124247.zip
adb sideload Magisk-v23.0.zip
# boot into recovery via adb
adb reboot recovery
## some additional notes
adb reboot bootloader
fastboot -i 0x0421 boot twrp-3.5.2_9-0-dipper.img
fastboot boot twrp-3.5.2_9-0-dipper.img
fastboot devices
fastboot oem unlock
fastboot getvar unlocked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment