@FakeDeviceMark("fake device id.") static class GetDeviceId extends StaticMethodProxy { public GetDeviceId() { super("getDeviceId"); } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().deviceId; } }
@FakeDeviceMark("fake MAC") private static class GetAddress extends StaticMethodProxy { GetAddress() { super("getAddress"); } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().bluetoothMac; } } }
@FakeDeviceMark("fake device id") static class GetDeviceId extends MethodProxy { @Override public String getMethodName() { return "getDeviceId"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().deviceId; } }
@FakeDeviceMark("fake iccid") static class GetIccSerialNumber extends MethodProxy { @Override public String getMethodName() { return "getIccSerialNumber"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().iccId; } }
@FakeLocMark("Fake wifi bssid") @FakeDeviceMark("fake wifi MAC") private final class GetConnectionInfo extends MethodProxy { @Override public String getMethodName() { return "getConnectionInfo"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { WifiInfo wifiInfo = (WifiInfo) method.invoke(who, args); if (isFakeLocationEnable()) { mirror.android.net.wifi.WifiInfo.mBSSID.set(wifiInfo, "00:00:00:00:00:00"); mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, "00:00:00:00:00:00"); } if (VASettings.Wifi.FAKE_WIFI_STATE) { return createWifiInfo(); } if (wifiInfo != null) { mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, getDeviceInfo().wifiMac); } return wifiInfo; } }
@FakeDeviceMark("fake iccid") static class GetIccSerialNumber extends MethodProxy { @Override public String getMethodName() { return "getIccSerialNumber"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().iccId; } }
@FakeDeviceMark("fake iccid") static class GetIccSerialNumber extends MethodProxy { @Override public String getMethodName() { return "getIccSerialNumber"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().iccId; } }
@FakeDeviceMark("fake device id.") static class GetDeviceId extends StaticMethodProxy { public GetDeviceId() { super("getDeviceId"); } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().deviceId; } }
@FakeDeviceMark("fake MAC") private static class GetAddress extends StaticMethodProxy { GetAddress() { super("getAddress"); } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().bluetoothMac; } } }
@FakeDeviceMark("fake device id.") static class GetDeviceId extends StaticMethodProxy { public GetDeviceId() { super("getDeviceId"); } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().deviceId; } }
@FakeDeviceMark("fake MAC") private static class GetAddress extends StaticMethodProxy { GetAddress() { super("getAddress"); } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().bluetoothMac; } } }
@FakeDeviceMark("fake device id") static class GetDeviceId extends MethodProxy { @Override public String getMethodName() { return "getDeviceId"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().deviceId; } }
@FakeDeviceMark("fake device id") static class GetDeviceId extends MethodProxy { @Override public String getMethodName() { return "getDeviceId"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { return getDeviceInfo().deviceId; } }
@FakeLocMark("Fake wifi bssid") @FakeDeviceMark("fake wifi MAC") private final class GetConnectionInfo extends MethodProxy { @Override public String getMethodName() { return "getConnectionInfo"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { WifiInfo wifiInfo = (WifiInfo) method.invoke(who, args); if (isFakeLocationEnable()) { mirror.android.net.wifi.WifiInfo.mBSSID.set(wifiInfo, "00:00:00:00:00:00"); mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, "00:00:00:00:00:00"); } if (VASettings.Wifi.FAKE_WIFI_STATE) { return createWifiInfo(); } if (wifiInfo != null) { mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, getDeviceInfo().wifiMac); } return wifiInfo; } }
@FakeLocMark("Fake wifi bssid") @FakeDeviceMark("fake wifi MAC") private final class GetConnectionInfo extends MethodProxy { @Override public String getMethodName() { return "getConnectionInfo"; } @Override public Object call(Object who, Method method, Object... args) throws Throwable { WifiInfo wifiInfo = (WifiInfo) method.invoke(who, args); if (isFakeLocationEnable()) { mirror.android.net.wifi.WifiInfo.mBSSID.set(wifiInfo, "00:00:00:00:00:00"); mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, "00:00:00:00:00:00"); } if (VASettings.Wifi.FAKE_WIFI_STATE) { return createWifiInfo(); } if (wifiInfo != null) { mirror.android.net.wifi.WifiInfo.mMacAddress.set(wifiInfo, getDeviceInfo().wifiMac); } return wifiInfo; } }