source: mass rename KernelSU -> KernelSU-Next

This commit is contained in:
Rifat Azad
2024-12-21 02:06:32 +06:00
parent df700143da
commit ef4714871e
10 changed files with 18 additions and 18 deletions

View File

@@ -98,7 +98,7 @@ private fun AboutCardContent() {
val annotatedString = AnnotatedString.Companion.fromHtml( val annotatedString = AnnotatedString.Companion.fromHtml(
htmlString = stringResource( htmlString = stringResource(
id = R.string.about_source_code, id = R.string.about_source_code,
"<b><a href=\"https://github.com/rifsxd/KernelSU\">GitHub</a></b>" "<b><a href=\"https://github.com/rifsxd/KernelSU-Next\">GitHub</a></b>"
), ),
linkStyles = TextLinkStyles( linkStyles = TextLinkStyles(
style = SpanStyle( style = SpanStyle(

View File

@@ -88,7 +88,7 @@ fun ExecuteModuleActionScreen(navigator: DestinationsNavigator, moduleId: String
val date = format.format(Date()) val date = format.format(Date())
val file = File( val file = File(
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),
"KernelSU_module_action_log_${date}.log" "KernelSU_Next_module_action_log_${date}.log"
) )
file.writeText(logContent.toString()) file.writeText(logContent.toString())
snackBarHost.showSnackbar("Log saved to ${file.absolutePath}") snackBarHost.showSnackbar("Log saved to ${file.absolutePath}")

View File

@@ -128,7 +128,7 @@ fun FlashScreen(navigator: DestinationsNavigator, flashIt: FlashIt) {
val date = format.format(Date()) val date = format.format(Date())
val file = File( val file = File(
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),
"KernelSU_install_log_${date}.log" "KernelSU_Next_install_log_${date}.log"
) )
file.writeText(logContent.toString()) file.writeText(logContent.toString())
snackBarHost.showSnackbar("Log saved to ${file.absolutePath}") snackBarHost.showSnackbar("Log saved to ${file.absolutePath}")

View File

@@ -227,7 +227,7 @@ fun SettingScreen(navigator: DestinationsNavigator) {
.clickable { .clickable {
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd_HH_mm") val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd_HH_mm")
val current = LocalDateTime.now().format(formatter) val current = LocalDateTime.now().format(formatter)
exportBugreportLauncher.launch("KernelSU_bugreport_${current}.tar.gz") exportBugreportLauncher.launch("KernelSU_Next_bugreport_${current}.tar.gz")
showBottomsheet = false showBottomsheet = false
} }
) { ) {

View File

@@ -186,7 +186,7 @@ fun flashModule(
} }
val cmd = "module install ${file.absolutePath}" val cmd = "module install ${file.absolutePath}"
val result = flashWithIO("${getKsuDaemonPath()} $cmd", onStdout, onStderr) val result = flashWithIO("${getKsuDaemonPath()} $cmd", onStdout, onStderr)
Log.i("KernelSU", "install module $uri result: $result") Log.i("KernelSU-Next", "install module $uri result: $result")
file.delete() file.delete()
@@ -214,7 +214,7 @@ fun runModuleAction(
val result = shell.newJob().add("${getKsuDaemonPath()} module action $moduleId") val result = shell.newJob().add("${getKsuDaemonPath()} module action $moduleId")
.to(stdoutCallback, stderrCallback).exec() .to(stdoutCallback, stderrCallback).exec()
Log.i("KernelSU", "Module runAction result: $result") Log.i("KernelSU-Next", "Module runAction result: $result")
return result.isSuccess return result.isSuccess
} }
@@ -308,7 +308,7 @@ fun installBoot(
cmd += " -o $downloadsDir" cmd += " -o $downloadsDir"
val result = flashWithIO("${getKsuDaemonPath()} $cmd", onStdout, onStderr) val result = flashWithIO("${getKsuDaemonPath()} $cmd", onStdout, onStderr)
Log.i("KernelSU", "install boot result: ${result.isSuccess}") Log.i("KernelSU-Next", "install boot result: ${result.isSuccess}")
bootFile?.delete() bootFile?.delete()
lkmFile?.delete() lkmFile?.delete()

View File

@@ -101,7 +101,7 @@ fun getBugreportFile(context: Context): File {
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd_HH_mm") val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd_HH_mm")
val current = LocalDateTime.now().format(formatter) val current = LocalDateTime.now().format(formatter)
val targetFile = File(context.cacheDir, "KernelSU_bugreport_${current}.tar.gz") val targetFile = File(context.cacheDir, "KernelSU_Next_bugreport_${current}.tar.gz")
shell.newJob().add("tar czf ${targetFile.absolutePath} -C ${bugreportDir.absolutePath} .").exec() shell.newJob().add("tar czf ${targetFile.absolutePath} -C ${bugreportDir.absolutePath} .").exec()
shell.newJob().add("rm -rf ${bugreportDir.absolutePath}").exec() shell.newJob().add("rm -rf ${bugreportDir.absolutePath}").exec()

View File

@@ -39,9 +39,9 @@ class WebUIActivity : ComponentActivity() {
val name = intent.getStringExtra("name")!! val name = intent.getStringExtra("name")!!
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
setTaskDescription(ActivityManager.TaskDescription("KernelSU - $name")) setTaskDescription(ActivityManager.TaskDescription("KernelSU-Next - $name"))
} else { } else {
val taskDescription = ActivityManager.TaskDescription.Builder().setLabel("KernelSU - $name").build() val taskDescription = ActivityManager.TaskDescription.Builder().setLabel("KernelSU-Next - $name").build()
setTaskDescription(taskDescription) setTaskDescription(taskDescription)
} }

View File

@@ -77,10 +77,10 @@
<string name="profile_selinux_context">SELinux context</string> <string name="profile_selinux_context">SELinux context</string>
<string name="profile_umount_modules">Umount modules</string> <string name="profile_umount_modules">Umount modules</string>
<string name="failed_to_update_app_profile">Failed to update App Profile for %s</string> <string name="failed_to_update_app_profile">Failed to update App Profile for %s</string>
<string name="require_kernel_version">The current KernelSU version %d is too low for the manager to work properly. Please upgrade to version %d or higher!</string> <string name="require_kernel_version">The current KernelSU-Next version %d is too low for the manager to work properly. Please upgrade to version %d or higher!</string>
<string name="settings_umount_modules_default">Umount modules by default</string> <string name="settings_umount_modules_default">Umount modules by default</string>
<string name="settings_umount_modules_default_summary">The global default value for \"Umount modules\" in App Profile. If enabled, it will remove all module modifications to the system for apps that don\'t have a profile set.</string> <string name="settings_umount_modules_default_summary">The global default value for \"Umount modules\" in App Profile. If enabled, it will remove all module modifications to the system for apps that don\'t have a profile set.</string>
<string name="profile_umount_modules_summary">Enabling this option will allow KernelSU to restore any modified files by the modules for this app.</string> <string name="profile_umount_modules_summary">Enabling this option will allow KernelSU-Next to restore any modified files by the modules for this app.</string>
<string name="profile_selinux_domain">Domain</string> <string name="profile_selinux_domain">Domain</string>
<string name="profile_selinux_rules">Rules</string> <string name="profile_selinux_rules">Rules</string>
<string name="module_update">Update</string> <string name="module_update">Update</string>
@@ -134,9 +134,9 @@
<string name="settings_uninstall_temporary">Uninstall temporarily</string> <string name="settings_uninstall_temporary">Uninstall temporarily</string>
<string name="settings_uninstall_permanent">Uninstall permanently</string> <string name="settings_uninstall_permanent">Uninstall permanently</string>
<string name="settings_restore_stock_image">Restore stock image</string> <string name="settings_restore_stock_image">Restore stock image</string>
<string name="settings_uninstall_temporary_message">Temporarily uninstall KernelSU, restore to original state after next reboot.</string> <string name="settings_uninstall_temporary_message">Temporarily uninstall KernelSU-Next, restore to original state after next reboot.</string>
<string name="settings_uninstall_permanent_message">Uninstalling KernelSU (Root and all modules) completely and permanently.</string> <string name="settings_uninstall_permanent_message">Uninstalling KernelSU-Next (Root and all modules) completely and permanently.</string>
<string name="settings_restore_stock_image_message">Restore the stock factory image (If a backup exists), usually used before OTA; if you need to uninstall KernelSU, please use \"Uninstall permanently\".</string> <string name="settings_restore_stock_image_message">Restore the stock factory image (If a backup exists), usually used before OTA; if you need to uninstall KernelSU-Next, please use \"Uninstall permanently\".</string>
<string name="flashing">Flashing</string> <string name="flashing">Flashing</string>
<string name="flash_success">Flash success</string> <string name="flash_success">Flash success</string>
<string name="flash_failed">Flash failed</string> <string name="flash_failed">Flash failed</string>

View File

@@ -1,6 +1,6 @@
#!/system/bin/sh #!/system/bin/sh
############################################ ############################################
# KernelSU installer script # KernelSU-Next installer script
# mostly from module_installer.sh # mostly from module_installer.sh
# and util_functions.sh in Magisk # and util_functions.sh in Magisk
############################################ ############################################
@@ -369,7 +369,7 @@ install_module() {
set_permissions set_permissions
else else
print_title "$MODNAME" "by $MODAUTH" print_title "$MODNAME" "by $MODAUTH"
print_title "Powered by KernelSU" print_title "Powered by KernelSU-Next"
unzip -o "$ZIPFILE" customize.sh -d $MODPATH >&2 unzip -o "$ZIPFILE" customize.sh -d $MODPATH >&2

View File

@@ -223,7 +223,7 @@ pub fn uninstall(magiskboot_path: Option<PathBuf>) -> Result<()> {
std::fs::remove_dir_all(defs::MODULE_DIR).ok(); std::fs::remove_dir_all(defs::MODULE_DIR).ok();
println!("- Restore boot image.."); println!("- Restore boot image..");
boot_patch::restore(None, magiskboot_path, true)?; boot_patch::restore(None, magiskboot_path, true)?;
println!("- Uninstall KernelSU manager.."); println!("- Uninstall KernelSU-Next manager..");
Command::new("pm") Command::new("pm")
.args(["uninstall", "com.rifsxd.ksunext"]) .args(["uninstall", "com.rifsxd.ksunext"])
.spawn()?; .spawn()?;