Skip to content

Instantly share code, notes, and snippets.

@r0mflip
Created September 2, 2018 12:31
Show Gist options
  • Save r0mflip/8bdc4ddde17c2136a7525e6806530f2f to your computer and use it in GitHub Desktop.
Save r0mflip/8bdc4ddde17c2136a7525e6806530f2f to your computer and use it in GitHub Desktop.
Custom ROM mashup

Pre run steps

  • Enable developer features
  • Allow USB debugging
  • Get adb permissions(handshake) atleast once
  • Enable OEM unlocking

Unlock

Unlock the device recovery by painstakingly following the steps for the respective model.

Mostly VolDown+Power for fastboot mode and VolUp+Power for recovery mode

Boot twrp

Get into fastboot and boot twrp image

fastboot boot twrp.img

Wipe

Wipe to your hearts content. Encrypted errors can be seen if the device isn't unlocked.

Start sideload

Start the sideload

adb sideload rom.zip

Post run steps

  • If the ROM booted perfectly, no need to flash twrp
  • If you love twrp, then flash it
    • Get into fastboot and run fastboot flash recovery twrp.img
    • Optionally install twrp app
  • If the device allows you to lock the recovery after installing an unsigned boot.img, then do so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment