You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
manager: some slight fixes
This commit is contained in:
@@ -179,7 +179,6 @@ fun SettingScreen(navigator: DestinationsNavigator) {
|
||||
prefs.edit().putBoolean("use_overlay_fs", it).apply()
|
||||
useOverlayFs = it
|
||||
showRestartDialog = true
|
||||
moduleMigration()
|
||||
}
|
||||
|
||||
if (showRestartDialog) {
|
||||
|
||||
@@ -427,12 +427,6 @@ fun getAppProfileTemplate(id: String): String {
|
||||
.to(ArrayList(), null).exec().out.joinToString("\n")
|
||||
}
|
||||
|
||||
fun moduleMigration(): Boolean {
|
||||
val shell = getRootShell()
|
||||
// mirgate modules for module system switch
|
||||
return ShellUtils.fastCmdResult(shell, "mv /data/adb/modules/* /data/adb/modules_update/")
|
||||
}
|
||||
|
||||
fun setAppProfileTemplate(id: String, template: String): Boolean {
|
||||
val shell = getRootShell()
|
||||
val escapedTemplate = template.replace("\"", "\\\"")
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<string name="home_magic_mount">Magic Mount</string>
|
||||
<string name="home_overlayfs_mount">OverlayFS</string>
|
||||
<string name="use_overlay_fs">Use OverlayFS</string>
|
||||
<string name="use_overlay_fs_summary">Toggle between using OverlayFS or Magic for KernelSU Next's mount system.</string>
|
||||
<string name="use_overlay_fs_summary">Toggle between using OverlayFS or Magic for KernelSU Next\'s mount system.</string>
|
||||
<string name="restart_required">Restart Required</string>
|
||||
<string name="restart_message">Changes will take effect after restarting the app. Would you like to restart now?</string>
|
||||
<string name="restart_now">Restart Now</string>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<string name="home_magic_mount">Magic Mount</string>
|
||||
<string name="home_overlayfs_mount">OverlayFS</string>
|
||||
<string name="use_overlay_fs">Use OverlayFS</string>
|
||||
<string name="use_overlay_fs_summary">Toggle between using OverlayFS or Magic for KernelSU Next's mount system.</string>
|
||||
<string name="use_overlay_fs_summary">Toggle between using OverlayFS or Magic for KernelSU Next\'s mount system.</string>
|
||||
<string name="restart_required">Restart Required</string>
|
||||
<string name="restart_message">Changes will take effect after restarting the app. Would you like to restart now?</string>
|
||||
<string name="restart_now">Restart Now</string>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<string name="home_magic_mount">Magic Mount</string>
|
||||
<string name="home_overlayfs_mount">OverlayFS</string>
|
||||
<string name="use_overlay_fs">Use OverlayFS</string>
|
||||
<string name="use_overlay_fs_summary">Toggle between using OverlayFS or Magic for KernelSU Next's mount system.</string>
|
||||
<string name="use_overlay_fs_summary">Toggle between using OverlayFS or Magic for KernelSU Next\'s mount system.</string>
|
||||
<string name="restart_required">Restart Required</string>
|
||||
<string name="restart_message">Changes will take effect after restarting the app. Would you like to restart now?</string>
|
||||
<string name="restart_now">Restart Now</string>
|
||||
|
||||
Reference in New Issue
Block a user