Android技术知识Android知识

adb shell获取package信息

2017-09-20  本文已影响0人  GTA

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


上一篇 下一篇

猜你喜欢

热点阅读