banner
小忧忧

Hi,小忧忧

比起昨天还要高,比起前天连升八度!
github
tg_channel

OnePlus 8 Series Phone Flashing Tutorial

Everyone may encounter different situations. The author tries to cover most scenarios. If you have suggestions or changes, you can join the feedback group at the bottom of the article.
❗Please read this article completely before starting to flash your phone;

Other tutorials:

Other recommendations:

Step 1: Download ROM, Drivers, Tools#

In some cases, you may not be able to access github. You can download Watt Toolkit to select GitHub acceleration and enable hosts proxy mode.

The package name usually includes the phone code (be careful not to download the wrong one).

ModelCode
OnePlus 8instantnoodle
OnePlus 8Tkebab
OnePlus 8 Proinstantnoodlep
OnePlus 9lemonade
OnePlus 9Rlemonades
OnePlus 9 Prolemonadep

Use the OnePlus rescue package to flash the phone to OOS or the version you want.

Drivers & Tools#

Required Rescue Package#

It is recommended to download the rescue package from @Daxia Amu at “Daxia Amu Cloud”.

Step 2: Install Drivers#

  • Open the "OnePlus Toolbox" and enter the relevant numbers to install the drivers.
  • Open and install the Fastboot and 9008 drivers downloaded above (recommended).

Step 3: Unlock Bootloader#

  1. Enable USB debugging and OEM on the phone.
    • Hydrogen OS: Enter developer mode to enable OEM unlocking and USB debugging.
    • Oxygen OS: Log in to your Google account, then enter developer mode to enable OEM unlocking and USB debugging.
    • Other stock-like ROMs: Ensure the base package is the required base package for the stock-like ROM you are about to flash.
  • Enter Fastboot mode and unlock the bootloader.
    Press Windows+R to open the run box, type Cmd and press Enter to enter the command line. After connecting the phone to the computer, enter the following commands in the Cmd command line in order:

    1. Enter bootloader
    adb reboot bootloader
    
    1. Check if connected to fastboot
    fastboot devices
    
    1. Unlock bootloader
    fastboot oem unlock
    

    After entering, use the phone's volume up and down keys to select in the subsequent interface, and use the power button to confirm the unlock was successful. (This will erase phone data and restart.)

Step 4: Flash Recovery, ROM#

Preparation#

  • Download the ROM package, extract payload.bin, and use the Fastboot Enhance tool downloaded above to extract dtbo.img, vbmeta.img, vbmeta_system.img, recovery.img, and boot.img files from payload.bin.
  • Extract and open the ADB toolbox folder downloaded above, and enter the platform-tools directory.
  • Place the extracted img files and the downloaded ROM zip package into platform-tools.
  • In the address bar of the file explorer, type cmd and press Enter to open the command line (this operation opens the command line in the current directory to resolve issues where certain driver versions do not have related commands).

image

Flash Recovery#

With the phone powered on, enter adb reboot bootloader to enter fastboot mode;
In the just opened cmd window, run the following commands in order to disable AVB verification1 and flash recovery and dtbo.

  1. Flash boot
fastboot flash boot boot.img
  1. Disable VAB (if the ROM official tutorial provides a vbmeta image, you can directly fastboot flash
vbmeta vbmeta.img to flash the provided image)
  1. If flashing the official image provided by the ROM cannot disable vba verification, it is recommended to extract the vbmeta image from the OTA package of your phone's system.
fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
fastboot flash --disable-verity --disable-verification vbmeta_system vbmeta_system.img
  1. Flash dtbo
fastboot flash dtbo dtbo.img
  1. Flash recovery (the image can be from ROM unpacking or provided by the official tutorial)
fastboot flash recovery recovery.img

After successful flashing, use the phone's volume up and down keys to select recovery mode and then press the power button to confirm the reboot into recovery.

Flash ROM#

In Recovery, select (you can use volume + - to select and power to confirm or touch screen) Apply Update → Apply from ADB to enter ADB sideload;
In the computer cmd, enter the following command and press Enter to flash (if the ROM you flashed already contains the related images, this operation is not necessary)

adb sideload [drag the AB partition unified package or firmware package directly into the cmd window]

If the path contains Chinese or special characters, you need to wrap the path with Western quotes, as shown below:

adb sideload "D:\Downloads\ExampleROMFile.zip"

If you encounter issues where using Windows PowerShell or CMD to drag files does not generate a path, you can directly enter the file path (if the path contains Chinese, please wrap it with English double quotes or single quotes, generally the format is adb sideload "E:\adb fastboot tools\recovery.img").

image

Usually, ADB will report the following, and these can all normally start and reboot.
(Be sure to double wipe)

Stops at 47% and reports
Total xfer: 1.00x
adb: failed to read command: Success
In some cases, it may also report
adb: failed to read command: No error
adb: failed to read command: Undefined error: 0

In some cases, you may not be able to boot normally. In this case, you can try using the Fastboot Enhance Tool downloaded above to flash the payload.bin file from the ROM package, with similar effects.

image

If the problem persists, please confirm whether the base package you flashed is correct and whether AVB verification is disabled;⌛ Praying for the girl...

  • After flashing is complete, return, click Advanced → Reboot to recovery to restart Recovery.
  • Click Factory Reset → Format data / factory reset to double wipe (this will delete all files stored in internal storage and format the cache partition, if any).
  • After completion, click the back arrow in the upper left corner of the screen, then click Reboot system now to restart into the system.

Step 4: ROOT (Optional)#

Magisk#

Patch Method#

  1. With the phone powered on, transfer the downloaded Magisk.apk installation package and the extracted boot.img to the phone via data cable or other effective means.
  2. Install and open Magisk, select the first option to install → Choose and patch a file → Select the boot.img imported to the phone. After completion, an img image will be generated in the phone's Download directory. Export this image to the computer.
  3. In cmd, enter adb reboot bootloader or turn off the phone and press “volume down + power” to enter Fastboot mode, then enter the following command:
    fastboot flash boot [drag the just generated img image into the cmd command line]
    

Others#

  1. ADB sideload
    Rename Magisk.apk to Magisk.zip on the computer, enter Recovery, click Apply Update → Apply from ADB, then enter the following command to flash:

    adb sideload Magisk.zip
    
  2. Fastboot Enhance
    Enter the Fastboot Enhance tool, search for the boot partition, and flash the generated img image to the corresponding partition.
    image

  3. After flashing is complete, use the power button to confirm the default option start in fastboot to boot the system. Open Magisk again to see that root access has been successfully obtained.

KernelSU#

  1. Download the required kernel.
    Here are a few kernels I have flashed (can be supplemented with feedback):
    • TP_KËRNEL
    • Meteoric
      No build version on GitHub, you can build it yourself or flash someone else's build, such as DerpFest-KernelSU (search for it yourself).
    • Horizon (Android 11)
      Outdated (you can search for related topics on Coolapk 8 series, where some experts have compiled versions).
    • Self-compiled/created (
  2. Use adb sideload or KernelFlasher to push the compiled package.
  3. Use KernelSU to manage ROOT permissions and modules.

Communication & Feedback?#

If you have questions about the article or need help, you can leave a message in the comments or join the QQ group 1+8/8T/8P Communication for feedback. Thank you!

Reference articles:
Sebastian Stan @coolapk's OnePlus 8 Series Android 11 General Stock-like Flashing Tutorial and ROOT
Huang Datou 123 @coolapk's OnePlus 8P Various Stock ROM Download Links
Magisk install
Install PixelExperience on instantnoodlep

Footnotes#

  1. AVB: Verifies Android images, completing the entire secure boot; the bootloader verifies the signature of vbmeta, and then uses the key and hash value of vbmeta to verify dtbo, boot, system, vendor.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.