diff --git a/README.md b/README.md index e30bf29..4b42e6c 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Donate via [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](htt Note: Scripts and mods are only tested on MacOS, and are provided AS-IS for study purpose. I do not plan to support all platforms. Use it at your own risks. +07/05/2019: I will stop updating this tool and making new PKGs as there is nothing more interesting to explore. Gotta move on, guys and gals. I'll keep an eye on the issues though, and try my best to resolve them when I get time. Thanks. + # 0x1 Special Thanks @@ -44,6 +46,8 @@ make ./simg2img sparse_image_file_path generated_mountable_file_path ``` +Note: the repacked image, though legit, cannot be recognized by the DPT device. It may have to do with the unknown executable `extract_sparse_file`. + # 0x4 Tutorials Most people would be interested in [the Rooting Guide](https://github.com/HappyZ/dpt-tools/wiki/The-Ultimate-Rooting-Guide) and [the Upgrading Guide](https://github.com/HappyZ/dpt-tools/wiki/The-Upgrade-Guide). As usual: **read carefully before proceed**! diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/boot-1.6.00.15110-mod-190516.img.md5 b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/boot-1.6.00.15110-mod-190516.img.md5 deleted file mode 100644 index 83dd330..0000000 --- a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/boot-1.6.00.15110-mod-190516.img.md5 +++ /dev/null @@ -1 +0,0 @@ -0badb67ed237d73e653b70de32912e7e diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/version b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/version deleted file mode 100644 index 56ce25b..0000000 --- a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/version +++ /dev/null @@ -1 +0,0 @@ -1.6.00.15110 general \ No newline at end of file diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater.pkg b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater.pkg similarity index 57% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater.pkg rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater.pkg index ca955a4..39633cd 100644 Binary files a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater.pkg and b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater.pkg differ diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/animation.sh b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/animation.sh similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/animation.sh rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/animation.sh diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/boot-1.6.00.15110-mod-190516.img b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/boot-1.6.02.06240-mod-190730-115824.img similarity index 67% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/boot-1.6.00.15110-mod-190516.img rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/boot-1.6.02.06240-mod-190730-115824.img index 983acd6..12a61b3 100644 Binary files a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/boot-1.6.00.15110-mod-190516.img and b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/boot-1.6.02.06240-mod-190730-115824.img differ diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/boot-1.6.02.06240-mod-190730-115824.img.md5 b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/boot-1.6.02.06240-mod-190730-115824.img.md5 new file mode 100644 index 0000000..d55466f --- /dev/null +++ b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/boot-1.6.02.06240-mod-190730-115824.img.md5 @@ -0,0 +1 @@ +3c4f298849c2de0229d0ea3bde71798e diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/chkver.sh b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/chkver.sh similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/chkver.sh rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/chkver.sh diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/eufwupdater.sh b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/eufwupdater.sh similarity index 51% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/eufwupdater.sh rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/eufwupdater.sh index f6ff083..f14eeda 100755 --- a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/eufwupdater.sh +++ b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/eufwupdater.sh @@ -4,7 +4,7 @@ UPDATER_BASE=$(dirname ${0}) ANIM_PID=0 EPOCH=$(date +%s) -LOG_FP=/root/updater_$EPOCH.log +LOG_FP=/root/updater_bootimg_$EPOCH.log echo "" > $LOG_FP # start animation script @@ -12,24 +12,11 @@ ${UPDATER_BASE}/animation.sh $LOG_FP & ANIM_PID=$! sleep 2 -# bypass version check -# # version check -# ${UPDATER_BASE}/chkver.sh ${UPDATER_BASE}/version $LOG_FP -# if [ "$?" -eq 0 ] -# then -# echo "[updater.sh] version check OK" >> $LOG_FP -# else -# echo "[updater.sh] version check NG (TBD)" >> $LOG_FP -# # strange version Package, so we must not install this package !! -# exit 0; -# fi -# sync - # flash customized boot img echo "[updater.sh] writing boot.img.." >> $LOG_FP -if [ -f ${UPDATER_BASE}/boot-1.6.00.15110-mod-190516.img ] ; +if [ -f ${UPDATER_BASE}/boot-1.6.02.06240-mod-190730-115824.img ] ; then - dd if=${UPDATER_BASE}/boot-1.6.00.15110-mod-190516.img of=/dev/mmcblk0p8 bs=4M + dd if=${UPDATER_BASE}/boot-1.6.02.06240-mod-190730-115824.img of=/dev/mmcblk0p8 bs=4M sync else echo "[updater.sh] desired boot.img not exit; nothing did to boot partition" >> $LOG_FP @@ -46,15 +33,6 @@ else echo "[updater.sh] verify check NG, shudown, will retry upon boot up" >> $LOG_FP fi -# # enable su in adb shell -# echo "[updater.sh] run getsu.sh" >> $LOG_FP -# ${UPDATER_BASE}/getsu.sh $LOG_FP -# if [ ! $? -eq 0 ] -# then -# # shutdown, remove update, error occurs -# RET=$? -# fi - sleep 2 # stop animation diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status01.bmp b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status01.bmp similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status01.bmp rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status01.bmp diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status02.bmp b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status02.bmp similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status02.bmp rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status02.bmp diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status03.bmp b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status03.bmp similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status03.bmp rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status03.bmp diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status04.bmp b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status04.bmp similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status04.bmp rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status04.bmp diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status05.bmp b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status05.bmp similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status05.bmp rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status05.bmp diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status06.bmp b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status06.bmp similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status06.bmp rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status06.bmp diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status07.bmp b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status07.bmp similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/images/status07.bmp rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/images/status07.bmp diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/usbmemupdater.sh b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/usbmemupdater.sh similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/usbmemupdater.sh rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/usbmemupdater.sh diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/verify.sh b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/verify.sh similarity index 71% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/verify.sh rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/verify.sh index 9e1cfae..893aaec 100755 --- a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/FwUpdater/verify.sh +++ b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/verify.sh @@ -5,11 +5,11 @@ echo 3 > /proc/sys/vm/drop_caches LOG_FP=$2 -BOOT_IMG_SIZE=`stat -c%s $1/boot-1.6.00.15110-mod-190516.img` +BOOT_IMG_SIZE=`stat -c%s $1/boot-1.6.02.06240-mod-190730-115824.img` BLK8_MD5=`dd if=/dev/mmcblk0p8 bs=$BOOT_IMG_SIZE count=1 | md5sum | cut -d " " -f1` -BOOT_MD5=`cat $1/boot-1.6.00.15110-mod-190516.img.md5` +BOOT_MD5=`cat $1/boot-1.6.02.06240-mod-190730-115824.img.md5` echo "BLK08=$BLK8_MD5" >> $LOG_FP echo " BOOT=$BOOT_MD5" >> $LOG_FP diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/version b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/version new file mode 100644 index 0000000..83245f7 --- /dev/null +++ b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/FwUpdater/version @@ -0,0 +1 @@ +1.6.02.06240 general \ No newline at end of file diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/aes.key b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/aes.key similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/aes.key rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/aes.key diff --git a/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/init_vector b/fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/init_vector similarity index 100% rename from fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.00.15110/init_vector rename to fw_updater_packer_unpacker/pkg_example/flashable_mod_boot_img_1.6.02.06240/init_vector diff --git a/python_api/libInteractive.py b/python_api/libInteractive.py index 7031bc1..286d2fa 100644 --- a/python_api/libInteractive.py +++ b/python_api/libInteractive.py @@ -404,6 +404,11 @@ def diagnosis_mode(dpt): dpt.info_print('3. Press POWER button once. Then light blinks yellow') dpt.info_print('4. Release HOME button, a black square will show up') dpt.info_print('5. Connect to computer') + dpt.info_print('6. (Windows) After step 5 you can use device manager to find which COM port DPT is connected to. E.g. COM5') + dpt.info_print('Notice that if your DPT is in diagnosis mode, you can exit it by pressing the reset button.') + dpt.info_print('If this program exits, and your DPT is still in diagnosis mode,') + dpt.info_print('you get here again by starting with parameter --diagnosis') + dpt.info_print('It is also possible to interact with diagnosis mode with a serial terminal, such as putty.') try: resp = input('>>> Black square on the screen? [yes/no]: ') if resp == 'no': diff --git a/systemimg_packer_unpacker/README.md b/systemimg_packer_unpacker/README.md new file mode 100644 index 0000000..1719c55 --- /dev/null +++ b/systemimg_packer_unpacker/README.md @@ -0,0 +1 @@ +Notice: unpacker works fine, but packer didn't work as expected.