Extract/Pull Android App Package from Phone

The android-tools package sudo dnf install android-tools on Fedora must already be installed.

List installed 3rd Party apps first.

adb shell pm list packages -f -3

You’ll get the below output returned depending on installed 3rd Party apps.

package:/data/app/com.microsoft.office.outlook-lPqGMaQl3IKUVWIOJnjjbw==/base.apk=com.microsoft.office.outlook
package:/data/app/com.netflix.mediaclient-m77dSO43doNzrGce8c1uPA==/base.apk=com.netflix.mediaclient
package:/data/app/com.amazon.avod.thirdpartyclient-9zIJN92hmNcGK6DOSFprJQ==/base.apk=com.amazon.avod.thirdpartyclient
package:/data/app/com.disney.disneyplus-25RV0E5WzDniJQvB1srQrA==/base.apk=com.disney.disneyplus
package:/data/app/com.microsoft.teams-1CULya2XaMIuUHDYOttYwg==/base.apk=com.microsoft.teams

Then get the installed path of the app you want to extract.

adb shell pm path com.disney.disneyplus

Which will return the below.

package:/data/app/com.disney.disneyplus-25RV0E5WzDniJQvB1srQrA==/base.apk

Then pull the package to the local filesystem.

adb pull /data/app/com.disney.disneyplus-25RV0E5WzDniJQvB1srQrA==/base.apk ~/Media/android/apps/

About

I'm a technology professional who's been passionate about computers since my Grandad introduced me to an Intel 386 back in the 90s when I was a kid. Those moments inspired a passion within for technology, and I've been playing around with anything with a circuit board ever since. Whenever I have a moment you can probably find me working on something computer-related, and this is where I like to write about those moments.