<p> <span>现有Android应用内某函数,其方法声明为:private
现有Android应用内某函数,其方法声明为:private int func()
该函数对应的smali反汇编代码如下:
.method private func()I
00000000 const-string v2, "Didichuxing"
00000004 const/4 v0, 0
00000006 const/4 v1, 0
00000008 invoke-virtual String->length()I, v2
0000000E move-result v3
00000010 if-ge v1, v3, :2E
00000014 const/16 v3, 0x0069
00000018 invoke-virtual String->charAt(I)C, v2, v1
0000001E move-result v4
00000020 if-ne v3, v4, :28
00000024 add-int/lit8 v0, v0, 0x01
00000028 add-int/lit8 v1, v1, 0x01
0000002C goto :8
0000002E return v0
.end method
从上面的smali反汇编代码可以得出该方法的返回值等于