mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 04:27:38 +02:00
Add full invoke-custom example
This commit is contained in:
27
examples/InvokeCustom/Custom.smali
Normal file
27
examples/InvokeCustom/Custom.smali
Normal file
@ -0,0 +1,27 @@
|
||||
.class public LCustom;
|
||||
|
||||
.super Ljava/lang/Object;
|
||||
|
||||
.method public doSomething(Ljava/lang/String;)Ljava/lang/String;
|
||||
.registers 15
|
||||
|
||||
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
|
||||
|
||||
const-string v1, "Custom"
|
||||
|
||||
return-object v1
|
||||
.end method
|
||||
|
||||
.method public gnihtemoSod(Ljava/lang/String;)Ljava/lang/String;
|
||||
.registers 15
|
||||
|
||||
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
|
||||
|
||||
const-string v1, "motsuC"
|
||||
|
||||
return-object v1
|
||||
.end method
|
Reference in New Issue
Block a user