DO NOT MERGE MountService: Fix running media scanner at boot.
Change-Id: Ia56573023f21fa067a14e7d3ac5a6dbd51ecc8a7 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -487,6 +487,13 @@ class MountService extends IMountService.Stub implements INativeDaemonConnectorC
|
||||
}
|
||||
}
|
||||
|
||||
/* notify external storage has mounted to trigger media scanner */
|
||||
if (mEmulateExternalStorage) {
|
||||
notifyVolumeStateChange(null,
|
||||
Environment.getExternalStorageDirectory().getPath(),
|
||||
VolumeState.NoMedia, VolumeState.Mounted);
|
||||
}
|
||||
|
||||
/*
|
||||
* If UMS was connected on boot, send the connected event
|
||||
* now that we're up.
|
||||
|
||||
Reference in New Issue
Block a user