xposed getSubscriberId webview WebViewClient
Xposed (一) Android hook框架入门
http://my.oschina.net/wisedream/blog/471292
package de.robv.android.xposed.examples.redclock;
import static de.robv.android.xposed.XposedHelpers.findAndHookMethod; import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;
import de.robv.android.xposed.XC_MethodReplacement; import android.telephony.TelephonyManager;
public class RedClock implements IXposedHookLoadPackage { public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable { if (lpparam.packageName.equals("jp.co.unisys.android.yamadamobile")) { findAndHookMethod(TelephonyManager.class, "getSubscriberId", new XC_MethodReplacement() { @Override
protected Object replaceHookedMethod(MethodHookParam param) throws Throwable { return "this is getSubscriberId"; } }); } } }
没有评论:
发表评论