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

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

Merge "Use the flag for the HSUM camera access feature." into main

parents 4fdea46e 2d675528
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1025,11 +1025,13 @@ public class CameraServiceProxy extends SystemService
            handles.add(id);
        }

        if (Flags.cameraHsumPermission()) {
            // 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;
    }