Android逆向之某游单机SDK破解

1.核心代码:

//破解某游单机sdk
    static void hookysdk(ClassLoader loader){   XposedBridge.hookAllMethods(XposedHelpers.findClass("cn.uc.paysdk.SDKCore",loader),"pay",new XC_MethodHook(){
            public void beforeHookedMethod(XC_MethodHook.MethodHookParam param){
                if(param.args[1] instanceof Intent){
                    Intent intent=(Intent)param.args[1];
                    intent.putExtra("order_amount","0.01");
                    param.args[1]=intent;
                    log("arg2:"+param.args[2].getClass().getName());
                    new Throwable().printStackTrace();
                }

            }
        });

    }

你可能感兴趣的:(Android逆向)