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

Commit 246ecbba authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Factory reset IMS RCE UCE enabled setting. am: 6f904acf am: 2a838d3e

Change-Id: I2436755dcdffed337691981c3d530998c65de955
parents 925285a9 2a838d3e
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);
        }