-Play 3x flash (based on Ubuntu)-
Prepare
1. Turn off the phone, press and hold the volume down button without releasing it, connect the data cable to the phone, and then it will enter fastboot mode.
2. Huawei and Samsung mobile phones need to be unlocked and unlocked on the official website. Phones that do not need to be unlocked can skip this step.
3. Prepare the SD card and import the ROM package to be downloaded. If it is a forced flash, you need to decompress it, and there will be /dload/UPDATE.ZIP file.
4. If the card is swiped, you also need to extract the img in update.app: a) split_update.pl-master decompression. b) chmod +x splitupdate. c) ./splitupdate update.app
Card swipe
sudo fastboot oem unlock ****************** //Unlock
sudo fastboot oem get-bootinfo //Determine whether the unlocking is successful. If successful, unlocked will be displayed.
sudo fastboot flash recovery recovery.img //Write recovery.img (official recovery will be erased)
sudo fastboot reboot [bootloader/recovery] //Restart the phone, hold down the volume up + power keys, enter rec mode, find the ROM package and flash it. (If it is a third-party rec, you may press and hold the volume up and down keys to enter.)
Strong refresh: volume up and down keys + power key
Line brush
fastboot erase boot
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot reboot