SHOW:
|
|
- or go back to the newest paste.
| 1 | #!/bin/bash | |
| 2 | ||
| 3 | ANDROID_JARS_PATH="/home/geoffrey/These/decompiler/android-platforms/" | |
| 4 | JAVA_CLASSPATH="\ | |
| 5 | /home/geoffrey/These/decompiler/Dexpler/soot-github/lib/soot-develop.jar:\ | |
| 6 | /home/geoffrey/These/decompiler/Dexpler/soot-github/libs/AXMLPrinter2.jar:\ | |
| 7 | /home/geoffrey/These/decompiler/Dexpler/soot-github/libs/baksmali-1.3.2.jar:\ | |
| 8 | " | |
| 9 | ||
| 10 | APK_FILE=$1 | |
| 11 | SOOT_OUT_DIR=$2 | |
| 12 | ||
| 13 | PROCESS_THIS=" -process-dir $APK_FILE" | |
| 14 | SOOT_CLASSPATH="\ | |
| 15 | /usr/lib/jvm/java-7-openjdk/jre/lib/jce.jar:\ | |
| 16 | "${APK_FILE}":\
| |
| 17 | " | |
| 18 | ||
| 19 | - | SOOT_CMD_JIMPLE="soot.Main --soot-classpath $SOOT_CLASSPATH \ |
| 19 | + | |
| 20 | -d $SOOT_OUT_DIR \ | |
| 21 | -android-jars $ANDROID_JARS_PATH \ | |
| 22 | -allow-phantom-refs \ | |
| 23 | -src-prec apk \ | |
| 24 | -ire \ | |
| 25 | - | -f J \ |
| 25 | + | |
| 26 | $PROCESS_THIS | |
| 27 | " | |
| 28 | ||
| 29 | - | SOOT_CMD_CLASS="soot.Main --soot-classpath $SOOT_CLASSPATH \ |
| 29 | + | |
| 30 | -Xss50m \ | |
| 31 | -Xmx1500m \ | |
| 32 | -classpath ${JAVA_CLASSPATH} \
| |
| 33 | ${SOOT_CMD_DAVA}\ |