Commit 15866cfb authored by topjohnwu's avatar topjohnwu

Fix incorrect command

Fix #2992
parent 4c257062
...@@ -51,9 +51,7 @@ class MagiskRepository( ...@@ -51,9 +51,7 @@ class MagiskRepository(
} }
suspend fun fetchHideTargets() = suspend fun fetchHideTargets() =
Shell.su("\"magiskhide --ls\"").await().out.map { Shell.su("magiskhide --ls").await().out.map { HideTarget(it) }
HideTarget(it)
}
fun toggleHide(isEnabled: Boolean, packageName: String, process: String) = fun toggleHide(isEnabled: Boolean, packageName: String, process: String) =
Shell.su("magiskhide --${isEnabled.state} $packageName $process").submit() Shell.su("magiskhide --${isEnabled.state} $packageName $process").submit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment