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
|
||||
get() {
|
||||
listOf("toybox", "busybox").forEach {
|
||||
var shellResult = Shell.su("which $it").exec()
|
||||
val shellResult = Shell.su("which $it").exec()
|
||||
if (shellResult.out.isNotEmpty()) {
|
||||
val utilBoxPath = shellResult.out.joinToString("")
|
||||
if (utilBoxPath.isNotEmpty()) {
|
||||
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
|
||||
}
|
||||
if (utilBoxPath.isNotEmpty()) return utilBoxPath.quote
|
||||
}
|
||||
}
|
||||
return ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user