Add more apps into presets
This commit is contained in:
parent
11d35b3e5f
commit
42d1d5f4fb
4 changed files with 59 additions and 5 deletions
|
|
@ -5,7 +5,8 @@ import icu.nullptr.hidemyapplist.common.Utils
|
|||
|
||||
class CustomROMPreset : BasePreset("custom_rom") {
|
||||
override val exactPackageNames = setOf(
|
||||
"io.chaldeaprjkt.gamespace"
|
||||
"io.chaldeaprjkt.gamespace",
|
||||
"powersaver.pro",
|
||||
)
|
||||
|
||||
override fun canBeAddedIntoPreset(appInfo: ApplicationInfo): Boolean {
|
||||
|
|
@ -47,8 +48,33 @@ class CustomROMPreset : BasePreset("custom_rom") {
|
|||
}
|
||||
|
||||
// EvoX (just added by the community request)
|
||||
if (Utils.startsWithMultiple("org.evolution.", "org.evolutionx.") ||
|
||||
Utils.endsWithMultiple(".evolution", ".evolutionx")) {
|
||||
if (Utils.startsWithMultiple(packageName, "org.evolution.", "org.evolutionx.") ||
|
||||
Utils.endsWithMultiple(packageName, ".evolution", ".evolutionx")) {
|
||||
return true
|
||||
}
|
||||
|
||||
// Several AOSP ROMs
|
||||
if (Utils.startsWithMultiple(
|
||||
packageName,
|
||||
"com.android.system.switch.",
|
||||
"com.accents.",
|
||||
"com.alpha.",
|
||||
"com.android.systemui.",
|
||||
"com.android.theme.",
|
||||
"com.bootleggers.",
|
||||
"com.custom.overlay.",
|
||||
"com.gnonymous.gvisualmod.",
|
||||
"com.libremobileos.",
|
||||
"com.nikgapps.",
|
||||
"com.potato.",
|
||||
)) {
|
||||
return true
|
||||
}
|
||||
|
||||
if (Utils.endsWithMultiple(
|
||||
packageName,
|
||||
".overlay.fog",
|
||||
)) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ class DetectorAppsPreset : BasePreset("detector_apps") {
|
|||
"id.my.pjm.qbcd_okr_dvii",
|
||||
"wu.Zygisk.Detector",
|
||||
"com.atominvention.rootchecker",
|
||||
"com.joeykrim.rootcheck",
|
||||
|
||||
// Play Integrity checkers
|
||||
"krypton.tbsafetychecker",
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ class RootAppsPreset : BasePreset("root_apps") {
|
|||
"mattecarra.accapp",
|
||||
"io.github.saeeddev94.pixelnr",
|
||||
"com.js.nowakelock",
|
||||
"com.aistra.hail",
|
||||
"me.twrp.twrpapp",
|
||||
"com.slash.batterychargelimit",
|
||||
"com.valhalla.thor",
|
||||
|
|
|
|||
|
|
@ -6,14 +6,27 @@ import java.util.zip.ZipFile
|
|||
class SuspiciousAppsPreset : BasePreset("sus_apps") {
|
||||
override val exactPackageNames = setOf(
|
||||
"com.reveny.vbmetafix.service",
|
||||
"com.microsoft.rdc.androidx",
|
||||
"berserker.android.apps.sshdroid",
|
||||
"com.iamaner.oneclickfreeze",
|
||||
"com.shamanland.privatescreenshots",
|
||||
"com.aistra.hail",
|
||||
|
||||
// Remote desktop apps
|
||||
"com.devolutions.remotedesktopmanager",
|
||||
"com.anydesk.anydeskandroid",
|
||||
"com.carriez.flutter_hbb",
|
||||
|
||||
// Suspicious app markets
|
||||
"com.happymod.apk",
|
||||
"com.pd.pdhelper",
|
||||
"cm.aptoide.pt",
|
||||
|
||||
// File managers
|
||||
"com.speedsoftware.rootexplorer",
|
||||
"me.zhanghai.android.files",
|
||||
"com.lonelycatgames.Xplore",
|
||||
"org.fossify.filemanager",
|
||||
"com.amaze.filemanager",
|
||||
)
|
||||
|
||||
val libNames = arrayOf(
|
||||
|
|
@ -72,6 +85,21 @@ class SuspiciousAppsPreset : BasePreset("sus_apps") {
|
|||
return true
|
||||
}
|
||||
|
||||
// All StrAI apps
|
||||
if (packageName.startsWith("com.x0.strai.")) {
|
||||
return true
|
||||
}
|
||||
|
||||
// All Microsoft remote control apps
|
||||
if (packageName.startsWith("com.microsoft.rdc.")) {
|
||||
return true
|
||||
}
|
||||
|
||||
// All TeamViewer apps
|
||||
if (packageName.startsWith("com.teamviewer.")) {
|
||||
return true
|
||||
}
|
||||
|
||||
ZipFile(appInfo.sourceDir).use { zipFile ->
|
||||
if (findAppsFromLibs(zipFile, libNames) || findAppsFromAssets(zipFile, assetNames)) {
|
||||
return true
|
||||
|
|
|
|||
Loading…
Reference in a new issue