From cf06d667a0d76ae768e9246a8aeaada5136d9f5e Mon Sep 17 00:00:00 2001 From: Morphling <283893159@qq.com> Date: Thu, 28 Mar 2024 09:23:19 +0800 Subject: [PATCH] Show All Packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For xiaomi 14, The Google Play Store was preinstalled in. It will not list in the AppList。 --- .../kr328/clash/service/clash/module/AppListCacheModule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/com/github/kr328/clash/service/clash/module/AppListCacheModule.kt b/service/src/main/java/com/github/kr328/clash/service/clash/module/AppListCacheModule.kt index 04c96b24..537e7c2d 100644 --- a/service/src/main/java/com/github/kr328/clash/service/clash/module/AppListCacheModule.kt +++ b/service/src/main/java/com/github/kr328/clash/service/clash/module/AppListCacheModule.kt @@ -14,7 +14,7 @@ class AppListCacheModule(service: Service) : Module(service) { if (sharedUserId != null && sharedUserId.isNotBlank()) sharedUserId else packageName private fun reload() { - val packages = service.packageManager.getInstalledPackages(0) + val packages = service.packageManager.getInstalledPackages() .groupBy { it.uniqueUidName() } .map { (_, v) -> val info = v[0]