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

Commit ad4ea215 authored by Nino Jagar's avatar Nino Jagar
Browse files

Fix Binder calling identity for permissions

Bug: 329874122
Test: Local end-to-end run loop over night
Change-Id: I4cf384dc41e6d488bb9221fb92eaa175103fe8d1
parent 58dd487c
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);
                        }
                    });
        }
    }