如果手機(jī)官方?jīng)]有提供線刷包拣宏,和無(wú)法通過(guò)手機(jī)里面提取recovery情況下可以嘗試提供卡刷包來(lái)生成官方recovery.img,當(dāng)然你的OTA卡刷包里面必須要有boot.img咳短、recovery-from-boot.p、install-recovery.sh三個(gè)文件缺一不可蛛淋,然后利用android applypatch來(lái)生成咙好,system/bin/目錄下即可。
1褐荷、applypatch指令幫助:shell@ha3g:/data/local/tmp $applypatch
usage: applypatch [-b ]
[: …]
or applypatch -c [ …]
or applypatch -s
or applypatch -l
2勾效、將applypatch、boot.img、recovery-from-boot.p推送(adb push )到/data/local/tmp/目錄层宫;給予applypatch 755quan3绘迁、打開nstall-recovery.sh文件:#!/system/bin/sh
update_recovery –check-sha1 908410f138130a19caf8fbbc2f2d89496f6caa41 \
–src-sha1 a56291c5b942895ecf64da89e55c5ac444b5a939 \
–tgt-sha1 f44fd8fdc4bc4382fab01f5eb966ee9956b42120 \
–tgt-size 11330560 \
–patch /system/recovery-from-boot.p
其中:src-sha1表示recovery-from-boot.p的sha1值;tgt-size表示recovery的大凶涿堋缀台;tgt-sha1表示recovery的sha1值;
4哮奇、生成命令如下:applypatch :recovery-from-boot.p如:applypatch boot.img recovery.img f44fd8fdc4bc4382fab01f5eb966ee9956b42120 11330560 a56291c5b942895ecf64da89e55c5ac444b5a939:recovery-from-boot.p
5膛腐、生成成功入下圖所示:
applypatch附件下載地址:鏈接:http://pan.baidu.com/s/1qW9e480密碼: 73yj