Preparation#
- Official Android P 090 version base package
- adb tool
- Official Essential driver
- Unlock OEM and enable ADB debugging
Steps#
- Install the driver.
- Download the tool and extract it. In the console (recommended cmd, but powershell also works), enter
adb devices
to check if the phone can be recognized. - Flash Android P 090 base package (double-click flashall.bat after extraction).
- Flash twrp (optional).
- Enter twrp and flash the system and magisk (can be done using adb sideload).
Note#
According to the description in this article, due to the mismatch of the version number of the security firmware, the screen will lose touch in the Opposite partition's Rec. The official also mentioned this issue, and it can be solved by using the adb sideload method:
First execute this line: adb shell twrp sideload
Then execute this line: adb sideload your_prepared_zip_file_name.zip
Alternative solution#
After flashing twrp img, use adb sideload to install twrp installer, and after installation, enter bl to change the partition to partition a to solve the touch loss problem.
# Check the current partition used by your phone
fastboot getvar current-slot
# Change the partition to B or A
fastboot --set-active=b (if it is partition a, change b to a)
Recommended reference article: Zhihu#
Additional Notes:#
- Method to solve the red exclamation mark on startup: When adb is available, enter
adb reboot "dm-verity enforcing"
. - It is recommended to flash twrp-installer immediately after flashing the system, and then flash magisk after restarting. This is safer.
- Rescue method for being stuck in fastboot after flashing Magisk-modified BOOT