[Soot-list] Exception occurs when using SOOT to analysis APK files

Steven Arzt Steven.Arzt at cased.de
Mon Jun 16 11:59:36 EDT 2014


Hi Tian,

 

Please send me the APK file with which this error occurs.

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von Tian Zeng
Gesendet: Samstag, 7. Juni 2014 11:35
An: Soot list
Cc: Steven Arzt
Betreff: [Soot-list] Exception occurs when using SOOT to analysis APK files

 

Dear SOOT developer of users

 

I encounters a problem when I running SOOT.main, following is the details  ERROR message:

 

Exception in thread "main" java.lang.NullPointerException

            at soot.dexpler.DexBody.jimplify(DexBody.java:425)

            at soot.dexpler.DexMethod$1.getBody(DexMethod.java:146)

            at soot.SootMethod.getBodyFromMethodSource(SootMethod.java:91)

            at soot.SootMethod.retrieveActiveBody(SootMethod.java:324)

            at soot.PackManager.retrieveAllBodies(PackManager.java:1114)

            at soot.PackManager.runPacksNormally(PackManager.java:445)

            at soot.PackManager.runPacks(PackManager.java:388)

            at soot.Main.run(Main.java:203)

            at soot.Main.main(Main.java:146)

            at soot.we.android.component.GetCompJimpleClass.run(GetCompJimpleClass.java:21)

            at soot.we.android.MainThread.run(MainThread.java:46)

            at soot.we.android.test.Test.main(Test.java:60)

 

AND my configuration for SOOT as following:

 

Options.v().set_src_prec(Options.src_prec_apk);

                        Options.v().set_no_bodies_for_excluded(true);

 

                        Options.v().set_no_bodies_for_excluded(true);

                        // Options.v().set_allow_phantom_refs(true);

                        List<String> argsList = new ArrayList<String>();

                        argsList.addAll(Arrays.asList(new String[] { "-w", "-O",

                                               "-android-jars", AndroidPlatform, "-process-dir", AkpPath,

                                               "-allow-phantom-refs", "-f", "n" }));

                        Scene.v().addBasicClass("java.io.PrintStream", SootClass.SIGNATURES);

                        Scene.v().addBasicClass("java.lang.System", SootClass.SIGNATURES);

 

Does anyone encounter the same problem or know how to deal with it.

I am looking forward for your reply and I will appreciate it.

 

Best regards,

Tim 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20140616/cbfd0d1b/attachment.html 


More information about the Soot-list mailing list