use of com.lody.virtual.client.hook.base.ReplaceLastPkgHook in project VirtualApp by asLody.
the class PhoneSubInfoPatch method onBindHooks.
@Override
protected void onBindHooks() {
super.onBindHooks();
addHook(new ReplaceLastPkgHook("getNaiForSubscriber"));
addHook(new ReplaceLastPkgHook("getImeiForSubscriber"));
addHook(new ReplaceCallingPkgHook("getDeviceSvn"));
addHook(new ReplaceLastPkgHook("getDeviceSvnUsingSubId"));
addHook(new ReplaceCallingPkgHook("getSubscriberId"));
addHook(new ReplaceLastPkgHook("getSubscriberIdForSubscriber"));
addHook(new ReplaceCallingPkgHook("getGroupIdLevel1"));
addHook(new ReplaceLastPkgHook("getGroupIdLevel1ForSubscriber"));
addHook(new ReplaceCallingPkgHook("getLine1Number"));
addHook(new ReplaceLastPkgHook("getLine1NumberForSubscriber"));
addHook(new ReplaceCallingPkgHook("getLine1AlphaTag"));
addHook(new ReplaceLastPkgHook("getLine1AlphaTagForSubscriber"));
addHook(new ReplaceCallingPkgHook("getMsisdn"));
addHook(new ReplaceLastPkgHook("getMsisdnForSubscriber"));
addHook(new ReplaceCallingPkgHook("getVoiceMailNumber"));
addHook(new ReplaceLastPkgHook("getVoiceMailNumberForSubscriber"));
addHook(new ReplaceCallingPkgHook("getVoiceMailAlphaTag"));
addHook(new ReplaceLastPkgHook("getVoiceMailAlphaTagForSubscriber"));
// The following method maybe need to fake
//addHook(new ReplaceCallingPkgHook("getDeviceId"));
addHook(new ReplaceCallingPkgHook("getIccSerialNumber"));
addHook(new ReplaceLastPkgHook("getIccSerialNumberForSubscriber"));
}
use of com.lody.virtual.client.hook.base.ReplaceLastPkgHook in project VirtualApp by asLody.
the class LocationManagerPatch method onBindHooks.
@Override
protected void onBindHooks() {
super.onBindHooks();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
addHook(new ReplaceLastPkgHook("addTestProvider"));
addHook(new ReplaceLastPkgHook("removeTestProvider"));
addHook(new ReplaceLastPkgHook("setTestProviderLocation"));
addHook(new ReplaceLastPkgHook("clearTestProviderLocation"));
addHook(new ReplaceLastPkgHook("setTestProviderEnabled"));
addHook(new ReplaceLastPkgHook("clearTestProviderEnabled"));
addHook(new ReplaceLastPkgHook("setTestProviderStatus"));
addHook(new ReplaceLastPkgHook("clearTestProviderStatus"));
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
addHook(new ReplaceLastPkgHook("addGpsMeasurementsListener"));
addHook(new ReplaceLastPkgHook("addGpsNavigationMessageListener"));
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
addHook(new ReplaceLastPkgHook("addGpsStatusListener"));
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
addHook(new BaseHook("requestLocationUpdates"));
addHook(new ReplaceLastPkgHook("removeUpdates"));
addHook(new ReplaceLastPkgHook("requestGeofence"));
addHook(new ReplaceLastPkgHook("removeGeofence"));
addHook(new BaseHook("getLastLocation"));
}
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.JELLY_BEAN && TextUtils.equals(Build.VERSION.RELEASE, "4.1.2")) {
addHook(new ReplaceLastPkgHook("requestLocationUpdates"));
addHook(new ReplaceLastPkgHook("requestLocationUpdatesPI"));
addHook(new ReplaceLastPkgHook("removeUpdates"));
addHook(new ReplaceLastPkgHook("removeUpdatesPI"));
addHook(new ReplaceLastPkgHook("addProximityAlert"));
addHook(new ReplaceLastPkgHook("getLastKnownLocation"));
}
}
use of com.lody.virtual.client.hook.base.ReplaceLastPkgHook in project VirtualApp by asLody.
the class ISubPatch method onBindHooks.
@Override
protected void onBindHooks() {
super.onBindHooks();
addHook(new ReplaceCallingPkgHook("getAllSubInfoList"));
addHook(new ReplaceCallingPkgHook("getAllSubInfoCount"));
addHook(new ReplaceLastPkgHook("getActiveSubscriptionInfo"));
addHook(new ReplaceLastPkgHook("getActiveSubscriptionInfoForIccId"));
addHook(new ReplaceLastPkgHook("getActiveSubscriptionInfoForSimSlotIndex"));
addHook(new ReplaceLastPkgHook("getActiveSubscriptionInfoList"));
addHook(new ReplaceLastPkgHook("getActiveSubInfoCount"));
addHook(new ReplaceLastPkgHook("getSubscriptionProperty"));
}
Aggregations