Get Application Name/ Label via ADB Shell or Terminal

后端 未结 5 837
南旧
南旧 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 14:58

    just enter the following command on command prompt after launching the app:

    adb shell dumpsys window windows | find "mCurrentFocus"
    

    if executing the command on linux terminal replace find by grep

提交回复
热议问题