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

Commit 80606867 authored by Jayachandran C's avatar Jayachandran C
Browse files

Force set provisioning profile for testing purpose

Bug: 299636278
Test: Set the property and verified
Change-Id: I4d27e32a90484c914c2d50bccec5c20e294393ee
parent c465b6d1
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1161,7 +1161,16 @@ public class SubscriptionManagerService extends ISub.Stub {
                        builder.setDisplayName(nickName);
                        builder.setDisplayNameSource(SubscriptionManager.NAME_SOURCE_CARRIER);
                    }

                    if (android.os.Build.isDebuggable() &&
                            SystemProperties.getInt("telephony.test.bootstrap_cid", -2)
                                == carrierId) {
                        // Force set as provisioning profile for test purpose
                        log("Hardcording as bootstrap subscription for cid=" + carrierId);
                        builder.setProfileClass(SimInfo.PROFILE_CLASS_PROVISIONING);
                    } else {
                        builder.setProfileClass(embeddedProfile.getProfileClass());
                    }
                    builder.setPortIndex(getPortIndex(embeddedProfile.getIccid()));

                    CarrierIdentifier cid = embeddedProfile.getCarrierIdentifier();