Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] Smali .local directive?

$
0
0
Hello all,

I've been looking around for what does the .local/.end local in smali does? Is it just to bless a register with a name/type? Below I give an example of what I am talking about.


Code:

.local v1, pm:Landroid/os/PowerManager;
const-string v2, "recovery"

invoke-virtual {v1, v2}, Landroid/os/PowerManager;->reboot(Ljava/lang/String;)V
.end local v1

Thanks in advance

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>