Remove vbmeta_disabled flasher
This commit is contained in:
parent
15ecb0938a
commit
3456e486f0
|
@ -54,15 +54,13 @@ class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
val suffix: String = Shell.cmd("getprop ro.boot.slot_suffix").exec().out[0].toString()
|
val suffix: String = Shell.cmd("getprop ro.boot.slot_suffix").exec().out[0].toString()
|
||||||
|
|
||||||
buttonS2L.isEnabled = true
|
|
||||||
if (!isFileExist("/sdcard/linux/")) {
|
if (!isFileExist("/sdcard/linux/")) {
|
||||||
Shell.cmd("mkdir /sdcard/linux/").exec()
|
Shell.cmd("mkdir /sdcard/linux/").exec()
|
||||||
} else if (!isFileExist("/sdcard/linux/linux.vbmeta.img")) {
|
}
|
||||||
showToast("linux.vbmeta.img bot found", applicationContext)
|
if (!isFileExist("/sdcard/linux/linux.boot.img")) {
|
||||||
finish()
|
|
||||||
} else if (!isFileExist("/sdcard/linux/linux.boot.img")) {
|
|
||||||
showToast("linux.boot.img not found", applicationContext)
|
showToast("linux.boot.img not found", applicationContext)
|
||||||
finish()
|
} else {
|
||||||
|
buttonS2L.isEnabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
textSlot.text = this.resources.getString(R.string.slot_text).format(suffix[1])
|
textSlot.text = this.resources.getString(R.string.slot_text).format(suffix[1])
|
||||||
|
|
Loading…
Reference in a new issue