[Soot-list] Error in converting apk to Shimple

Haichen Shen haichen at cs.washington.edu
Mon Feb 24 17:46:26 EST 2014


Hello,

I tried to convert an apk to Shimple code, but the program ran into an
error:

Exception in thread "main" java.lang.NoClassDefFoundError:
soot/toolkits/scalar/GuaranteedDefsAnalysis
at soot.toolkits.scalar.GuaranteedDefs.<init>(GuaranteedDefs.java:44)
 at soot.shimple.internal.PhiNodeManager.update(PhiNodeManager.java:55)
at
soot.shimple.internal.PhiNodeManager.insertTrivialPhiNodes(PhiNodeManager.java:71)
 at
soot.shimple.internal.ShimpleBodyBuilder.transform(ShimpleBodyBuilder.java:99)
at soot.shimple.ShimpleBody.rebuild(ShimpleBody.java:133)
 at soot.shimple.ShimpleBody.<init>(ShimpleBody.java:102)
at soot.shimple.Shimple.newBody(Shimple.java:88)
 at soot.PackManager.runBodyPacks(PackManager.java:884)
at soot.PackManager.runBodyPacks(PackManager.java:584)
 at soot.PackManager.runBodyPacks(PackManager.java:487)
at soot.PackManager.runPacksNormally(PackManager.java:464)
 at soot.PackManager.runPacks(PackManager.java:388)
at soot.Main.run(Main.java:203)
at soot.Main.main(Main.java:146)
Caused by: java.lang.ClassNotFoundException:
soot.toolkits.scalar.GuaranteedDefsAnalysis
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 ... 14 more

I built the soot.jar from the latest update of develop branch. Here's the
command I ran:
java -Xss50m -Xmx1500m \
 -classpath lib/soot-trunk.jar:libs/baksmali-1.3.2.jar \
soot.Main --soot-classpath Pedometer.apk \
-d output \
 -android-jars ../android-platforms \
-allow-phantom-refs \
-src-prec apk \
 -ire \
-f S \
-process-dir Pedometer.apk

I also attached the apk I used. Could you check what the problem is? Thanks.

Haichen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20140224/9c51811a/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Pedometer.apk
Type: application/vnd.android.package-archive
Size: 48280 bytes
Desc: not available
Url : http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20140224/9c51811a/attachment-0001.bin 


More information about the Soot-list mailing list