summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/DeviceStorageMonitorService.java
Commit message (Collapse)AuthorAgeFilesLines
* Allow incoming SMS until internal storage is almost full.Jake Hamby2010-09-081-4/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for bug 2382830: new incoming SMS should not be rejected when running low on internal phone storage. Testing revealed that the /data partition should have at least 256 KiB available in order to prevent random app crashes (including system apps) due to SQLite transaction failures. With 256 KiB free, the device should safely boot without storage full errors. This takes into account the 36-40 KiB that the YAFFS2 filesystem reports as available even after the partition has been completely filled. I've set the default full threshold to 1 MiB to provide a generous safety margin. For this bug, I changed the DeviceStorageMonitorService demon to send two new hidden notifications for device storage "full" and "not full", when the free space falls below the full threshold (default 1 MiB, but configurable as a system setting), in addition to the existing storage low/okay notifications sent when the storage crosses the threshold of 90% full (also configurable). The SMS code was changed to use these new notifications so that it can accept messages until the data partition has been filled to the maximum safe capacity rather than stopping when it hits 90% full. There should be no negative impact on battery life because the additional check in the storage polling service should be offset by an optimization to cache the free threshold values which were previously being computed every time through the loop. While testing this change, I discovered that SMSDispatcher was being instantiated twice, the first time in GSMPhone/CDMAPhone, and the second time in SimSmsInterfaceManager / RuimSmsInterfaceManager. Changed the code to pass the original SMSDispatcher to the Sim/RuimSmsInterfaceManager constructor. Change-Id: Ie0c6d05294778ab6ee42e0fa01313af96d824c77
* Don't crash when low storage is encountered pre-boot completion.Jeff Hamilton2010-06-041-0/+2
| | | | | Bug: 2741633 Change-Id: Ic073ead64ff43b2e2c32b439756cd71c2b6550b8
* Switch the services library to using the new SlogJoe Onorato2010-03-011-15/+15
|
* move some system services from gservices to secure settingsDoug Zongker2010-01-071-22/+26
| | | | Change-Id: Ie2dfb99a2b42b2cc9310b858c044d8684e3493fa
* move event log tags used by system server into this packageDoug Zongker2009-12-041-6/+3
| | | | | | We can now locate event log tag definitions in individual packages (and java constants for the tag numbers get auto-generated), so move all the tags used by the system server into the package.
* when logging free space on /data, log /system and /cache as wellDoug Zongker2009-10-071-39/+65
| | | | | Report space free on system and cache so we can estimate bad block statistics for devices in the field.
* Make the internal storage monitor work correctly when internal storage is ↵Marco Nelissen2009-05-081-2/+2
| | | | very large.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+314
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-314/+0
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-19/+39
|
* auto import from //branches/cupcake/...@127436The Android Open Source Project2009-01-221-1/+1
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+294