ADB install-multi-package / 希望尽快安装带有单独包的 APK

ADB install-multi-package / Wanting to install APK's with separate packages as fast as possible

我可以看到 adb install https://developer.android.com/studio/command-line/adb#move

的官方文档

但是 adb install-multipleadb install-multi-package 的官方文档在哪里?

我只是从这里找到了他们存在的线索:https://adbshell.com/commands/adb-install(特别是install-multi-package是我想试一试的)

我尝试时收到“未知命令”,

并且在平台工具版本中提到了针对它的修复:

谁能解释一下它的用途? 什么版本支持呢? 还有更多文档链接吗?

最好的文档是代码。检查 https://android.googlesource.com/platform/system/core/+/b581ce93bbd8f900b8e2ff63b80872f2748e32a4/adb/client/commandline.cpp#150

    " install-multiple [-lrtsdpg] [--instant] PACKAGE...\n"
    "     push multiple APKs to the device for a single package and install them\n"
    " install-multi-package [-lrtsdpg] [--instant] PACKAGE...\n"
    "     push one or more packages to the device and install them atomically\n"
    "     -r: replace existing application\n"
    "     -t: allow test packages\n"
    "     -d: allow version code downgrade (debuggable packages only)\n"
    "     -p: partial application install (install-multiple only)\n"
    "     -g: grant all runtime permissions\n"
    "     --instant: cause the app to be installed as an ephemeral install app\n"
    "     --no-streaming: always push APK to device and invoke Package Manager as separate steps\n"
    "     --streaming: force streaming APK directly into Package Manager\n"
    "     --fastdeploy: use fast deploy\n"
    "     --no-fastdeploy: prevent use of fast deploy\n"
    "     --force-agent: force update of deployment agent when using fast deploy\n"
    "     --date-check-agent: update deployment agent when local version is newer and using fast deploy\n"
    "     --version-check-agent: update deployment agent when local version has different version code and using fast deploy\n"

恐怕ubuntu adb 版本有点过时了。安装最新的平台工具。如何: