@Override protected void processArgs(Method method, Object... args) { if (args != null && args.length > 0 && args[0] instanceof String) { String pkg = (String) args[0]; if (VirtualCore.get().isAppInstalled(pkg)) { args[0] = VirtualCore.get().getHostPkg(); } } } }
private static ServiceInfo resolveServiceInfo(Intent service, int userId) { if (service != null) { ServiceInfo serviceInfo = VirtualCore.get().resolveServiceInfo(service, userId); if (serviceInfo != null) { return serviceInfo; } } return null; }
public Context getHostContext() { return VirtualCore.get().getContext(); }
public static String getHostPkg() { return VirtualCore.get().getHostPkg(); }
public boolean isAppPkg(String pkg) { return VirtualCore.get().isAppInstalled(pkg); }
public boolean isLaunched(int userId) { return VirtualCore.get().isPackageLaunched(userId, packageName); }
protected static boolean isMainProcess() { return VirtualCore.get().isMainProcess(); }
protected static boolean isServerProcess() { return VirtualCore.get().isServerProcess(); }
public int[] getInstalledUsers() { return VirtualCore.get().getPackageInstalledUsers(packageName); }
protected static boolean isAppProcess() { return VirtualCore.get().isVAppProcess(); }
public boolean createShortcut(int userId, String packageName, OnEmitShortcutListener listener) { return createShortcut(userId, packageName, null, listener); }
public static Object mainThread() { return get().mainThread; }
protected PackageManager getPM() { return VirtualCore.getPM(); }
private static Context getContext() { return VirtualCore.get().getContext(); }
public static boolean isGoogleFrameworkInstalled() { return VirtualCore.get().isAppInstalled("com.google.android.gms"); }
public Context getContext() { return VirtualCore.get().getContext(); }
protected static Context getHostContext() { return VirtualCore.get().getContext(); }
public Context getContext() { return VirtualCore.get().getContext(); }