@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 flags = (int) args[1]; ActivityInfo info = VPackageManager.get().getReceiverInfo(componentName, flags, 0); 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 flags = (int) args[1]; ActivityInfo info = VPackageManager.get().getReceiverInfo(componentName, flags, 0); 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 flags = (int) args[1]; ActivityInfo info = VPackageManager.get().getReceiverInfo(componentName, flags, 0); if (info == null) { info = (ActivityInfo) method.invoke(who, args); if (info == null || !isVisiblePackage(info.applicationInfo)) { return null; } } return info; }