Closed Pezhin closed 7 years ago
Could you set a conditional breakpoint (for clazz == null) at line 139 of OverrideAllMethods.java and give me the runtime value of the variable "superclass" by traversing up the stack in the debugger until you get to line 33 of OverrideAllMethods.java?
This looks like soot is loading in a malformed class hierarchy. The class in "superclass" on the above mentioned line will show where it is coming from. The solution will probably be to remove a malformed Android jar from your SDK directory or recompile the instrumentation code.
Another thing to look at is see if it is resolving the correct Java runtime library. It may not be pulling in the "java.lang.Object" class.
@Pezhin can you let me know if this is fixed?
@ftc: Sorry I haven't got a chance to do this recently, Let me try it on weekends and get back to you later
This is the superclass value
This lineif(clazz.getName != "java.lang.Object")
the value of clazz
is "java.lang.Object" -> "java.lang.Object" -> "android.app.Fragment" -> "null"
@Pezhin if you are still needing to use this I have fixed the issue on the develop branch.
The command I am using:
bash instrument.sh autoTracer/test/app-debug.apk output /Users/Pezh/Library/Android/sdk/platforms
where:autoTracer/test/app-debug.apk
is where I put the apk inoutput
is the directory for the instrumented apk/Users/Pezh/Library/Android/sdk/platforms
is the directory of androidJarsThe log I got is long so I cut some of it, if you need the full log, let me know