interesting files to look at

This commit is contained in:
HappyZ 2018-08-19 19:54:25 -07:00
parent 8bef4693ec
commit bc78cba61e
12 changed files with 104 additions and 0 deletions

15
batch_decode.sh Executable file
View File

@ -0,0 +1,15 @@
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

Binary file not shown.

Binary file not shown.

BIN
extracted_apk/DPUpdater/system/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,45 @@
#!/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

@ -0,0 +1,14 @@
#!/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

Binary file not shown.

View File

@ -0,0 +1,30 @@
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

BIN
extracted_apk/Dpcif/arm/Dpcif.dex Executable file

Binary file not shown.

BIN
extracted_apk/Dpcif/arm/Dpcif.jar Executable file

Binary file not shown.