Merge branch 'master' into develop

This commit is contained in:
HappyZ 2019-02-03 15:53:48 -06:00
commit fa33e912b1
17 changed files with 2 additions and 7078 deletions

View File

@ -2,11 +2,7 @@
Donate via [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=zhuyanzi@gmail.com&item_name=A+Cup+Of+Coffee&item_number=Thank+You&currency_code=USD), or if you can, please simply go to [my blog post here](https://blog.happyz.me/2018/dpt-rp1-can-now-gain-root-access/) and *click* the Google advertisement for me to get a sip of coffee.
In the new year, I'll focus on ways to avoid a permanent brick, and making flashable PKGs to ease every installs and mods.
Greatly thank all who donated. Thanks for being supportive to all and we are a great community. Happy new year!
Note on 12/28/2018: :D great news! My DPT is alive (not in my hand yet)! I'll be much more careful in the new year.
Note: Scripts and mods are only tested on MacOS. I do not plan to support all platforms. Use it at your own risks.
# 0x1 Special Thanks
@ -15,6 +11,7 @@ Greatly thank
* [octavianx](https://github.com/octavianx/Unpack-and-rebuild-the-DPT-RP1-upgrade-firmware) who sheds light on the hack
* [janten](https://github.com/janten/dpt-rp1-py) who initiates the commandline tool for web APIs
* `silvertriclops` who points out bugs in `get-su-bin` and "forces" me to test it :D
* Thank all who who donated. Thanks for being supportive to all and we are a great community.
# 0x2 What does DPT stand for?

View File

@ -1,15 +0,0 @@
for each in $(find ./extracted_apk -type f -name "*.odex");
do
mkdir ${each%/*}/out;
java -jar ../dex2jar/oat2dex.jar -o ${each%/*} odex $each;
java -jar ../dex2jar/baksmali-2.2.4.jar disassemble ${each/odex/dex} -o ${each%/*}/out
java -jar ../dex2jar/smali-2.2.4.jar assemble ${each%/*}/out -o ${each/odex/dex}
../dex2jar/d2j-dex2jar.sh ${each/odex/dex} -o ${each%.*}.jar;
rm -rf ${each%/*}/out
done
for each in $(find ./extracted_apk -type f -name "*.apk");
do
mkdir ${each%/*}/out;
apktool d $each -o ${each%/*}/out -f;
done

View File

@ -1,45 +0,0 @@
#!/system/bin/sh
SERIAL_COMF_COM="busybox stty -F /dev/ttyGS0"
IFUP_RETRY=5
IFUP_IVAL=500000
if test $1 == "serial_conf_setup"
then
${SERIAL_COMF_COM} raw
fi
if test $1 == "serial_conf_recover"
then
${SERIAL_COMF_COM} -raw
fi
if test $1 == "ifup"
then
IF_NAME=${2}0
busybox usleep ${IFUP_IVAL}
for I in `busybox seq ${IFUP_RETRY}`
do
busybox usleep ${IFUP_IVAL}
busybox ifconfig ${IF_NAME} up
if test $? -eq 0
then
break
fi
if test ${I} -eq ${IFUP_RETRY}
then
exit -1
fi
done
ip -6 route add fe80::/64 dev ${IF_NAME} metric 256 table local
fi

View File

@ -1,14 +0,0 @@
#!/system/bin/sh
if [ -e "/sdcard/dmesg" ]
then
rm /sdcard/dmesg
fi
if [ -e "/sdcard/dumpsys" ]
then
rm /sdcard/dumpsys
fi
chmod 666 /sys/fs/pstore/*
dmesg > /sdcard/dmesg
dumpsys > /sdcard/dumpsys

View File

@ -1,30 +0,0 @@
device=/dev/zero
result=NG
destructor ()
{
echo $result
}
trap destructor 0 2 11 15
case $1 in
normal)
;;
recovery)
device=/dev/urandom
;;
*)
exit 1
;;
esac
if rawdata --set_dump=boot_mode < $device; then
result=OK
fi

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff