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

Commit c2230a94 authored by Nino Jagar's avatar Nino Jagar Committed by Android (Google) Code Review
Browse files

Merge "Fix Binder calling identity for permissions" into main

parents 6e38a9d3 ad4ea215
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -1297,7 +1297,10 @@ public class ContentCaptureManagerService extends

        @Override
        public void onLoginDetected(@NonNull ParceledListSlice<ContentCaptureEvent> events) {
            RemoteContentProtectionService service = createRemoteContentProtectionService();
            Binder.withCleanCallingIdentity(
                    () -> {
                        RemoteContentProtectionService service =
                                createRemoteContentProtectionService();
                        if (service == null) {
                            return;
                        }
@@ -1306,6 +1309,7 @@ public class ContentCaptureManagerService extends
                        } catch (Exception ex) {
                            Slog.e(TAG, "Failed to call remote service", ex);
                        }
                    });
        }
    }