forked from uds-se/backstage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunApp.sh
More file actions
20 lines (15 loc) · 717 Bytes
/
Copy pathrunApp.sh
File metadata and controls
20 lines (15 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ANDROID_JAR=libs/android.jar
CURRENT_DIR=.
JDK=/usr/bin
file=$1
appName=`basename ${file} .apk`
export fileName=$(basename $file)
cd $CURRENT_DIR/output
$JDK/java -jar apktool_2.1.1.jar -s -f d $file
cd $CURRENT_DIR
echo "Running analysis for $fileName"
$JDK/java -Xmx40g -Xss5m -cp target/Backstage-5.1-SNAPSHOT-jar-with-dependencies.jar st.cs.uni.saarland.de.testApps.TestApp -apk ${file} -androidJar $ANDROID_JAR -apkToolOutput output/$appName -rAnalysis -uiTimeoutValue 30 -uiTimeoutUnit SECONDS -rTimeoutValue 30 -rTimeoutUnit SECONDS -maxDepthMethodLevel 15 -numThreads 24 -rLimitByPackageName
echo "Analysis for $fileName finished"
cd $CURRENT_DIR/output
bash removeAllFolders.sh $appName
cd $CURRENT_DIR