Professional Documents
Culture Documents
==================
IGLogger
Class to help with adding logging function in smali output from 3rd party
Android apps.
Written in Java by b3nn, compiled and converted to smali 2.x by cobalt
(www.crackberry.com)
Usage:
Inject IGLogger into your smali code by enabling the checkbox in GMAPS Patcher
Simply add a line of Smali where you want to log out. The easiest case is
simple to add:
invoke-static {}, Liglogger;->d()I
Alternatively, you can log variables, but you do need to ensure you get the
types correct.
Example, if v1 is already a string, use:
invoke-static {v1}, Liglogger;->d(Ljava/lang/String;)I
Use Blackberry Logger to view the logs of the Blackberry Android Runtime
http://forums.crackberry.com/bb10-tips-how-faq-f295/how-pull-android-logs-your-
blackberry-893522/
===================================================================================
==================
DEFAULT Case
Use this call to just print you where here in a method
STRING Case
Smali Type Value: 0x17
BOOLEAN Case
Smali Type Value: 0x1f
*** SMALI CODE TO ADD ***
invoke-static {v0}, Liglogger;->d(Ljava/lang/Boolean;)I
CHAR Case
Smali Type Value: 0x17
INT Case
Smali Type Value: 0x04
LONG Case
Smali Type Value: 0x06
FLOAT Case
Smali Type Value: 0x10
DOUBLE Case
Smali Type Value: 0x11
OBJECT Case
URL Case
*** SMALI CODE TO ADD ***
invoke-static {v0}, Liglogger;->d(Ljava/net/URL;)I
URLConnection Case
*** SMALI CODE TO ADD ***
invoke-static {v0}, Liglogger;->d(Ljava/net/HttpURLConnection;)I
===================================================================================
==================
This means you got the type of "v1" wrong and it is of type "17". The look up
for these types is listed at the URL below.
http://source.android.com/tech/dalvik/dex-format.html