Objects and Methods
public void helloWorld() { String text = "Hello World!"; System.out.println(text); }const-string v0, "Hello World!" sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream; invoke-virtual {v1, v0}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
String password = "Pa%%w0rd!"; System.out.println(password);.line 14 const-string v0, "Pa%%w0rd!" # Load the string "Pa%%w0rd!" into register v0 .line 15 .local v0, "password":Ljava/lang/String; # Declare v0 as a local variable named "password" of type String sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream; # Retrieve the static field System.out (PrintStream) and store it in v1 invoke-virtual {v1, v0}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V # Invoke the println method on System.out, passing the string in v0$ adb logcat
System.out.println(Base64.encodeToString(<byteArray>, 0));const/4 v5, 0x0 invoke-static {v2, v5}, Landroid/util/Base64;->encodeToString([BI)Ljava/lang/String; # Encode the byte array in v2 to a Base64 string move-result-object v5 # Store the resulting Base64 string in v5 sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream; # Get the System.out PrintStream object invoke-virtual {v1, v5}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V # Print the Base64 string$ adb logcat

Last updated
