public static boolean isGoogleFrameworkInstalled() { return VirtualCore.get().isAppInstalled("com.google.android.gms"); }
public boolean isAppPkg(String pkg) { return VirtualCore.get().isAppInstalled(pkg); }
@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(); } } } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { String pkg = MethodParameterUtils.replaceFirstAppPkg(args); if (VirtualCore.get().isAppInstalled(pkg)) { VNotificationManager.get().cancelAllNotification(pkg, getAppUserId()); return 0; } return method.invoke(who, args); } }
public boolean isAppPkg(String pkg) { return VirtualCore.get().isAppInstalled(pkg); }
public static boolean isGoogleFrameworkInstalled() { return VirtualCore.get().isAppInstalled("com.google.android.gms"); }
public boolean isAppPkg(String pkg) { return VirtualCore.get().isAppInstalled(pkg); }
public static boolean isGoogleFrameworkInstalled() { return VirtualCore.get().isAppInstalled("com.google.android.gms"); }
@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(); } } } }
@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(); } } } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { String pkg = MethodParameterUtils.replaceFirstAppPkg(args); if (VirtualCore.get().isAppInstalled(pkg)) { VNotificationManager.get().cancelAllNotification(pkg, getAppUserId()); return 0; } return method.invoke(who, args); } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { String pkg = MethodParameterUtils.replaceFirstAppPkg(args); if (VirtualCore.get().isAppInstalled(pkg)) { VNotificationManager.get().cancelAllNotification(pkg, getAppUserId()); return 0; } return method.invoke(who, args); } }
private void alertForMeizu() { if (!DeviceUtil.isMeizuBelowN()) { return; } boolean isXposedInstalled = VirtualCore.get().isAppInstalled(VApp.XPOSED_INSTALLER_PACKAGE); if (isXposedInstalled) { return; } mUiHandler.postDelayed(() -> { AlertDialog alertDialog = new AlertDialog.Builder(getContext()) .setTitle(R.string.meizu_device_tips_title) .setMessage(R.string.meizu_device_tips_content) .setPositiveButton(android.R.string.yes, (dialog, which) -> { }) .create(); try { alertDialog.show(); } catch (Throwable ignored) {} }, 2000); }