Fix incorrect command

Fix #2992
This commit is contained in:
topjohnwu 2020-07-17 05:27:53 -07:00
parent 4c2570628d
commit 15866cfba9

View File

@ -51,9 +51,7 @@ class MagiskRepository(
}
suspend fun fetchHideTargets() =
Shell.su("\"magiskhide --ls\"").await().out.map {
HideTarget(it)
}
Shell.su("magiskhide --ls").await().out.map { HideTarget(it) }
fun toggleHide(isEnabled: Boolean, packageName: String, process: String) =
Shell.su("magiskhide --${isEnabled.state} $packageName $process").submit()