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

Commit ad228a6d authored by Shuo Qian's avatar Shuo Qian Committed by Gerrit Code Review
Browse files

Merge "getRadioProxy and getOemHookProxy modification"

parents 7356a7f0 e12d724d
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -292,11 +292,6 @@ public class RIL extends BaseCommands implements CommandsInterface {
                            " mRadioProxyCookie = " + mRadioProxyCookie.get());
                    if ((long) msg.obj == mRadioProxyCookie.get()) {
                        resetProxyAndRequestList();

                        // todo: rild should be back up since message was sent with a delay. this is
                        // a hack.
                        getRadioProxy(null);
                        getOemHookProxy(null);
                    }
                    break;
            }
@@ -349,6 +344,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
        clearRequestList(RADIO_NOT_AVAILABLE, false);

        getRadioProxy(null);
        getOemHookProxy(null);
    }

    /** Returns a {@link IRadio} instance or null if the service is not available. */
@@ -2004,6 +2000,10 @@ public class RIL extends BaseCommands implements CommandsInterface {
            } catch (RemoteException | RuntimeException e) {
                handleRadioProxyExceptionForRR(rr, "invokeOemRilRequestRaw", e);
            }
        } else {
            // OEM Hook service is disabled for P and later devices.
            // Deprecated OEM Hook APIs will perform dummy before being removed.
            if (RILJ_LOGD) riljLog("Radio Oem Hook Service is disabled for P and later devices. ");
        }
    }

@@ -2029,6 +2029,10 @@ public class RIL extends BaseCommands implements CommandsInterface {
            } catch (RemoteException | RuntimeException e) {
                handleRadioProxyExceptionForRR(rr, "invokeOemRilRequestStrings", e);
            }
        } else {
            // OEM Hook service is disabled for P and later devices.
            // Deprecated OEM Hook APIs will perform dummy before being removed.
            if (RILJ_LOGD) riljLog("Radio Oem Hook Service is disabled for P and later devices. ");
        }
    }