summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-09-20 06:11:20 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-09-20 06:11:20 +0000
commit6495fe4a88b59648892bf85f8a02eb37d6a01974 (patch)
tree75cbd7838747ce7f44c3d8f06c657174a099289f /app
parent0d5a3eddc0bc9247ca1e7f41b11d66a2e72cc5ef (diff)
parent74ef6940a794afe31f56690f22e7caf55fd18e6d (diff)
Merge branch '5819-remove_PWAPlayer_from_dummy_system' into 'main'
5819: remove PWA PLayer from dummy system apps. See merge request e/os/advanced-privacy!88
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt b/app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt
index d6af1e0..febda91 100644
--- a/app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt
+++ b/app/src/main/java/foundation/e/privacycentralapp/data/repositories/AppListsRepository.kt
@@ -37,7 +37,8 @@ class AppListsRepository(
private val coroutineScope: CoroutineScope
) {
companion object {
- private const val settingsPackageName = "com.android.settings"
+ private const val PNAME_SETTINGS = "com.android.settings"
+ private const val PNAME_PWAPLAYER = "foundation.e.pwaplayer"
}
val dummySystemApp = ApplicationDescription(
@@ -100,8 +101,10 @@ class AppListsRepository(
}
private fun isNotHiddenSystemApp(app: ApplicationInfo, launcherApps: List<String>): Boolean {
- if (app.packageName == settingsPackageName) {
+ if (app.packageName == PNAME_SETTINGS) {
return false
+ } else if (app.packageName == PNAME_PWAPLAYER) {
+ return true
} else if (app.hasFlag(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) {
return true
} else if (!app.hasFlag(ApplicationInfo.FLAG_SYSTEM)) {