好友
阅读权限40
听众
最后登录1970-1-1
|
本帖最后由 lzc090 于 2016-10-6 11:44 编辑
给想自己动手破解游戏的人,大神请无视,谢谢。
1.因为点击积分兑换金币的时候提示:积分不足5分,xxxxxxx(我用的方法不是这个,我是无聊用动态调试SMALI找到的),因此打开killer搜索“积分不足5分”,找到com/cn/android/gavin/tankmoderndefender/OfferActivity$地方
反编译内容(免积分+弹窗去除):
[Java] 纯文本查看 复制代码 .method public onClick(Landroid/view/View;)V
.locals 4
.param p1, "paramView" # Landroid/view/View;
.prologue
const/4 v3, 0x5 #v3赋值5
.line 100
iget-object v1, p0, Lcom/cn/android/gavin/tankmoderndefender/OfferActivity$2;->this$0:Lcom/cn/android/gavin/tankmoderndefender/OfferActivity;
iget v1, v1, Lcom/cn/android/gavin/tankmoderndefender/OfferActivity;->mScore:I
if-lt v1, v3, :cond_0 #当V1小于v3的时候跳转到cond_0 就是跳转到兑换不成功,所以这删除就可以达到免积分兑换金币了
.line 102
iget-object v1, p0, Lcom/cn/android/gavin/tankmoderndefender/OfferActivity$2;->this$0:Lcom/cn/android/gavin/tankmoderndefender/OfferActivity;
const/16 v2, 0x1e
invoke-virtual {v1, v2}, Lcom/cn/android/gavin/tankmoderndefender/OfferActivity;->addGold(I)V #看到ADDGOLD知道增加金币的地方了,就可以修改金币了
.line 104
iget-object v1, p0, Lcom/cn/android/gavin/tankmoderndefender/OfferActivity$2;->this$0:Lcom/cn/android/gavin/tankmoderndefender/OfferActivity;
invoke-static {v1, v3}, Lcom/cn/android/gavin/shuchu/GavinUtil;->GavinWWChuFa(Landroid/app/Activity;I)V
.line 105
iget-object v0, p0, Lcom/cn/android/gavin/tankmoderndefender/OfferActivity$2;->this$0:Lcom/cn/android/gavin/tankmoderndefender/OfferActivity;
.line 106
.local v0, "localDemonBaseActivity":Lcom/inocoplus/tank/DemonBaseActivity;
iget v1, v0, Lcom/inocoplus/tank/DemonBaseActivity;->mScore:I
add-int/lit8 v1, v1, -0x5 #这是当前积分-5,因为这游戏积分不存在负数,所以不用更改
iput v1, v0, Lcom/inocoplus/tank/DemonBaseActivity;->mScore:I
.line 107 #去除弹窗只要把。line 107 这段内容删除就好了。
iget-object v1, p0, Lcom/cn/android/gavin/tankmoderndefender/OfferActivity$2;->this$0:Lcom/cn/android/gavin/tankmoderndefender/OfferActivity;
iget-object v1, v1, Lcom/cn/android/gavin/tankmoderndefender/OfferActivity;->mDialog:Landroid/app/AlertDialog$Builder;
const-string v2, "\u6e38\u620f\u63d0\u793a"
invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
move-result-object v1
const-string v2, "\u786e\u5b9a"
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v1
const-string v2, "\u8d2d\u4e70\u5957\u9910\u6210\u529f!"
invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
move-result-object v1
invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;
2.这是修改金币的内容(搜索ADDGOLD):
找到com/inocoplus/tank/DemonBaseActivity
你会发现它又调用了这方法:invoke-virtual {v0}, Lcom/inocoplus/tank/Profile;->getGold()I 下面是着方法的内容
.method public getGold()I
.locals 1
iget v0, p0, Lcom/inocoplus/tank/Profile;->_gold:I 提取当前的金币到V0,刚开始的金币肯定是0.因此我直接给他赋值99999999
const v0, 0x5f5e0ff 这个就是我自己添加的赋值
return v0
游戏下载地址:http://www.52pojie.cn/forum.php?mod=viewthread&tid=542704&page=1&extra=#pid13956340
|
免费评分
-
查看全部评分
|