前言:
在进行逆向学习时,对手机刷机,出现了问题,因此来记录一下,希望对正在学习中的你有所帮助
在谷歌镜像官网中有关于刷机的文档,然而在进行刷机时,则出现了错误
https://developers.google.com/android/images
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.019s]
Checking 'version-bootloader' OKAY [ 0.020s]
Checking 'version-baseband' OKAY [ 0.019s]
Snapshot cancel FAILED (remote: 'unknown command')
fastboot: error: Command failed
在尝试n变后,于是进行了大量搜索,最终找到一个解决方案
https://stackoverflow.com/questions/60443933/adb-fastboot-error-when-flasing-rom-failed-remote-unknown-command
> unzip [downloaded zip file]
> cd [new directory]
> unzip image-[device specific].zip
inflating: android-info.txt
inflating: vendor.img
inflating: boot.img
inflating: recovery.img
inflating: system.img
> fastboot flash boot boot.img
> fastboot flash bootloader bootloader-[device specific].img
> fastboot reboot-bootloader
> fastboot flash radio radio-[device specific].img
> fastboot flash recovery recovery.img
> fastboot flash system system.img
不过在执行最后一条命令时,出现了问题
于是又尝试了一次,然后命令执行成功
等待一段时间就会刷机成功
后序
由于本人刚学并不知道其中的原理,欢迎各位大佬进行留言指教