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

Commit fd7d57ed authored by Daichi Hirono's avatar Daichi Hirono
Browse files

Mount appfuse in process namespace.

BUG=26148108

Change-Id: Ib2fa330a9da27a875e5456ded71c05d32e2b77dd
parent 3842e318
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2817,8 +2817,9 @@ class MountService extends IMountService.Stub
    public ParcelFileDescriptor mountAppFuse(final String name) throws RemoteException {
        try {
            final int uid = Binder.getCallingUid();
            final int pid = Binder.getCallingPid();
            final NativeDaemonEvent event =
                    mConnector.execute("appfuse", "mount", uid, name);
                    mConnector.execute("appfuse", "mount", uid, pid, name);
            if (event.getFileDescriptors() == null) {
                throw new RemoteException("AppFuse FD from vold is null.");
            }
@@ -2830,7 +2831,7 @@ class MountService extends IMountService.Stub
                        public void onClose(IOException e) {
                            try {
                                final NativeDaemonEvent event = mConnector.execute(
                                        "appfuse", "unmount", uid, name);
                                        "appfuse", "unmount", uid, pid, name);
                            } catch (NativeDaemonConnectorException unmountException) {
                                Log.e(TAG, "Failed to unmount appfuse.");
                            }