How can I adb install an apk to multiple connected devices?

后端 未结 20 2065
余生分开走
余生分开走 2020-11-30 19:03

I have 7 devices plugged into my development machine.

Normally I do adb install and can install to just a single device.

Now

20条回答
  •  无人及你
    2020-11-30 19:25

    Since I can't comment on the answer by @Tom, this worked for me on OSX 10.13

    adb devices | tail -n +2 | cut -sf 1 | xargs -IX adb -s X install -r path/to/apk.apk
    

    (Change the little i to a big I)

提交回复
热议问题