Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException on soot.dexpler.DexAnnotation.handleClassAnnotation(DexAnnotation.java:157) #4

Open
damorim opened this issue Apr 10, 2019 · 0 comments

Comments

@damorim
Copy link

damorim commented Apr 10, 2019

I cloned the project and built (with mvn install). The variable ANDROVOV points to the "target/androcov-1.0.jar" file. Here is what I get when trying to instrument the apk of the 2048 game. I tried this on the android.jar for APIs 23 and 28.

wahoo:~/Android/Sdk/platforms/android-23> java -jar ${ANDROCOV} -o com.uberspot.a2048_25.mod.apk -i com.uberspot.a2048_25.apk -sdk android.jar
Apr 10, 2019 2:38:22 PM xyz.ylimit.androcov.Config parseArgs
INFO: finish parsing arguments
Apr 10, 2019 2:38:22 PM xyz.ylimit.androcov.Config parseArgs
INFO: [inputAPK]com.uberspot.a2048_25.apk, [outputDir]/home/damorim/Android/Sdk/platforms/android-23/com.uberspot.a2048_25.mod.apk
Apr 10, 2019 2:38:22 PM xyz.ylimit.androcov.Main main
INFO: OK let's start!
Apr 10, 2019 2:38:22 PM xyz.ylimit.androcov.Instrumenter instrument
INFO: Start instrumenting...
Using 'android.jar' as android.jar
get type from 'I'
get type from 'D'
get type from 'Z'
get type from 'D'
get type from 'Z'
get type from 'Z'
get type from 'J'
get type from 'J'
get type from 'Z'
get type from 'I'
get type from 'I'
Exception in thread "main" java.lang.NullPointerException
at soot.dexpler.DexAnnotation.handleClassAnnotation(DexAnnotation.java:157)
at soot.dexpler.DexClass.makeSootClass(DexClass.java:151)
at soot.dexpler.DexlibWrapper.makeSootClass(DexlibWrapper.java:137)
at soot.dexpler.DexResolver.resolveFromFile(DexResolver.java:60)
at soot.DexClassSource.resolve(DexClassSource.java:52)
at soot.SootResolver.bringToHierarchy(SootResolver.java:237)
at soot.SootResolver.bringToSignatures(SootResolver.java:264)
at soot.SootResolver.processResolveWorklist(SootResolver.java:168)
at soot.SootResolver.resolveClass(SootResolver.java:129)
at soot.dexpler.DexlibWrapper.initialize(DexlibWrapper.java:121)
at soot.dexpler.DexResolver.resolveFromFile(DexResolver.java:57)
at soot.DexClassSource.resolve(DexClassSource.java:52)
at soot.SootResolver.bringToHierarchy(SootResolver.java:237)
at soot.SootResolver.bringToSignatures(SootResolver.java:264)
at soot.SootResolver.processResolveWorklist(SootResolver.java:168)
at soot.SootResolver.resolveClass(SootResolver.java:129)
at soot.Scene.loadClass(Scene.java:694)
at soot.Scene.loadClassAndSupport(Scene.java:679)
at soot.Scene.loadNecessaryClasses(Scene.java:1353)
at xyz.ylimit.androcov.Instrumenter.instrument(Instrumenter.java:53)
at xyz.ylimit.androcov.Main.main(Main.java:15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant