Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7c49951 authored by San Mehat's avatar San Mehat
Browse files

MountListener: When we connect to vold, explicitly mount external storage.


Vold no longer mounts storage automatically so it doesnt interfere with
the framework booting.

Signed-off-by: default avatarSan Mehat <san@google.com>
parent 9b0a5e57
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -202,6 +202,7 @@ final class MountListener implements Runnable {
            byte[] buffer = new byte[100];
            byte[] buffer = new byte[100];


            writeCommand(VOLD_CMD_SEND_UMS_STATUS);
            writeCommand(VOLD_CMD_SEND_UMS_STATUS);
            mountMedia(Environment.getExternalStorageDirectory().getAbsolutePath());
            
            
            while (true) {
            while (true) {
                int count = inputStream.read(buffer);
                int count = inputStream.read(buffer);