feat: RootAppsPreset.kt: remove unnecessary apps from list
why would F-Droid extension and some apps listed here? useless. Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
5c537e6751
commit
f128da3ff2
1 changed files with 2 additions and 17 deletions
|
|
@ -73,12 +73,7 @@ class RootAppsPreset : BasePreset(NAME) {
|
|||
)
|
||||
|
||||
override fun canBeAddedIntoPreset(appInfo: ApplicationInfo): Boolean {
|
||||
val packageName = appInfo.packageName
|
||||
|
||||
// All libxzr apps (konabess, hkf, ...)
|
||||
if (Utils.startsWithMultiple(packageName, "xzr.", "moe.xzr.")) {
|
||||
return true
|
||||
}
|
||||
val packageName = appInfo.packageName
|
||||
|
||||
// LSPosed and LSPatch
|
||||
if (packageName.startsWith("org.lsposed")) {
|
||||
|
|
@ -109,17 +104,7 @@ class RootAppsPreset : BasePreset(NAME) {
|
|||
if (packageName.startsWith("com.xayah.databackup")) {
|
||||
return true
|
||||
}
|
||||
|
||||
// SmartPack Kernel Manager + Busybox Installer
|
||||
if (packageName.startsWith("com.smartpack.")) {
|
||||
return true
|
||||
}
|
||||
|
||||
// F-Droid Privileged
|
||||
if (packageName.startsWith("org.fdroid.fdroid.privileged")) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
ZipFile(appInfo.sourceDir).use { zipFile ->
|
||||
if (findAppsFromLibs(zipFile, libNames) || findAppsFromAssets(zipFile, assetNames)) {
|
||||
return true
|
||||
|
|
|
|||
Loading…
Reference in a new issue