Remove: Logging of UtilBox

This commit is contained in:
LooKeR 2021-11-23 19:46:35 +05:30
parent e2781e5e9c
commit 804533133d

View File

@ -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 ""