diff options
author | 2010-06-04 13:52:45 -0700 | |
---|---|---|
committer | 2010-06-04 13:52:45 -0700 | |
commit | 66236db38dbaae229a86005309b9f7c74eabc998 (patch) | |
tree | 96bcf8854c357992fecbb9829f431b07aa2fb933 | |
parent | fef42db92568918161a2a9d69411290adfa1720f (diff) | |
parent | 1e2e2aea8ce3b1c39f4d0f753e3f7081c94a0bac (diff) |
am 1e2e2aea: am 4b330921: Don\'t crash when low storage is encountered pre-boot completion.
Merge commit '1e2e2aea8ce3b1c39f4d0f753e3f7081c94a0bac' into kraken
* commit '1e2e2aea8ce3b1c39f4d0f753e3f7081c94a0bac':
Don't crash when low storage is encountered pre-boot completion.
-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 62cf7076d1b9..4a0df597ccaf 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); } |