How to Fix "App Not Installed — INSTALL_FAILED_INSUFFICIENT_STORAGE" When Sideloading an APK
The installer is not out of disk. `INSTALL_FAILED_INSUFFICIENT_STORAGE` means /data/app could not reserve peak space to stage and unpack the package, about triple the APK size. Measure it, split the install, and rule out a signing conflict or an ABI mismatch.
-
1. Match the Suffix Before Touching Anything
`INSTALL_FAILED_INSUFFICIENT_STORAGE` means the installer could not reserve space under /data/app. It is not a full-disk message. Note the exact text after INSTALL_FAILED_ on your screen, because every suffix points at a different layer.…
-
2. Compare Free Space With Peak Space
Open Settings → Storage → Internal storage and read the free figure. Then double it in your head. An APK of 1.8 GB needs roughly 5 GB clear, since the package is staged, unpacked, and verified before the old copy drops. Official reference…
-
3. Separate Storage From a Signing Conflict
`INSTALL_FAILED_UPDATE_INCOMPATIBLE` means that package name already exists on the phone with a different signing key. Free space will never fix it. You must uninstall the existing copy, and that wipes its app data. → [Android Developers…
-
4. Separate Storage From a CPU Mismatch
`INSTALL_FAILED_NO_MATCHING_ABIS` means the APK carries no native library for your chip. Phones sold from 2019 on are mostly arm64-v8a. An armeabi-v7a-only build fails here with 60 GB free, and no cleanup helps. More on this: [Google…
-
5. Suspect the Vendor Installer Instead
MIUI and ColorOS run their own install verification on top of Android's. They sometimes report a storage failure when the real block is a security policy. Check Settings → Apps → Manage apps. If the same file installs over adb, the…
-
6. Verify the APK Is Not Truncated
Compare the file size against the source page, and check the checksum if one is published. A download that stopped early still ends in .apk, then fails at the verify stage and reports storage. This is the cheapest thing to rule out. →…
-
7. Measure /data With df, Not the UI
Run `adb shell df -h /data` and read the Available column on the /data line. Settings rounds the number and hides reserved blocks. Under 3 GB available there counts as full for sideload purposes. That is the figure to act on. More on…
-
8. Clear the Temporary Staging Folder
Run `adb shell rm -rf /data/local/tmp/*` to drop leftovers from earlier failed installs. Those files survive reboots and nobody cleans them. On a phone that has been sideloading for a year this folder can hold several GB. Official…
-
9. Open a Session With pm install-create
`adb shell pm install-create -S <bytes>` opens a session and prints an ID. Keep that ID. Then `pm install-write -S <bytes> <id> base` streams the file in. Nothing unpacks until you commit, so peak space is reserved properly. → [Google…
-
10. Commit Only at the Very End
`adb shell pm install-commit <id>` finalizes the package. If it returns the storage error again, the phone really is out of room and no flag will save you. The session is dropped whole, so nothing is left half-installed. More on this:…
-
11. Remove Old Copies of the Package
`adb shell pm uninstall --user 0 <package>` removes the app from your profile without root. Back up its data first if it matters. Sideloaded builds tend to stack three or four versions deep, each holding its own space. Official reference…
-
12. Move Video Off the Internal Volume
Copy the DCIM folder to a computer, confirm the copy opens, then delete it on the phone. One minute of 4K video is 400 MB. This is the fastest honest way to buy 10 GB, and it takes as long as the copy. → [Android Developers — App Bundle…
-
13. Wipe the Cache Partition Only
A full /cache blocks the verify step on some older builds. Boot to recovery and choose Wipe cache partition. Nothing else. On A/B devices this menu is often missing, and that is normal, not a fault. More on this: [Android Developers —…
-
14. Allow Install Over USB Properly
Turn on Settings → Developer options → Install via USB. On MIUI it also wants a SIM inserted and an account signed in. Sign in first. If this option is greyed out, reboot and look again before you give up on adb. Official reference —…
-
15. Suspend App Verification for the Session
In Settings → Security → Install unknown apps, allow your file manager, then pause Play Protect scanning while you test. Turn both back on when the install succeeds. Leaving verification off is the usual start of a malware story. →…
-
16. Install the Split Set Together
App bundles arrive as base.apk plus config splits. `adb install-multiple base.apk config.arm64_v8a.apk config.xxhdpi.apk` handles them in one transaction. Installing base.apk alone fails with an ABI or missing-resource error. More on…
-
17. Restart the adb Server Before Reinstalling
If adb fails but a file manager succeeds, the bridge is the problem. Run `adb kill-server`. Then replug the cable and try once more. Honestly, it is almost always the cable or the port. Official reference — [Android Developers — App…
-
18. Swap the Cable and the Port
Use a cable that carries data. Plug into a port on the machine itself, not a hub. A hub that browns out mid-write produces exactly the storage error you started with, and it does it every time. → [Android Developers — uses-sdk-element and…
-
19. Know When the Phone Is the Fault
If a 40 MB APK fails on 20 GB free across three cables, the emulated storage or the flash is failing. That is a board-level repair. Stop sideloading, back up what you can, and get the storage tested. More on this: [Google Pixel…