Get Application Name/ Label via ADB Shell or Terminal

后端 未结 5 854
南旧
南旧 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:05

    Inorder to find an app's name (application label), you need to do the following:
    (as shown in other answers)

    1. Find the APK path of the app whose name you want to find.
    2. Using aapt command, find the app label.

    But devices don't ship with the aapt binary out-of-the-box.
    So you will need to install it first. You can download it from here:
    https://github.com/Calsign/APDE/tree/master/APDE/src/main/assets/aapt-binaries


    Check this guide for complete steps:
    How to find an app name using package name through ADB Android?
    (Disclaimer: I am the author of that blog post)

提交回复
热议问题