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

Commit fc41c763 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Change radio related service names to slot1, slot2, slot3..."

am: d8841226

Change-Id: Ida9ca3fc41fcac0ab65759dac764fa05f4543485
parents 6ac8ad74 d8841226
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -341,8 +341,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {

    //***** Constants

    static final String[] RIL_SERVICE_NAME = {"rild", "rild2", "rild3"};
    static final String[] OEM_HOOK_SERVICE_NAME = {"oemhook", "oemhook2", "oemhook3"};
    static final String[] HIDL_SERVICE_NAME = {"slot1", "slot2", "slot3"};

    static final int IRADIO_GET_SERVICE_DELAY_MILLIS = 4 * 1000;

@@ -502,7 +501,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
        }

        try {
            mRadioProxy = IRadio.getService(RIL_SERVICE_NAME[mPhoneId == null ? 0 : mPhoneId]);
            mRadioProxy = IRadio.getService(HIDL_SERVICE_NAME[mPhoneId == null ? 0 : mPhoneId]);
            if (mRadioProxy != null) {
                mRadioProxy.linkToDeath(mRadioProxyDeathRecipient,
                        mRadioProxyCookie.incrementAndGet());
@@ -544,7 +543,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {

        try {
            mOemHookProxy = IOemHook.getService(
                    OEM_HOOK_SERVICE_NAME[mPhoneId == null ? 0 : mPhoneId]);
                    HIDL_SERVICE_NAME[mPhoneId == null ? 0 : mPhoneId]);
            if (mOemHookProxy != null) {
                // not calling linkToDeath() as ril service runs in the same process and death
                // notification for that should be sufficient