adb shell获取package信息

copy apk from device:

https://stackoverflow.com/questions/4032960/how-do-i-get-an-apk-file-from-an-android-device

# to obtain apk path

adb shell pm list packages

adb shell pm path com.example.someapp

# or just

adb shell list pacakges -f


# pull to PC

adb pull /path/to/app

# or

adb shell cp /path/to/app /sdcard/myapp.apk

adb pull /sdcard/myapp.apk


get launcheable activity:

aapt dump badging /path/to/apk

# or

adb shell dumpsys package com.excample.packagename


你可能感兴趣的:(adb shell获取package信息)