(OK) (solved) How restore /cust partition - 华为全网通 honor 5x - KIW-AL10 - B228

 

refer to: https://forum.xda-developers.com/honor-5x/help/how-restore-cust-partition-t3356769


### 笔记本

[root@localhost image]# pwd
/run/media/root/E6B2798BB279614B/智能手机/huawei/honor-5x/KIW-AL10_EMUI3.1_Android5.1_C00B228_zip/dload/image

[root@localhost image]# scp CUST.img 10.109.253.80:/root/tmp/

### 服务器

[root@localhost cm-13-kiwi]#
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64
export PATH=$JAVA_HOME/bin:$PATH
source build/envsetup.sh
lunch

[root@localhost tmp]# pwd
/root/tmp
[root@localhost tmp]#

simg2img CUST.img cust.ext4.img

### 笔记本

[root@localhost KIW-AL10_EMUI3.1_Android5.1_C00B228_zip]# pwd
/run/media/root/E6B2798BB279614B/智能手机/huawei/honor-5x/KIW-AL10_EMUI3.1_Android5.1_C00B228_zip
[root@localhost KIW-AL10_EMUI3.1_Android5.1_C00B228_zip]#

scp 10.109.253.80:/root/tmp/cust.ext4.img cust-C00B228.ext4.img

### cp 到 U 盘

cp cust-C00B228.ext4.img /run/media/root/6266-3234

### dd cust-C00B228.ext4.img

Open adb shell:

[root@localhost KIW-AL10_EMUI3.1_Android5.1_C00B228_zip]# adb shell
~ # df
~ # mount
~ # dd if=/external_sd/cust-C00B228.ext4.img of=/dev/block/mmcblk0p23

Once the dd process has completed, test this worked by mounting the cust partition inside TWRP. If it mounts then the dd worked correctly and your cust is restored.


posted @ 2017-01-13 10:28  张同光  阅读(156)  评论(0编辑  收藏  举报