【随记】Smali注入中查看int和boolean的方法
查看int,将变量转为String查看,需要添加2个寄存器:
#sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const-string v2, "testout" invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String; move-result-object v3 invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
查看boolean同理于int:
const-string v2, "testoutbool" invoke-static {v1}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String; move-result-object v3 invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I