diff options
| author | Jeff Hamilton <jham@android.com> | 2010-06-04 15:16:06 -0500 |
|---|---|---|
| committer | Jeff Hamilton <jham@android.com> | 2010-06-04 15:16:06 -0500 |
| commit | 4b3309211ed6f3532b44481945a4725143d50b8a (patch) | |
| tree | e6601c2badc671e722549a0e871d929bba6c9dff /services | |
| parent | 2e3761ba43f634e97ac493f4b79e5e53954a1491 (diff) | |
| download | frameworks_base-4b3309211ed6f3532b44481945a4725143d50b8a.zip frameworks_base-4b3309211ed6f3532b44481945a4725143d50b8a.tar.gz frameworks_base-4b3309211ed6f3532b44481945a4725143d50b8a.tar.bz2 | |
Don't crash when low storage is encountered pre-boot completion.
Bug: 2741633
Change-Id: Ic073ead64ff43b2e2c32b439756cd71c2b6550b8
Diffstat (limited to 'services')
| -rw-r--r-- | services/java/com/android/server/DeviceStorageMonitorService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/DeviceStorageMonitorService.java b/services/java/com/android/server/DeviceStorageMonitorService.java index 62cf707..4a0df59 100644 --- a/services/java/com/android/server/DeviceStorageMonitorService.java +++ b/services/java/com/android/server/DeviceStorageMonitorService.java @@ -280,7 +280,9 @@ class DeviceStorageMonitorService extends Binder { mTotalMemory = ((long)mDataFileStats.getBlockCount() * mDataFileStats.getBlockSize())/100L; mStorageLowIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_LOW); + mStorageLowIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); mStorageOkIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_OK); + mStorageOkIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); checkMemory(true); } |
