I know how to return a TRUE boolean from a function:
.locals 1
const/4 v0, 0x1
return v0
Now I need to return an integer (10000 value). How?
The following method
public int return1000() {
    int i = 1000;
    return i;
}
Looks like this in smali
.method public return1000()I
    .locals 1
    .prologue
    .line 278
    const/16 v0, 0x3e8
    .line 279
    .local v0, "i":I
    return v0
.end method
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With