buildtool icon indicating copy to clipboard operation
buildtool copied to clipboard

Ability to list all connected Android devices?

Open Sebight opened this issue 3 years ago • 1 comments

Hello,

I've only skimmed through the wiki very fast, but haven't found any mention of what I'm searching for.

Is it possible to see all connected (Android) devices and select which I want to build the app to?

This would really fit my use-case, and the rest of this library is very robust, so it would be great to include it in my solution!

Thank you, Seb

Sebight avatar Jun 11 '22 15:06 Sebight

Hey @Sebight, thanks for your patience in waiting for a reply. That currently isn't possible and I'm not sure how feasible it would be add to the build tool, I'm afraid.

You could, however, try writing a build action to run an interactive shell script that presented the user with the list of connected devices (by grabbing the output of adb devices and turning them into options) and allowed them to choose which one(s) to adb push the build APK to.

robinnorth avatar Jul 26 '22 10:07 robinnorth