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

Commit 370474a3 authored by Jinyoung Jeong's avatar Jinyoung Jeong
Browse files

PhoneProcess crash - setPhoneNumberForSourceIms

Phone process crash when we a new callback for IMS reg state with the cached data (urls)  where the subscription is no longer valid as if a sim is removed.
Bug: b/221080692
Test:
Manual Test
1. Turn on a device
2. Connect to data/wifi
3. Completed to register ims (wait for few seconds to be sure)
4. Make a call/ End the call
5. Remove the sim from the device
6. Check if phone crash on logs

Change-Id: Idc3ec7122410fd10669b38afa679d9a07b58a638
parent 1b9e95e7
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -517,4 +517,16 @@ public class ImsRegistrationImplBase {
            mExecutor = executor;
        }
    }

    /**
     * Clear the cached data when the subscription is no longer valid
     * such as when a sim is removed.
     * @hide
     */
    public final void clearRegistrationCache() {
        synchronized (mLock) {
            mUris = null;
            mUrisSet = false;
        }
    }
}