1.adb reboot bootloader
2.fastboot format cache //清除cache分区
3.fastboot format userdata //清除userdata分区
4.fasboot flash system system.img
5.fastboot reboot
---------------------------------------------------------------------------------------------------------------------------
fastboot刷机失败提示:
FAILED (remote: device is locked. Cannot erase)
执行以下指令解锁
adb reboot bootloader
fastboot oem unlock-go
adb reboot
---------------------------------------------------------------------------------------------------------------------------
单刷img:
fastboot flash sbl1 sbl1.mbn
fastboot flash aboot emmc_appsboot.mbn //开机logo和slb2阶段, 开机检测按键进入何种模式,downlaod模式或者recovery模式或者启动android,logo更改单刷生效// make aboot
fastboot flash sec sec.dat
fastboot flash tz tz.mbn
fastboot flash rpm rpm.mbn
fastboot flash boot boot.img //kernel及rootfs
fastboot flash modem NON-HLOS.bin //modem相关
fastboot flash xzd xzd.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash persist persist.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash lock lock.img
fastboot flash pslock pslock.img