manager: Switch to matching mode to match the zygisk module
- bump dependencies
This commit is contained in:
@@ -557,19 +557,36 @@ fun getKpmVersion(): String {
|
|||||||
|
|
||||||
fun getZygiskImplement(): String {
|
fun getZygiskImplement(): String {
|
||||||
val shell = getRootShell()
|
val shell = getRootShell()
|
||||||
val zygiskPath = "/data/adb/modules/zygisksu"
|
val modulesPath = "/data/adb/modules"
|
||||||
val rezygiskPath = "/data/adb/modules/rezygisk"
|
|
||||||
val result = if (ShellUtils.fastCmdResult(shell, "test -f $zygiskPath/module.prop && test ! -f $zygiskPath/disable")) {
|
|
||||||
ShellUtils.fastCmd(shell, "grep '^name=' $zygiskPath/module.prop | cut -d'=' -f2")
|
|
||||||
} else if (ShellUtils.fastCmdResult(shell, "test -f $rezygiskPath/module.prop && test ! -f $rezygiskPath/disable")) {
|
|
||||||
ShellUtils.fastCmd(shell, "grep '^name=' $rezygiskPath/module.prop | cut -d'=' -f2")
|
|
||||||
} else {
|
|
||||||
"None"
|
|
||||||
}
|
|
||||||
Log.i(TAG, "Zygisk implement: $result")
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
|
return try {
|
||||||
|
val moduleDirs = shell.newJob()
|
||||||
|
.add("ls $modulesPath")
|
||||||
|
.to(ArrayList<String>(), null)
|
||||||
|
.exec()
|
||||||
|
.out
|
||||||
|
|
||||||
|
moduleDirs.firstNotNullOfOrNull { moduleName ->
|
||||||
|
if (!moduleName.matches(Regex(".*[a-zA-Z]*zygisk[a-zA-Z]*.*", RegexOption.IGNORE_CASE))) {
|
||||||
|
return@firstNotNullOfOrNull null
|
||||||
|
}
|
||||||
|
|
||||||
|
if (moduleName.contains("lsposed", ignoreCase = true)) {
|
||||||
|
return@firstNotNullOfOrNull null
|
||||||
|
}
|
||||||
|
|
||||||
|
val modulePath = "$modulesPath/$moduleName"
|
||||||
|
val isEnabled = ShellUtils.fastCmdResult(shell, "test -f $modulePath/module.prop && test ! -f $modulePath/disable")
|
||||||
|
if (!isEnabled) return@firstNotNullOfOrNull null
|
||||||
|
ShellUtils.fastCmd(shell, "grep '^name=' $modulePath/module.prop | cut -d'=' -f2")
|
||||||
|
.takeIf { it.isNotBlank() }
|
||||||
|
} ?: "None"
|
||||||
|
} catch (_: Exception) {
|
||||||
|
"None"
|
||||||
|
}.also { result ->
|
||||||
|
Log.i(TAG, "Zygisk implement: $result")
|
||||||
|
}
|
||||||
|
}
|
||||||
fun getUidScannerDaemonPath(): String {
|
fun getUidScannerDaemonPath(): String {
|
||||||
return ksuApp.applicationInfo.nativeLibraryDir + File.separator + "libuid_scanner.so"
|
return ksuApp.applicationInfo.nativeLibraryDir + File.separator + "libuid_scanner.so"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ agp = "8.13.0"
|
|||||||
gson = "2.13.2"
|
gson = "2.13.2"
|
||||||
kotlin = "2.2.20"
|
kotlin = "2.2.20"
|
||||||
ksp = "2.2.20-2.0.2"
|
ksp = "2.2.20-2.0.2"
|
||||||
compose-bom = "2025.09.00"
|
compose-bom = "2025.09.01"
|
||||||
lifecycle = "2.9.4"
|
lifecycle = "2.9.4"
|
||||||
navigation = "2.9.4"
|
navigation = "2.9.5"
|
||||||
activity-compose = "1.11.0"
|
activity-compose = "1.11.0"
|
||||||
kotlinx-coroutines = "1.10.2"
|
kotlinx-coroutines = "1.10.2"
|
||||||
coil-compose = "2.7.0"
|
coil-compose = "2.7.0"
|
||||||
@@ -19,9 +19,9 @@ parcelablelist = "2.0.1"
|
|||||||
libsu = "6.0.0"
|
libsu = "6.0.0"
|
||||||
apksign = "1.4"
|
apksign = "1.4"
|
||||||
cmaker = "1.2"
|
cmaker = "1.2"
|
||||||
compose-material = "1.9.1"
|
compose-material = "1.9.2"
|
||||||
compose-material3 = "1.3.2"
|
compose-material3 = "1.4.0"
|
||||||
compose-ui = "1.9.1"
|
compose-ui = "1.9.2"
|
||||||
documentfile = "1.1.0"
|
documentfile = "1.1.0"
|
||||||
mmrl = "2bb00b3c2b"
|
mmrl = "2bb00b3c2b"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user