Cache size exceeds phone capacity


Question

What is going on here? (please see attached screen shot).



This is a Galaxy S5 Mini. Totally stock rom, never rooted. I have recently restored it to factory settings in an effort to overcome a fast draining battery.



Apps are complaining about lack of space, but based on this I believe that to be false (also, I have put almost nothing on the phone).



Anyone have any ideas on the best way to fix this?



storage screenshot

Storage (click to enlarge)


Answer

I fully agree the storage screen shows "incoherent data" (more cache used than there's storage available), so it must have miscalculated.



As your device is already complaining about "low storage", I assume installing additional apps is not an option. If your device were rooted (which it is not), you could figure which app(s) is/are responsible for "high cache consumption", utilizing ADB:



adb shell su -c "for dir in /data/data/*/*cache; do du -sk $dir; done"


This shows the directory (including the app's package name) and the size of cache used in kB. Snipped of example output (from one of my devices):




2224 /data/data/com.feedr/app_cache
32 /data/data/com.feedr/cache
32 /data/data/com.fsck.k9/app_sslcache
32 /data/data/com.fsck.k9/cache


Without root, there might be ways achieving similar results via tools like "package manager" (pm) – but I couldn't figure that yet. If the culprit was found with the above command, you can selectively free its cache running rm -rf against the specified cache directory (again as root), or just clear the cache altogether (see Clear Caches from ADB). Clearing the cache completely doesn't require root and is possible via most (stock and custom) recoveries, and also (stock, custom, root or not) via the fastboot erase cache command.



If the above is not possible for you, and you're still able to install apps (maybe after deleting another installed app), you could go the way SarpSTA recommended and install a cache manager to check. If that's not possible either, the "long way" would be going to Settings › Apps and walking the "All" tab – opening each app's page and see how much "cache" is printed for it, manually hitting the "clear cache" button for "heavy eaters".


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes