|
|
@@ -91,7 +91,7 @@ public class HookSystem extends BaseHook {
|
|
|
} else if (name.equals("com.android.server.bluetooth.BluetoothService")) {
|
|
|
ClassLoader classLoader = (ClassLoader) param.args[1];
|
|
|
Class<?> BluetoothManagerService = XposedHelpers.findClass("com.android.server.bluetooth.BluetoothManagerService", classLoader);
|
|
|
- XposedHelpers.findAndHookMethod(BluetoothManagerService, "getAddress", new XC_MethodHook() {
|
|
|
+ XposedHelpers.findAndHookMethod(BluetoothManagerService, "getAddress", AttributionSource.class, new XC_MethodHook() {
|
|
|
@Override
|
|
|
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
|
|
|
AttributionSource attributionSource = (AttributionSource) param.args[0];
|
|
|
@@ -102,7 +102,7 @@ public class HookSystem extends BaseHook {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- } else if (name.equals("com.android.server.ConnectivityServiceInitializer")) {
|
|
|
+ } else if (name.equals("com.android.server.ConnectivityServiceInitializer") || name.equals("com.android.server.ConnectivityServiceInitializer")) {
|
|
|
ClassLoader classLoader = (ClassLoader) param.args[1];
|
|
|
Class<?> ConnectivityService = XposedHelpers.findClass("com.android.server.ConnectivityService", classLoader);
|
|
|
XposedHelpers.findAndHookMethod(ConnectivityService, "getNetworkInfo", int.class, new XC_MethodHook() {
|