mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 14:37:39 +00:00
Manager: fix ModulesFragment reboot menu
- correct 'booloader' typo breaking bootloader entry - remove extra bootloader entry Shell.su line which is unnecessary since it's covered by reboot() - revert to using `reboot recovery` for recovery entry since `svc power reboot recovery` triggers a very disconcerting "Factory data reset" reboot dialog on many devices - add Reboot to EDL mode option for good measure
This commit is contained in:
parent
b0e49a4cc8
commit
b1e63f0f14
@ -68,18 +68,21 @@ class ModulesFragment : MagiskFragment<ModuleViewModel, FragmentModulesBinding>(
|
||||
return true
|
||||
}
|
||||
R.id.reboot_recovery -> {
|
||||
reboot("recovery")
|
||||
Shell.su("/system/bin/reboot recovery").submit()
|
||||
return true
|
||||
}
|
||||
R.id.reboot_bootloader -> {
|
||||
reboot("booloader")
|
||||
Shell.su("/system/bin/reboot bootloader").submit()
|
||||
reboot("bootloader")
|
||||
return true
|
||||
}
|
||||
R.id.reboot_download -> {
|
||||
reboot("download")
|
||||
return true
|
||||
}
|
||||
R.id.reboot_edl -> {
|
||||
reboot("edl")
|
||||
return true
|
||||
}
|
||||
else -> return false
|
||||
}
|
||||
}
|
||||
|
@ -22,4 +22,9 @@
|
||||
android:title="@string/reboot_download"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/reboot_edl"
|
||||
android:title="@string/reboot_edl"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
@ -44,6 +44,7 @@
|
||||
<string name="reboot_recovery">Reboot to Recovery</string>
|
||||
<string name="reboot_bootloader">Reboot to Bootloader</string>
|
||||
<string name="reboot_download">Reboot to Download</string>
|
||||
<string name="reboot_edl">Reboot to EDL</string>
|
||||
|
||||
<!--Repo Fragment-->
|
||||
<string name="update_available">Update Available</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user