谈谈[Java教程]Mac系统下使用Fastboot线刷安卓设备

[复制链接]
查看1651 | 回复1 | 2020-10-22 13:42:56|发表时间:2020-10-22 13:42:56| 显示全部楼层 |阅读模式

raw.githubusercontent.com域名被污染,如果报错,host文件添加如果能实践这几点,javascript定能独树一帜,成为行业的佼佼者,并不断的前行着。


199.232.68.133 raw.githubusercontent.com安装安卓工具brew cask install android-platform-tools解压fastboot线刷固件,cd到含boot.img、system.img、cache.img等文件的文件夹下开始刷机1.设备打开USB选项

【关于设备】连续点击内核版本 直到弹出已处于开发者模式

【设置】-- 【开发者选项】-- 【USB调试】

2.adb查看设备连接状态

[email protected] emmc % adb devicesList of devices attached1af7de5        device3.adb进入fastboot模式

[email protected] emmc % adb reboot bootloader4.fastboot查看设备

[email protected] emmc % fastboot devices  1af7de5        fastboot5.fastboot抹掉旧系统,写入新系统,依次执行以下命令

抹掉旧版本分区内容 1. fastboot erase boot 2. fastboot erase system 3. fastboot erase userdata 4. fastboot erase recovery 刷入对应分区内容 1. fastboot flash boot boot.img 2. fastboot flash system system.img 3. fastboot flash userdata userdata.img 4. fastboot flash recovery recovery.img 重启搞定 fastboot reboot[email protected] emmc % fastboot erase bootErasing 'boot'          OKAY [ 0.004s]Finished. Total time: [email protected] emmc % fastboot erase systemErasing 'system'         OKAY [ 0.004s]Finished. Total time: [email protected] emmc % fastboot erase userdataErasing 'userdata'         OKAY [ 0.005s]Finished. Total time: [email protected] emmc % fastboot erase recoveryErasing 'recovery'         OKAY [ 0.004s]Finished. Total time: [email protected] emmc % fastboot flash boot boot.imgSending 'boot' (6388 KB)       OKAY [ 0.207s]Writing 'boot'          OKAY [ 0.506s]Finished. Total time: [email protected] emmc % fastboot flash system system.imgSending 'system' (511318 KB)      ERROR: usb_write failed with status e00002eb  此处如果有类似报错,可以报错后等待3min左右的写入时间(我这边虽然报错,但实际上正在Writing),再执行下一步FAILED (Write to device failed in SendBuffer() (No such file or directory))fastboot: error: Command [email protected] emmc % fastboot flash userdata userdata.imgSending 'userdata' (35889 KB)      OKAY [ 1.198s]Writing 'userdata'         OKAY [ 2.083s]Finished. Total time: [email protected] emmc % fastboot flash recovery recovery.imgSending 'recovery' (6778 KB)      OKAY [ 0.229s]Writing 'recovery'         OKAY [ 0.331s]Finished. Total time: [email protected] emmc % fastboot rebootRebooting 6.Okay!
回复

使用道具 举报

不错
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则