mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-12 11:33:37 +00:00
parent
4c2570628d
commit
15866cfba9
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user