File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
services/java/com/android/server Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2525import android .content .pm .IPackageDataObserver ;
2626import android .content .pm .IPackageManager ;
2727import android .os .Binder ;
28+ import android .os .Environment ;
2829import android .os .Handler ;
2930import android .os .Message ;
3031import android .os .Process ;
@@ -336,7 +337,9 @@ private final void sendNotification() {
336337 //log the event to event log with the amount of free storage(in bytes) left on the device
337338 EventLog .writeEvent (EventLogTags .LOW_STORAGE , mFreeMem );
338339 // Pack up the values and broadcast them to everyone
339- Intent lowMemIntent = new Intent (Intent .ACTION_MANAGE_PACKAGE_STORAGE );
340+ Intent lowMemIntent = new Intent (Environment .isExternalStorageEmulated ()
341+ ? Settings .ACTION_INTERNAL_STORAGE_SETTINGS
342+ : Intent .ACTION_MANAGE_PACKAGE_STORAGE );
340343 lowMemIntent .putExtra ("memory" , mFreeMem );
341344 lowMemIntent .addFlags (Intent .FLAG_ACTIVITY_NEW_TASK );
342345 NotificationManager mNotificationMgr =
You can’t perform that action at this time.
0 commit comments