Loading services/java/com/android/server/MountService.java +16 −6 Original line number Diff line number Diff line Loading @@ -150,13 +150,23 @@ class MountService extends IMountService.Stub notifyVolumeStateChange(null, "/sdcard", VolumeState.NoMedia, VolumeState.Mounted); return; } new Thread() { public void run() { try { String path = Environment.getExternalStorageDirectory().getPath(); if (getVolumeState(path).equals(Environment.MEDIA_UNMOUNTED)) { if (getVolumeState( Environment.getExternalStorageDirectory().getPath()).equals( Environment.MEDIA_UNMOUNTED)) { int rc = doMountVolume(path); if (rc != StorageResultCode.OperationSucceeded) { Log.e(TAG, String.format("Boot-time mount failed (%d)", rc)); } } } catch (Exception ex) { Log.e(TAG, "Boot-time mount exception", ex); } } }.start(); } } }; Loading Loading
services/java/com/android/server/MountService.java +16 −6 Original line number Diff line number Diff line Loading @@ -150,13 +150,23 @@ class MountService extends IMountService.Stub notifyVolumeStateChange(null, "/sdcard", VolumeState.NoMedia, VolumeState.Mounted); return; } new Thread() { public void run() { try { String path = Environment.getExternalStorageDirectory().getPath(); if (getVolumeState(path).equals(Environment.MEDIA_UNMOUNTED)) { if (getVolumeState( Environment.getExternalStorageDirectory().getPath()).equals( Environment.MEDIA_UNMOUNTED)) { int rc = doMountVolume(path); if (rc != StorageResultCode.OperationSucceeded) { Log.e(TAG, String.format("Boot-time mount failed (%d)", rc)); } } } catch (Exception ex) { Log.e(TAG, "Boot-time mount exception", ex); } } }.start(); } } }; Loading