安装android-platform-tools

fastboot –version

进入fastboot模式

adb reboot bootloader
没有开机:开机键+音量下长按

查看当前手机设备名
fastboot devices

sh ./flash_all.sh -s 11b39c8f

如果需要擦除全部数据就把线刷包里的flash_all.sh拖进终端窗口

如果需要擦除所有数据并保留SD卡和data分区的把flash_all_except_data_storage.sh拖进终端窗口

如果需要擦除所有数据并保留SD卡数据的把flash_all_except_storage.sh拖进终端窗口