zoukankan      html  css  js  c++  java
  • (OK) (solved) How restore /cust partition

    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.


  • 相关阅读:
    Python3连接MySQL
    jQuery
    Python之路--协程
    java面向对象练习题
    java基础语法4--封装,继承,多态
    java基础编程题
    java基础语法——方法,static关键字
    java基础语法3
    java基础语法2
    java基础语法1
  • 原文地址:https://www.cnblogs.com/ztguang/p/12644996.html
Copyright © 2011-2022 走看看