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.


  • 相关阅读:
    分布式事务
    事务
    shell 脚本编写
    使用fail2ban 防止ssh暴力破解
    数据加密
    英文字符串排序算法
    SpringCloud-ServerConfig 配置中心服务端 / 客户端
    maven setting参考配置
    java面向对象设计原则
    Java Object
  • 原文地址:https://www.cnblogs.com/ztguang/p/12644996.html
Copyright © 2011-2022 走看看