如何使用-s命令adb将apk安装到多个连接的设备上?

时间:2016-11-21 11:35:20

标签: android-emulator

我有两台设备插入我的开发机器。

我正在执行由Android Debug Bridge提供的特定命令

adb -s serial_number command 

假设我这样做了:

C:\Users\kalpesh>adb devices
List of devices attached
16261522500024  device
16261522500022  device

现在我正在尝试这个:

C:\Users\kalpesh>adb -s 16261522500024 -s 16261522500022 install Chrome.apk

但它正在给出这个:

 adb help                     - show this help message
  adb version                  - show version num

scripting:
  adb wait-for[-<transport>]-<state>
                               - wait for device to be in the given state:
                                 device, recovery, sideload, or bootloader
                                 Transport is: usb, local or any [default=any]
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb get-devpath              - prints: <device-path>
  adb remount                  - remounts the /system, /vendor (if present) and 

喜欢一些帮助命令

0 个答案:

没有答案