1,根据教程说的六大类定位方法之一
找 【支付失败】
Androidkiller==>java源码
public static void keyBackPressed()
{
Message localMessage = handler.obtainMessage();
localMessage.what = 0;
localMessage.sendToTarget();
}
public static void showProgressDialog()
{
mProgressDialog = ProgressDialog.show(context, "", "支付中,请稍等...", true, false);
}
===============
向下找
public void handleMessage(Message paramMessage)
{
if (!Thread.currentThread().isInterrupted()) {}
switch (paramMessage.what)
{
default:
return;
case 0:
starcrash.backKeyDown();
return;
case 1:
OGThranPay.getGoodsList((String)paramMessage.obj, paramMessage.arg1);
starcrash.showProgressDialog();
return;
case 2:
Toast.makeText(starcrash.context, "请确认SIM卡已插入", 0).show();
starcrash.dismissProgressDialog();
StarJNI.sendMessage(0);
return;
case 3:
Toast.makeText(starcrash.context, "支付需要网络连接,请检查您的网络设置", 0).show();
starcrash.dismissProgressDialog();
StarJNI.sendMessage(0);
return;
case 4:
Toast.makeText(starcrash.context, "购买成功", 0).show(); ====>取前边的局部字符作搜索串,有连接则点之;不在一个文件中则搜之
starcrash.dismissProgressDialog();
StarJNI.sendMessage(1);
return;
case 5:
Toast.makeText(starcrash.context, "购买失败", 0).show();
starcrash.dismissProgressDialog();
StarJNI.sendMessage(0);
return;
case 6:
Toast.makeText(starcrash.context, "购买取消", 0).show();
starcrash.dismissProgressDialog();
StarJNI.sendMessage(0);
return;
}
paramMessage = paramMessage.getData();
OGThranPay.pay(paramMessage.getString("pcode"), paramMessage.getString("type"));
}
}
}
再定位,再改之。
把java码换成对应的.smali文件程序块复制到 下面几个条件块中替换了。
http://g.pc6.com/7860876133/apk/ ... .1_201510261754.apk
成品:链接: http://pan.baidu.com/s/1c1X1dZE 密码: bd61
=====================================================
这是今天的第三个,她问穿什么衣服最合适,楼主觉得还是不穿的最好。
1.["mgrShop.buyFaild","购买失败:%s","",""],
2.没找到
接着发现这些
paramString.add("code", 1);
paramString.add("msg", "支付成功");
paramString.add("payData", CommonAnd.orderParms.asObject());
this.text = "基地_支付成功";
CommonBaseSdk.JsonRpcCall(CommonBaseSdk.Lua_Cmd_PayResult, paramString);
所有的衣服都能买了。链接: http://pan.baidu.com/s/1i4CYhet 密码: gkmj
=========================================
原来这个搞熟了,比OD搞起来更过瘾啊,要掌握进攻的节奏。
|