am 66236db3: am 1e2e2aea: am 4b330921: Don\'t crash when low storage is encountered pre-boot completion.
This commit is contained in:
@@ -280,7 +280,9 @@ class DeviceStorageMonitorService extends Binder {
|
|||||||
mTotalMemory = ((long)mDataFileStats.getBlockCount() *
|
mTotalMemory = ((long)mDataFileStats.getBlockCount() *
|
||||||
mDataFileStats.getBlockSize())/100L;
|
mDataFileStats.getBlockSize())/100L;
|
||||||
mStorageLowIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_LOW);
|
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 = new Intent(Intent.ACTION_DEVICE_STORAGE_OK);
|
||||||
|
mStorageOkIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
|
||||||
checkMemory(true);
|
checkMemory(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user