We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e3761b commit 4b33092Copy full SHA for 4b33092
services/java/com/android/server/DeviceStorageMonitorService.java
@@ -280,7 +280,9 @@ public DeviceStorageMonitorService(Context context) {
280
mTotalMemory = ((long)mDataFileStats.getBlockCount() *
281
mDataFileStats.getBlockSize())/100L;
282
mStorageLowIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_LOW);
283
+ mStorageLowIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
284
mStorageOkIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_OK);
285
+ mStorageOkIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
286
checkMemory(true);
287
}
288
0 commit comments