mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-13 05:17:37 -08:00
Root shell with no outputs
This commit is contained in:
@@ -175,11 +175,11 @@ public class SettingsActivity extends Activity {
|
||||
case "hosts":
|
||||
enabled = prefs.getBoolean("hosts", false);
|
||||
if (enabled) {
|
||||
magiskManager.rootShell.su(
|
||||
magiskManager.rootShell.su_raw(
|
||||
"cp -af /system/etc/hosts /magisk/.core/hosts",
|
||||
"mount -o bind /magisk/.core/hosts /system/etc/hosts");
|
||||
} else {
|
||||
magiskManager.rootShell.su(
|
||||
magiskManager.rootShell.su_raw(
|
||||
"umount -l /system/etc/hosts",
|
||||
"rm -f /magisk/.core/hosts");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user