Download an APK file from an Android device

If you need to sniff around in an APK that you have installed on your phone:

# find the package name
adb shell pm list packages | grep example

# use the package name to find the file path
adb shell pm path com.example.blah

# copy it to a local file
adb shell cat "/data/app/com.example.blah-from-previous-step.apk" >local.apk

Date: 2018-04-20

Tags:  android