Merge branch 'master' into develop

This commit is contained in:
HappyZ 2019-07-30 14:08:22 -05:00
commit 3b2c38bdb1
23 changed files with 17 additions and 29 deletions

View File

@ -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**!

View File

@ -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

View File

@ -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

View File

@ -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':

View File

@ -0,0 +1 @@
Notice: unpacker works fine, but packer didn't work as expected.