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

Commit 72e81a52 authored by Sarah Chin's avatar Sarah Chin
Browse files

Add logs for AIDL death recipient registration

If we do not receive a notification that the AIDL service died,
currently we cannot tell if it is due to an error in the registration or
the notification. Add logs to help detect an issue if it occurs.

Test: atest RILTest
Bug: 245674767
Change-Id: I14b41555f19f5ab37dbbe2a83f7c303c5b080aad
parent b41821c6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -431,8 +431,11 @@ public class RIL extends BaseCommands implements CommandsInterface {

        public void linkToDeath(IBinder service) throws RemoteException {
            if (service != null) {
                riljLog("Linked to death for service " + serviceToString(mService));
                mBinder = service;
                mBinder.linkToDeath(this, (int) mServiceCookies.get(mService).incrementAndGet());
            } else {
                riljLoge("Unable to link to death for service " + serviceToString(mService));
            }
        }