This page looks best with JavaScript enabled

Flash Rom For My Android

 ·   ·  β˜• 1 min read · πŸ‘€... views

flash twrp recovery

Download TWRP1 recovery for your android device, and probably follow the installation guide there.

Generally, there are two ways of installing the recovery: from a .img file or a .zip file.

backup your boot.img

There’s no recovery partition, recovery is now part of the boot partition.

So in case we break our boot partition, backup it first.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# === On your android shell (adb shell) ===
# cd `find /dev/block/platform -type d -name by-name` # mine is /dev/block/platform/soc/1d84000.ufshc/by-name
# or just
# cd /dev/block/by-name/
cd /dev/block/bootdevice/by-name/
# store the boot partition to /sdcard/boot.img file
dd if=boot of=/sdcard/boot.img

# === On you computer shell ===
# copy the boot.img to your computer
adb pull /sdcard/boot.img

You can restore the boot partition with fastboot.

1
2
# === on your computer shell ===
fastboot flash boot boot.img

Install with the recovery.img file

First temporarily boot into the new recovery.

1
2
adb reboot bootloader
fastboot boot recovery.img

Once booted, make this recovery permanent:

  • navigate to Advanced > Flash Current TWRP option (preferably), or
  • navigate to Advanced > Install Recovery Ramdisk > select the recovery.img file from your phone storage, or
  • as in the next section: install with the recovery.zip file.

Install with the recovery.zip file

If you already have a working recovery, you only need to have this file on you phone storage (no computer needed). And flash this zip file from your recovery.

Navigate to Install > select the recovery.zip file.

flash rom

You can get many useful resources for OnePlus from ε€§δΎ ι˜Ώζœ¨δΊ‘η›˜2.

Wipes

  • Dalvik Cache
  • Cache

Install rom.zip

put the rom.zip file on your phone storage.

boot to recovery, navigate to Install > select the rom.zip file.

Trouble Shooting

  • After flashing a offcial rom for my oneplus 6, my device keeps boots to recovery instead of the system.
    • Solution: go to recovery, Wipe > Format Data.

  1. TWRP is the leading custom recovery for Android phones ↩︎

  2. I downloaded official ROM (many history versions) for my op6 from ε€§δΎ ι˜Ώζœ¨δΊ‘η›˜ ↩︎

Share on