Don't hide app with uid < 10000

This commit is contained in:
vvb2060 2020-09-24 04:55:40 +08:00 committed by John Wu
parent de4e26b488
commit fd552e68a9
1 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class HideViewModel : BaseViewModel(), Queryable {
val hides = Shell.su("magiskhide --ls").exec().out.map { HideTarget(it) }
val apps = pm.getInstalledApplications(0)
.asSequence()
.filter { it.enabled && !blacklist.contains(it.packageName) }
.filter { it.enabled && it.uid >= 10000 && !blacklist.contains(it.packageName) }
.map { HideAppInfo(it, pm) }
.map { createTarget(it, hides) }
.filter { it.processes.isNotEmpty() }
@ -112,7 +112,6 @@ class HideViewModel : BaseViewModel(), Queryable {
companion object {
private val blacklist by lazy { listOf(
packageName,
"android",
"com.android.chrome",
"com.chrome.beta",
"com.chrome.dev",