下载路径以及 攻略: https://developers.google.com/android/images
下载对应factory image 按google提供攻略进行。
中途遇到问题:
adb 版本太老会报异常,
error: failed to load 'image-taimen-': Not enough space
下载最新adb 和fastboot替换
没有userdata.img
finished. total time: 0.004s
extracting android-info.txt (0 MB) to RAM...
extracting boot.img (40 MB) to disk... took 0.734s
target reported max download size of 536870912 bytes
archive does not contain 'boot.sig'
archive does not contain 'boot_other.img'
extracting dtbo.img (8 MB) to disk... took 0.037s
archive does not contain 'dtbo.sig'
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting system.img (1866 MB) to disk... took 30.433s
archive does not contain 'system.sig'
extracting system_other.img (590 MB) to disk... took 7.949s
archive does not contain 'system.sig'
extracting vbmeta.img (0 MB) to disk... took 0.004s
archive does not contain 'vbmeta.sig'
extracting vendor.img (341 MB) to disk... took 5.873s
archive does not contain 'vendor.sig'
archive does not contain 'vendor_other.img'
wiping userdata...
CreateProcess failed: 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?(2)
error: Cannot generate image for userdata
Press any key to exit...
extracting android-info.txt (0 MB) to RAM...
extracting boot.img (40 MB) to disk... took 0.734s
target reported max download size of 536870912 bytes
archive does not contain 'boot.sig'
archive does not contain 'boot_other.img'
extracting dtbo.img (8 MB) to disk... took 0.037s
archive does not contain 'dtbo.sig'
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
extracting system.img (1866 MB) to disk... took 30.433s
archive does not contain 'system.sig'
extracting system_other.img (590 MB) to disk... took 7.949s
archive does not contain 'system.sig'
extracting vbmeta.img (0 MB) to disk... took 0.004s
archive does not contain 'vbmeta.sig'
extracting vendor.img (341 MB) to disk... took 5.873s
archive does not contain 'vendor.sig'
archive does not contain 'vendor_other.img'
wiping userdata...
CreateProcess failed: 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?(2)
error: Cannot generate image for userdata
Press any key to exit...
解决方案:
将image-taimen-opm-xxx 解压出来,
分别fastboot flash 进去
如下,
fastboot flash system system.img
重启几次即可。