[Soot-list] Android APK Analysis
Modhi Alsobiehy
m99m20 at hotmail.com
Tue Apr 1 12:24:42 EDT 2014
Steven,
1.
If I only use Options.v() to set the options without providing anything in "args",
like in:
---------------------------------
public static void main(String[] args) {
G.reset();
ArrayList<String> apkPath = new ArrayList<String>();
apkPath.add("D:/APKs/calc.apk");
final String androidJar = "D:/AndroidADT/adt-bundle-windows-x86_64-20131030/sdk/platforms/";
PackManager.v().getPack("jtp").add(new Transform("jtp.myAnalysis", new MyBodyTransformer()));
Options.v().set_allow_phantom_refs(true);
Options.v().set_android_jars(androidJar);
Options.v().set_process_dir(apkPath);
Options.v().set_src_prec(Options.src_prec_apk);
Options.v().set_output_format(Options.output_format_jimple);
soot.Main.main(args);
}
---------------------------------
no jimple files are produced, I basically get the following result:
---------------------------------
Copyright (C) 1997-2010 Raja Vallee-Rai and others.
All rights reserved.
Contributions are copyright (C) 1997-2010 by their respective contributors.
See the file 'credits' for a list of contributors.
See individual source files for details.
Soot comes with ABSOLUTELY NO WARRANTY. Soot is free software,
and you are welcome to redistribute it under certain conditions.
See the accompanying file 'COPYING-LESSER.txt' for details.
Visit the Soot website:
http://www.sable.mcgill.ca/soot/
For a list of command line options, enter:
java soot.Main --help
---------------------------------
Not sure what is wrong??? it only works if I provide some options in args!!
2.
I set the options in args , added:
Scene.v().addBasicClass("java.io.PrintStream",SootClass.SIGNATURES);
Scene.v().addBasicClass("java.lang.System",SootClass.SIGNATURES);
and changed the Android JAR path from :
final String androidJar = "D:/AndroidADT/adt-bundle-windows-x86_64-20131030/sdk/platforms/android-17/android.jar";
to:
final String androidJar = "D:/AndroidADT/adt-bundle-windows-x86_64-20131030/sdk/platforms/";
and it works, thanks a lot!
Sent from Windows Mail
From: Steven Arzt
Sent: Tuesday, April 1, 2014 2:28 AM
To: Modhi Alsobeihy, soot-list at sable.mcgill.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20140401/dacfe4c9/attachment.html
More information about the Soot-list
mailing list