Pull any installed Android app from your device and package it as an .xapk file — no root required.
- An Android device (physical or emulator) with Play Store and USB debugging enabled
- Android Studio with ADB and aapt2 (included in Platform-Tools and Build-Tools)
./pull_xapk.sh <package_name> [adb_serial]List all third-party (user-installed) apps on the device:
adb shell pm list packages -3Filter by keyword:
adb shell pm list packages -3 | grep chrome./pull_xapk.sh com.android.chrome
# Or specify a device/emulator
./pull_xapk.sh com.android.chrome emulator-5554Creates <package>_v<version>.xapk and a <package>_xapk/ directory with the individual split APKs.
cd <package>_xapk/
adb install-multiple *.apkThis is useful for pulling an app from a non-rooted device and installing it on a rooted emulator for dynamic analysis.
