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

Commit 00617f1f authored by Shuo Qian's avatar Shuo Qian Committed by android-build-merger
Browse files

Merge "getRadioProxy and getOemHookProxy modification"

am: ad228a6d

Change-Id: I8b6e049b2675b6834922ebd2c10798d107c774da
parents 9ea55d13 ad228a6d
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. ");
        }
    }