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

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

Merge "Fix the test failure in GtsPermissionUiTestCases" into main

parents da7234be f3d7c6ab
Loading
Loading
Loading
Loading
+8 −3
Original line number Original line Diff line number Diff line
@@ -4727,10 +4727,15 @@ public class AppOpsService extends IAppOpsService.Stub {
        }
        }


        if ((code == OP_CAMERA) && isAutomotive()) {
        if ((code == OP_CAMERA) && isAutomotive()) {
            final long identity = Binder.clearCallingIdentity();
            try {
                if ((Flags.cameraPrivacyAllowlist())
                if ((Flags.cameraPrivacyAllowlist())
                        && (mSensorPrivacyManager.isCameraPrivacyEnabled(packageName))) {
                        && (mSensorPrivacyManager.isCameraPrivacyEnabled(packageName))) {
                    return true;
                    return true;
                }
                }
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }
        }


        int userHandle = UserHandle.getUserId(uid);
        int userHandle = UserHandle.getUserId(uid);