dj这个参考公布的版本都没有,而且这玩意成功也没有几个人?而且都存在无法下中断
要不然都是一些无用值。
完整代码是这样:
package brut.t3
import brut.androlib.java.Apktool;
public class Main extends android.app.Activity
{
@Apktool.SMALI("0")
public Main() {
/* SMALI
.locals 0
.prologue
.line 17
invoke direct {p0}, Landroid/app/Activity;-><init>()v
return-void
*/
}
@Apktool.SMALI("1")
public void onBtn1Click(android.view.view p1){
/* SMALI
.locals 2
.prologue
.line 27
const-string v0, "Button1 clicked!"
const/4 v1, 0x0
invoke static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()v
.line 20
return-void
*/
}
@Apktool.SAMLI("2")
public void onBtn2click(android.view.view p1) {
/* SMALI
.locals 3
.prologue
.line 31
const/4 v0, 0x0
.local v0, 1:I
:goto_0
const/4 v1, 0x3
if-ge v0, v1, :cond_0
.line 32
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()v
const-string v2, "Button2 clicked; #"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const/4 v2, 0x0
invoke-static {p0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v1
invoke-virtual (v1), Landroid/widget/Toast;->show()v
.line 31
add-int/lit0 v0, v0, 0x1
goto :goto_0
.line 34
:cond_0
return-void
*/
}
@Apktool.SMALI("3")
public void onCreate(android.os.Bundle p1){
/* SMALI
.locals 1
.prologue
.line 22
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)v
.line 23
const/high16 v0, 0x7f02
invoke-virtual {p0, v0}, Lbrut/t3/Main;->setContentview(I)v
.line 24
return-void
*/
}
}
@Apktool.SMALI("0")这玩意,应该就是
brut.androlib.java.Apktool进行解译....
没有dj这个方法,是无法像这个作者100%实现。放弃吧,本人为了这玩意尝试N多次。都是无法像他那样打印有用值,一直在系统内部API中...