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

Commit 6f904acf authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Factory reset IMS RCE UCE enabled setting.

Bug: 148167203
Test: atest TelephonyProviderTests:TelephonyDatabaseHelperTest
Merged-In: Ic62fadcd7d66b5f16806cc6956d01a0ab7cb1fe3
Change-Id: Ic62fadcd7d66b5f16806cc6956d01a0ab7cb1fe3
parent f9a5db7d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -193,6 +193,8 @@ public class ImsManager implements IFeatureConnector {
     */
    public static final String EXTRA_IS_UNKNOWN_CALL = "android:isUnknown";

    private static final int SUBINFO_PROPERTY_FALSE = 0;

    private static final int SYSTEM_PROPERTY_NOT_SET = -1;

    // -1 indicates a subscriptionProperty value that is never set.
@@ -2608,6 +2610,11 @@ public class ImsManager implements IFeatureConnector {
            SubscriptionManager.setSubscriptionProperty(subId,
                    SubscriptionManager.VT_IMS_ENABLED,
                    Integer.toString(SUB_PROPERTY_NOT_INITIALIZED));

            // Set RCS UCE to default
            SubscriptionManager.setSubscriptionProperty(subId,
                    SubscriptionManager.IMS_RCS_UCE_ENABLED, Integer.toString(
                            SUBINFO_PROPERTY_FALSE));
        } else {
            loge("factoryReset: invalid sub id, can not reset siminfo db settings; subId=" + subId);
        }