get launchable activity name of package from adb

后端 未结 8 823
春和景丽
春和景丽 2020-11-28 02:09

Is there a way to get the launchable activity for a package from using adb? For an unroot phone (i.e. without having the pull the apk from /data/

8条回答
  •  臣服心动
    2020-11-28 02:20

    You don't need root to pull the apk files from /data/app. Sure, you might not have permissions to list the contents of that directory, but you can find the file locations of APKs with:

    adb shell pm list packages -f
    

    Then you can use adb pull:

    adb pull 
    

    and then aapt to get the information you want:

    aapt dump badging 
    

提交回复
热议问题