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

Commit 3c0e70e2 authored by Yoshiaki Naka's avatar Yoshiaki Naka Committed by android-build-merger
Browse files

Merge "Treat 2G SIM and 3G SIM equally when releasing the access rules cache"

am: b81aabe2

Change-Id: I42fb2c6cf69154e15c56fdf4fe3d928b8a7638f8
parents 751bf534 b81aabe2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -233,10 +233,10 @@ public class UiccCard {
     * @deprecated Please use {@link UiccProfile#resetAppWithAid(String, boolean)} instead.
     */
    @Deprecated
    public boolean resetAppWithAid(String aid, boolean disposeCatService) {
    public boolean resetAppWithAid(String aid, boolean reset) {
        synchronized (mLock) {
            if (mUiccProfile != null) {
                return mUiccProfile.resetAppWithAid(aid, disposeCatService);
                return mUiccProfile.resetAppWithAid(aid, reset);
            } else {
                return false;
            }
+2 −2
Original line number Diff line number Diff line
@@ -645,11 +645,11 @@ public class UiccController extends Handler {
            // Reset the required apps when we know about the refresh so that
            // anyone interested does not get stale state.
            case IccRefreshResponse.REFRESH_RESULT_RESET:
                changed = uiccCard.resetAppWithAid(resp.aid, true /* disposeCatService */);
                changed = uiccCard.resetAppWithAid(resp.aid, true /* reset */);
                break;
            case IccRefreshResponse.REFRESH_RESULT_INIT:
                // don't dispose CatService on SIM REFRESH of type INIT
                changed = uiccCard.resetAppWithAid(resp.aid, false /* disposeCatService */);
                changed = uiccCard.resetAppWithAid(resp.aid, false /* initialize */);
                break;
            default:
                return;
+5 −5
Original line number Diff line number Diff line
@@ -1282,11 +1282,10 @@ public class UiccProfile extends IccCard {
     * A null aid implies a card level reset - all applications must be reset.
     *
     * @param aid aid of the application which should be reset; null imples all applications
     * @param disposeCatService flag indicating if CatService should be disposed as part of
     *                          this reset
     * @param reset true if reset is required. false for initialization.
     * @return boolean indicating if there was any change made as part of the reset
     */
    public boolean resetAppWithAid(String aid, boolean disposeCatService) {
    public boolean resetAppWithAid(String aid, boolean reset) {
        synchronized (mLock) {
            boolean changed = false;
            for (int i = 0; i < mUiccApplications.length; i++) {
@@ -1298,12 +1297,13 @@ public class UiccProfile extends IccCard {
                    changed = true;
                }
            }
            if (TextUtils.isEmpty(aid)) {
            if (reset && TextUtils.isEmpty(aid)) {
                if (mCarrierPrivilegeRules != null) {
                    mCarrierPrivilegeRules = null;
                    changed = true;
                }
                if (disposeCatService && mCatService != null) {
                // CatService shall be disposed only when a card level reset happens.
                if (mCatService != null) {
                    mCatService.dispose();
                    mCatService = null;
                    changed = true;