Smali Syntax For Dalvikvm Opcodes
Solution 1:
PrintStream is actually the type of the thing being loaded. The object you're loading might be referred to as java.lang.System.out, where java.lang is the package, System is the class, and out is the member (a static field) to be loaded.
You can see the same pattern in the invoke-virtual: java.io is the package, PrintStream is the class and println is the member (in this case, an instance method). In both cases, the member is preceded with a ->. I don't know if this pattern is consistent throughout Smali.
I found http://source.android.com/tech/dalvik/dalvik-bytecode.html invaluable when I was playing with dalvik stuff, although in this case its contribution was just identifying that sget-object only took two arguments. That told me the ->out: business had to be part of the static field reference.
Solution 2:
Actually it reads the static field named out of the class java.Lang.System. The (expected) type of that field isjava.io.PrintStream`.
Post a Comment for "Smali Syntax For Dalvikvm Opcodes"