use of com.lody.virtual.client.hook.base.ReplaceCallingPkgHook in project VirtualApp by asLody.
the class NotificationManagerPatch method onBindHooks.
@Override
protected void onBindHooks() {
super.onBindHooks();
addHook(new ReplaceCallingPkgHook("enqueueToast"));
addHook(new ReplaceCallingPkgHook("cancelToast"));
addHook(new StaticHook("registerListener"));
addHook(new StaticHook("unregisterListener"));
addHook(new StaticHook("getAppActiveNotifications"));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
addHook(new ReplaceCallingPkgHook("areNotificationsEnabled"));
}
if ("samsung".equalsIgnoreCase(Build.BRAND) || "samsung".equalsIgnoreCase(Build.MANUFACTURER)) {
addHook(new ReplaceCallingPkgHook("removeEdgeNotification"));
}
}
use of com.lody.virtual.client.hook.base.ReplaceCallingPkgHook in project VirtualApp by asLody.
the class RestrictionPatch method onBindHooks.
@Override
protected void onBindHooks() {
super.onBindHooks();
addHook(new ReplaceCallingPkgHook("getApplicationRestrictions"));
addHook(new ReplaceCallingPkgHook("notifyPermissionResponse"));
addHook(new ReplaceCallingPkgHook("requestPermission"));
}
Aggregations