log log inserted android smali

In the app can decompile and repackaged, they can use the log cartridge.

note:

Do not use the default register inside because of possible error.

Adding 1 to the local

.locals 4 ->
.locals 5
Source smali used V0- v3 
you use v4
const-string v4, "log"
    invoke-static {v4, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    invoke-static {v4, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    invoke-static {v4, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

 

Guess you like

Origin www.cnblogs.com/Fightingbirds/p/11428455.html
log
log