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