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

Commit 8e427022 authored by Jyoti Bhayana's avatar Jyoti Bhayana Committed by Android (Google) Code Review
Browse files

Merge "In HSUM configuration, allow User 0 camera access." into main

parents 6e460c1f 00486eb5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1015,6 +1015,12 @@ public class CameraServiceProxy extends SystemService
            handles.add(id);
        }

        // If the device is running in headless system user mode then allow
        // User 0 to access camera.
        if (UserManager.isHeadlessSystemUserMode()) {
            handles.add(UserHandle.USER_SYSTEM);
        }

        return handles;
    }