mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-11-09 22:33:59 +00:00
Rename db entry name
This commit is contained in:
@@ -40,7 +40,7 @@ object Config : PreferenceConfig, DBConfig {
|
||||
const val SU_MNT_NS = "mnt_ns"
|
||||
const val SU_BIOMETRIC = "su_biometric"
|
||||
const val ZYGISK = "zygisk"
|
||||
const val SAFEMODE = "safemode"
|
||||
const val BOOTLOOP = "bootloop"
|
||||
const val DENYLIST = "denylist"
|
||||
const val SU_MANAGER = "requester"
|
||||
const val KEYSTORE = "keystore"
|
||||
@@ -167,7 +167,7 @@ object Config : PreferenceConfig, DBConfig {
|
||||
suBiometric = value
|
||||
}
|
||||
var zygisk by dbSettings(Key.ZYGISK, false)
|
||||
var safemode by dbSettings(Key.SAFEMODE, 0)
|
||||
var bootloop by dbSettings(Key.BOOTLOOP, 0)
|
||||
var denyList by BoolDBPropertyNoWrite(Key.DENYLIST, false)
|
||||
var suManager by dbStrings(Key.SU_MANAGER, "", true)
|
||||
var keyStoreRaw by dbStrings(Key.KEYSTORE, "", true)
|
||||
|
||||
@@ -25,7 +25,7 @@ object RebootMenu {
|
||||
R.id.action_reboot_safe_mode -> {
|
||||
val status = !item.isChecked
|
||||
item.isChecked = status
|
||||
Config.safemode = if (status) 2 else 0
|
||||
Config.bootloop = if (status) 2 else 0
|
||||
}
|
||||
else -> Unit
|
||||
}
|
||||
@@ -42,7 +42,7 @@ object RebootMenu {
|
||||
menu.menu.findItem(R.id.action_reboot_userspace).isVisible = true
|
||||
}
|
||||
if (Const.APP_IS_CANARY) {
|
||||
menu.menu.findItem(R.id.action_reboot_safe_mode).isChecked = Config.safemode >= 2
|
||||
menu.menu.findItem(R.id.action_reboot_safe_mode).isChecked = Config.bootloop >= 2
|
||||
} else {
|
||||
menu.menu.findItem(R.id.action_reboot_safe_mode).isVisible = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user