How to reduce the threshold for “Low on Space” Android Warnings


Low on Space – Phone storage space is getting low.

Its a cursed message on my Android HTC Hero, but there is 16MB free on /data partition! I want my email to sync a bit more and I want to receive text messages and I dont want to delete any apps.

You need to have rooted your android device and have the android sdk installed and debugging enabled on your phone. I might package this recipe up into an apk for easy installation.

The default limit is 10% of free space, i’ve reduced mine to 5%, I don’t know if there are any terrible side effects. As you’ve already rooted your phone you’ve already probably voided your warranty :)

To reduce from 10% to 5% warning from your “adb shell”:

sqlite3 /data/data/com.android.providers.settings/databases/settings.db
insert into secure (name, value) VALUES('sys_storage_threshold_percentage','5');
insert into gservices (name, value) VALUES('sys_storage_threshold_percentage','5');
.quit

Then reboot your phone.

Some firmwares seem to look for the setting in gservices but the latest android source looks like it looks for it in the secure settings, so i’ve included both for good measure.

  1. #1 by onlypirc on October 22, 2010 - 3:11 am

    Very good, thanks for that!

    Made the annoying warning go away, however Market still refuses to update any apps (apparently it doesn’t check this setting and continues to refuse installations and updates when below 10%)… any ideas for that one?

  2. #2 by Steven on October 27, 2010 - 7:38 am

    I keep getting a “sqlite3: not found” error whenever I run these commands. I’m running the latest Froyo on my Evo 4G. Fully rooted and adb is working find on my computer.

  3. #3 by darkskiez on November 3, 2010 - 11:21 pm

    onlypirc: hmm, hadn’t realised that, for some reason my phone is forgetting this setting sometimes when i turn it off and I’m not sure why. Maybe I need to make this into an app. The Market source code is closed, so I cant examine it to see what its doing.

    Steven: sqlite3 comes pre-included on my villainrom that I am using, You may have to obtain the binary from somewhere else, or maybe its just called sqlite or not in the path on your rom…

(will not be published)