Skip to content

Commit

Permalink
lazybox: fix adb command error
Browse files Browse the repository at this point in the history
  • Loading branch information
cfig committed Sep 26, 2023
1 parent 7c8e997 commit 1deb331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lazybox/src/main/kotlin/cfig/lazybox/sysinfo/CpuInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class CpuInfo(
}

val getAdbCmdResult: (String, Boolean) -> String? = { cmd, check ->
Helper.powerRun2(cmd, null).let {
Helper.powerRun2("adb shell $cmd", null).let {
if (it[0] as Boolean) {
String(it[1] as ByteArray)
String(it[1] as ByteArray).trim()
} else {
if (check) {
log.warn(String(it[1] as ByteArray))
Expand Down

0 comments on commit 1deb331

Please sign in to comment.