|
楼主 |
发表于 2016-9-19 21:41:49
|
显示全部楼层
对了贴下关键代码
XposedHelpers.findAndHookMethod(WifiInfo.class, "getBSSID", new XC_MethodHook() {
@Override
protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
param.setResult("00:23:98:32:23");
}
});
XposedHelpers.findAndHookMethod(WifiInfo.class, "getSSID", new XC_MethodHook() {
@Override
protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
param.setResult("tplink");
}
});
XposedHelpers.findAndHookMethod(WifiInfo.class, "getIpAddress", new XC_MethodHook() {
@Override
protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
param.setResult(ipaddress);
}
});
XposedHelpers.findAndHookMethod(WifiInfo.class, "getMacAddress", new XC_MethodHook() {
@Override
protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable {
param.setResult(macaddress);
}
}); |
|