Difference between adb “install” command and “pm install” command?

前端 未结 1 590
孤独总比滥情好
孤独总比滥情好 2020-12-15 07:09

What\'s the difference between installing an app using the install command and using the package manager\'s pm install command? Do they do the exac

相关标签:
1条回答
  • 2020-12-15 07:39

    adb install is a command to run from a development host, which uploads a package somewhere temporary and then installs it.

    pm install is a command to run locally on the device.

    adb does indeed utilize the pm program on the device - see the source code at

    https://android.googlesource.com/platform/system/core/+/kitkat-mr2.2-release/adb/commandline.c

    0 讨论(0)
提交回复
热议问题