From 67f8126bf451e4d14219e116dab37275fdde6dfa Mon Sep 17 00:00:00 2001 From: frknkrc44 Date: Mon, 1 Sep 2025 06:46:57 +0300 Subject: [PATCH] Revert "Do not allow gms and gsf is added in any of lists" This reverts commit 71ea5103994206d8b2bfccd69999f1b3d918ab3c. --- .../java/icu/nullptr/hidemyapplist/common/Constants.java | 8 +++----- .../java/icu/nullptr/hidemyapplist/xposed/HMAService.kt | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/icu/nullptr/hidemyapplist/common/Constants.java b/common/src/main/java/icu/nullptr/hidemyapplist/common/Constants.java index 3efd58b..ef8848a 100644 --- a/common/src/main/java/icu/nullptr/hidemyapplist/common/Constants.java +++ b/common/src/main/java/icu/nullptr/hidemyapplist/common/Constants.java @@ -9,6 +9,8 @@ public class Constants { public static final String PROVIDER_AUTHORITY = APP_PACKAGE_NAME + ".ServiceProvider"; public static final String GMS_PACKAGE_NAME = "com.google.android.gms"; public static final String GSF_PACKAGE_NAME = "com.google.android.gsf"; + public static final String UPDATE_URL_BASE = "https://api.nullptr.icu/android/hide-my-applist/static/"; + public static final String TRANSLATE_URL = "https://crowdin.com/project/hide-my-applist"; public static final String ANDROID_APP_DATA_ISOLATION_ENABLED_PROPERTY = "persist.zygote.app_data_isolation"; public static final String ANDROID_VOLD_APP_DATA_ISOLATION_ENABLED_PROPERTY = "persist.sys.vold_app_data_isolation_enabled"; @@ -32,10 +34,6 @@ public class Constants { "com.android.providers.media.module", "com.android.providers.settings", "com.google.android.webview", - "com.google.android.providers.media.module", - - // hiding apps from them causes crashes in hidden apps - GMS_PACKAGE_NAME, - GSF_PACKAGE_NAME + "com.google.android.providers.media.module" ); } diff --git a/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/HMAService.kt b/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/HMAService.kt index 54fbc51..0837041 100644 --- a/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/HMAService.kt +++ b/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/HMAService.kt @@ -169,6 +169,7 @@ class HMAService(val pms: IPackageManager) : IHMAService.Stub() { fun shouldHide(caller: String?, query: String?): Boolean { if (caller == null || query == null) return false if (caller in Constants.packagesShouldNotHide || query in Constants.packagesShouldNotHide) return false + if ((caller == Constants.GMS_PACKAGE_NAME || caller == Constants.GSF_PACKAGE_NAME) && query == Constants.APP_PACKAGE_NAME) return false // If apply hide on gms, hma app will crash 😓 if (caller == query) return false val appConfig = config.scope[caller] ?: return false if (appConfig.useWhitelist && appConfig.excludeSystemApps && query in systemApps) return false