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

Commit fd13d127 authored by Steven Moreland's avatar Steven Moreland Committed by Android (Google) Code Review
Browse files

Merge "OemHook missing but called: don't infinite loop" into pi-dev

parents f7436df0 498ab681
Loading
Loading
Loading
Loading
+1 −7
Original line number Original line Diff line number Diff line
@@ -416,7 +416,7 @@ public class RIL extends BaseCommands implements CommandsInterface {


        try {
        try {
            mOemHookProxy = IOemHook.getService(
            mOemHookProxy = IOemHook.getService(
                    HIDL_SERVICE_NAME[mPhoneId == null ? 0 : mPhoneId]);
                    HIDL_SERVICE_NAME[mPhoneId == null ? 0 : mPhoneId], true);
            if (mOemHookProxy != null) {
            if (mOemHookProxy != null) {
                // not calling linkToDeath() as ril service runs in the same process and death
                // not calling linkToDeath() as ril service runs in the same process and death
                // notification for that should be sufficient
                // notification for that should be sufficient
@@ -435,12 +435,6 @@ public class RIL extends BaseCommands implements CommandsInterface {
                        CommandException.fromRilErrno(RADIO_NOT_AVAILABLE));
                        CommandException.fromRilErrno(RADIO_NOT_AVAILABLE));
                result.sendToTarget();
                result.sendToTarget();
            }
            }

            // if service is not up, treat it like death notification to try to get service again
            mRilHandler.sendMessageDelayed(
                    mRilHandler.obtainMessage(EVENT_RADIO_PROXY_DEAD,
                            mRadioProxyCookie.incrementAndGet()),
                    IRADIO_GET_SERVICE_DELAY_MILLIS);
        }
        }


        return mOemHookProxy;
        return mOemHookProxy;