Skip to content

ElisaMin/kotlinx-adb-fastboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

kotlinx-adb-fastboot

更新一段时间就太监了。

how to use this shit?

fun main(){
  val (isSuccess,message) = adb shell {"echo hello motherfucker"}
  println(message)
  if (isSuccess){
    keepGoing
  }
}
  

or do like this

fun main(){
  
  fun doSthWithResult(cr:CommandResult,dosth:()->Unit){
    if (rr.isSuccesss){
      dosth()
    }
    ……
  }
  
  doSthWithResult(adb reboot bootloader){
    doSthWithResult(fastboot flash pair("boot_a","path/to/boot")){
      println("yeeeeeeaaah") 
     }
  }
}

About

更新一段时间就太监了。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages