@Override public Object call(Object who, Method method, Object... args) throws Throwable { ComponentName componentName = (ComponentName) args[0]; if (getHostPkg().equals(componentName.getPackageName())) { return method.invoke(who, args); } int userId = VUserHandle.myUserId(); int flags = (int) args[1]; ActivityInfo info = VPackageManager.get().getActivityInfo(componentName, flags, userId); if (info == null) { info = (ActivityInfo) method.invoke(who, args); if (info == null || !isVisiblePackage(info.applicationInfo)) { return null; } } return info; }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { ComponentName componentName = (ComponentName) args[0]; if (getHostPkg().equals(componentName.getPackageName())) { return method.invoke(who, args); } int userId = VUserHandle.myUserId(); int flags = (int) args[1]; ActivityInfo info = VPackageManager.get().getActivityInfo(componentName, flags, userId); if (info == null) { info = (ActivityInfo) method.invoke(who, args); if (info == null || !isVisiblePackage(info.applicationInfo)) { return null; } } return info; }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { ComponentName componentName = (ComponentName) args[0]; if (getHostPkg().equals(componentName.getPackageName())) { return method.invoke(who, args); } int userId = VUserHandle.myUserId(); int flags = (int) args[1]; ActivityInfo info = VPackageManager.get().getActivityInfo(componentName, flags, userId); if (info == null) { info = (ActivityInfo) method.invoke(who, args); if (info == null || !isVisiblePackage(info.applicationInfo)) { return null; } } return info; }
@Override public boolean isEnable() { return isAppProcess(); } }
@Override public boolean isEnable() { return isAppProcess(); } }
@Override public boolean isEnable() { return isAppProcess(); } }