Running adb commands on all connected devices

前端 未结 6 1429
野性不改
野性不改 2020-12-24 13:30

Is there a way of running adb commands on all connected devices? To uninstall an app from all connected devices with \"adb uninstall com.example.android\".

The comma

6条回答
  •  旧时难觅i
    2020-12-24 13:59

    adb wrapper supports selecting multiple targets for adb commands and parallel execution.

    From its README:

    # Installation
    ./install.sh ~/apps/android-sdk-linux
    # Execute adb commands on all connected devices.
    adb set-target all
    # Execute adb commands on given devices.
    adb set-target emulator-5554 C59KGT14263422
    # Use GNU parallel for parallel install.
    adb set-parallel true
    

    (Disclaimer: I have written half of it)

提交回复
热议问题