When you switch phones, test a new ROM, or simply want a safety net for a specific app, backing up that app + its data can save hours of re‑configuration. Android’s built‑in backup services are limited, but the Android Debug Bridge (ADB) lets you create a full package of a single app without rooting the device.
.ab (Android backup) file that contains the app’s APK and its private data. You can later restore it on the same device model or on another device that runs the same Android version and architecture.adb devices
You should see a line like 0123456789ABCDEF device. If you see unauthorized, check the phone for a prompt asking to allow USB debugging and tap Allow.The package name is the unique identifier (e.g., com.whatsapp).
adb shell pm list packages | grep -i keyword
Replace keyword with part of the app’s name to filter the list.ADB’s backup command can capture both the APK and its private data. The syntax is:
adb backup -f <backup-file.ab> -apk -shared -all -nosystem <package-name>
For a single app, you can simplify it to:
adb backup -f myapp.ab -apk -noobb -nosystem com.example.myapp
Explanation of flags:
-obb if you need them.When you run the command, the phone will display a “Full backup requested” screen. You can set an optional password to encrypt the backup. Leave the password blank if you prefer a plain backup, but be aware that the file will be readable by anyone with access to your computer.
adb backup -f whatsapp.ab -apk -noobb -nosystem com.whatsapp
ADB stores the backup in a proprietary format, but you can quickly check its integrity by listing its contents with the adb restore command in “dry‑run” mode:
adb restore -list myapp.ab
If the command prints the package name and size, the file is likely intact.
.ab file to an external drive or cloud storage (Google Drive, Dropbox, etc.).Restoration works only on devices that support the same Android version and architecture (ARM vs. x86). Most modern phones are compatible.
adb devices lists it.adb restore myapp.ab
The phone will prompt you to confirm the restore. If you set a password during backup, you’ll be asked to enter it now.adb logcat -d | grep -i com.example.myapp
Look for errors such as PackageManager: INSTALL_FAILED_... which indicate compatibility problems.adb pull for data‑only backupSome users only need the app’s data folder (e.g., game saves). You can pull the data directory directly:
adb shell "run-as com.example.myapp tar -czf /data/local/tmp/myapp_data.tar.gz ."
adb pull /data/local/tmp/myapp_data.tar.gz .
adb shell rm /data/local/tmp/myapp_data.tar.gz
This method requires the app to be debuggable (most release apps are not). If run-as fails, you’ll need root or the full adb backup approach described above.
INSTALL_FAILED_INVALID_APK – The target device may reject the APK because of signature mismatch (e.g., the app was updated on the source device). In that case, download the latest APK from a trusted source and install it before restoring data.-noapk and then manually reinstalling the app from Play Store before restoring data.run-as – The app is not debuggable. Use the full adb backup method instead.sudo adb kill-server && sudo adb start-server..ab file publicly; it may contain personal data and authentication tokens.Cloud services (Google Drive, OneDrive) are convenient but often store only app settings, not full private data. ADB backup is ideal when you need:
For everyday sync, continue using the app’s built‑in cloud backup. Use the ADB method for edge‑case scenarios where you need full control.
With these steps you can confidently back up any single Android app and its data, move it to a new device, or safeguard it before a risky system change – all without rooting your phone.









