You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Replaced log calls from magiskdb to repo
This commit is contained in:
@@ -18,11 +18,8 @@ object DatabaseDefinition {
|
||||
@AnyThread
|
||||
fun MagiskQuery.query() = query.su()
|
||||
|
||||
fun String.suRaw() = Single.just(Shell.su(this))
|
||||
.map { it.exec().out }
|
||||
|
||||
fun String.su() = suRaw()
|
||||
.map { it.toMap() }
|
||||
fun String.suRaw() = Single.fromCallable { Shell.su(this).exec().out }
|
||||
fun String.su() = suRaw().map { it.toMap() }
|
||||
|
||||
fun List<String>.toMap() = map { it.split(Regex("\\|")) }
|
||||
.map { it.toMapInternal() }
|
||||
|
||||
Reference in New Issue
Block a user