mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Remove: Logging of UtilBox
This commit is contained in:
parent
e2781e5e9c
commit
804533133d
@ -58,21 +58,10 @@ class RootInstaller(context: Context) : BaseInstaller(context) {
|
|||||||
private val getUtilBoxPath: String
|
private val getUtilBoxPath: String
|
||||||
get() {
|
get() {
|
||||||
listOf("toybox", "busybox").forEach {
|
listOf("toybox", "busybox").forEach {
|
||||||
var shellResult = Shell.su("which $it").exec()
|
val shellResult = Shell.su("which $it").exec()
|
||||||
if (shellResult.out.isNotEmpty()) {
|
if (shellResult.out.isNotEmpty()) {
|
||||||
val utilBoxPath = shellResult.out.joinToString("")
|
val utilBoxPath = shellResult.out.joinToString("")
|
||||||
if (utilBoxPath.isNotEmpty()) {
|
if (utilBoxPath.isNotEmpty()) return utilBoxPath.quote
|
||||||
val utilBoxQuoted = utilBoxPath.quote
|
|
||||||
shellResult = Shell.su("$utilBoxQuoted --version").exec()
|
|
||||||
if (shellResult.out.isNotEmpty()) {
|
|
||||||
val utilBoxVersion = shellResult.out.joinToString("")
|
|
||||||
Log.i(
|
|
||||||
this.javaClass.canonicalName,
|
|
||||||
"Using Utilbox $it : $utilBoxQuoted $utilBoxVersion"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
return utilBoxQuoted
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user