dadb icon indicating copy to clipboard operation
dadb copied to clipboard

Usage on android

Open vaclavbenes opened this issue 1 year ago • 4 comments

I want to ask. What is the effort to use it as an android library? is it even possible? I see the JVM target. Thank you. :)

vaclavbenes avatar Mar 09 '23 09:03 vaclavbenes

You can check my demo project here:

  • https://github.com/sharpordie/hisendal
  • https://github.com/sharpordie/hisendal/blob/main/app/src/main/java/com/example/hisendal/Device.kt

Dadb lacks some features, like pair command support, so I now use this wonderful library:

  • https://github.com/MuntashirAkon/libadb-android

You can also use this, it uses the real ADB binary compiled for Android:

  • https://github.com/tytydraco/LADB/blob/main/app/src/main/java/com/draco/ladb/utils/ADB.kt

If you need iOS support, the work of wsvn53 is amazing:

  • https://github.com/wsvn53/adb-mobile

sharpordie avatar Mar 11 '23 10:03 sharpordie

Dadb lacks some features, like pair command support, so I now use this wonderful library:

  • https://github.com/MuntashirAkon/libadb-android

You mentioned the library "libadb-android" for having the pair feature... does that mean I can use that library to pair and continue using dadb...?

I don't want to rewrite my whole application because it lacks the pair feature, if I can somehow pair device and continue using dadb, it would be greatly appreciated...

ITDev93 avatar Jun 15 '23 23:06 ITDev93

I could be doable, personally I rewrote everything using libadb-android because I had another issues with dadb.

sharpordie avatar Jun 17 '23 16:06 sharpordie

I could be doable, personally I rewrote everything using libadb-android because I had another issues with dadb.

I tried libadb with dadb, pairing works but dadb wouldn't connect, I'm guessing because dadb doesn't use adb hosts file created by libadb...

I guess I should rewrite everything with libadb as well...

ITDev93 avatar Jun 17 '23 16:06 ITDev93