manager: some slight fixes

This commit is contained in:
Rifat Azad
2025-01-08 00:27:58 +06:00
parent 3d3cb47936
commit 3a8d78086f
5 changed files with 3 additions and 10 deletions

View File

@@ -179,7 +179,6 @@ fun SettingScreen(navigator: DestinationsNavigator) {
prefs.edit().putBoolean("use_overlay_fs", it).apply() prefs.edit().putBoolean("use_overlay_fs", it).apply()
useOverlayFs = it useOverlayFs = it
showRestartDialog = true showRestartDialog = true
moduleMigration()
} }
if (showRestartDialog) { if (showRestartDialog) {

View File

@@ -427,12 +427,6 @@ fun getAppProfileTemplate(id: String): String {
.to(ArrayList(), null).exec().out.joinToString("\n") .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 { fun setAppProfileTemplate(id: String, template: String): Boolean {
val shell = getRootShell() val shell = getRootShell()
val escapedTemplate = template.replace("\"", "\\\"") val escapedTemplate = template.replace("\"", "\\\"")

View File

@@ -67,7 +67,7 @@
<string name="home_magic_mount">Magic Mount</string> <string name="home_magic_mount">Magic Mount</string>
<string name="home_overlayfs_mount">OverlayFS</string> <string name="home_overlayfs_mount">OverlayFS</string>
<string name="use_overlay_fs">Use 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_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_message">Changes will take effect after restarting the app. Would you like to restart now?</string>
<string name="restart_now">Restart Now</string> <string name="restart_now">Restart Now</string>

View File

@@ -66,7 +66,7 @@
<string name="home_magic_mount">Magic Mount</string> <string name="home_magic_mount">Magic Mount</string>
<string name="home_overlayfs_mount">OverlayFS</string> <string name="home_overlayfs_mount">OverlayFS</string>
<string name="use_overlay_fs">Use 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_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_message">Changes will take effect after restarting the app. Would you like to restart now?</string>
<string name="restart_now">Restart Now</string> <string name="restart_now">Restart Now</string>

View File

@@ -67,7 +67,7 @@
<string name="home_magic_mount">Magic Mount</string> <string name="home_magic_mount">Magic Mount</string>
<string name="home_overlayfs_mount">OverlayFS</string> <string name="home_overlayfs_mount">OverlayFS</string>
<string name="use_overlay_fs">Use 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_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_message">Changes will take effect after restarting the app. Would you like to restart now?</string>
<string name="restart_now">Restart Now</string> <string name="restart_now">Restart Now</string>