Get Application Name/ Label via ADB Shell or Terminal

后端 未结 5 851
南旧
南旧 2020-12-12 14:13

I\'m developing an application that uses ADB Shell to interface with android devices, and I need some way of printing out the application name or label of an application, gi

5条回答
  •  粉色の甜心
    2020-12-12 15:03

    adb shell pm list packages will give you a list of all installed package names.

    You can then use dumpsys | grep -A18 "Package \[my.package\]" to grab the package information such as version identifiers etc

提交回复
热议问题