Commit fd552e68 authored by vvb2060's avatar vvb2060 Committed by John Wu

Don't hide app with uid < 10000

parent de4e26b4
...@@ -57,7 +57,7 @@ class HideViewModel : BaseViewModel(), Queryable { ...@@ -57,7 +57,7 @@ class HideViewModel : BaseViewModel(), Queryable {
val hides = Shell.su("magiskhide --ls").exec().out.map { HideTarget(it) } val hides = Shell.su("magiskhide --ls").exec().out.map { HideTarget(it) }
val apps = pm.getInstalledApplications(0) val apps = pm.getInstalledApplications(0)
.asSequence() .asSequence()
.filter { it.enabled && !blacklist.contains(it.packageName) } .filter { it.enabled && it.uid >= 10000 && !blacklist.contains(it.packageName) }
.map { HideAppInfo(it, pm) } .map { HideAppInfo(it, pm) }
.map { createTarget(it, hides) } .map { createTarget(it, hides) }
.filter { it.processes.isNotEmpty() } .filter { it.processes.isNotEmpty() }
...@@ -112,7 +112,6 @@ class HideViewModel : BaseViewModel(), Queryable { ...@@ -112,7 +112,6 @@ class HideViewModel : BaseViewModel(), Queryable {
companion object { companion object {
private val blacklist by lazy { listOf( private val blacklist by lazy { listOf(
packageName, packageName,
"android",
"com.android.chrome", "com.android.chrome",
"com.chrome.beta", "com.chrome.beta",
"com.chrome.dev", "com.chrome.dev",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment