Add log for setDataEnabledForReason

To know who change the mobile data

Bug: 331843727
Test: NA Adding log only
Change-Id: I3ef5662102761541cd3e0e4662e0acab07c71937
This commit is contained in:
songferngwang
2024-03-29 08:46:26 +00:00
parent 6ec3ac32a5
commit be3008e09d
10 changed files with 41 additions and 33 deletions

View File

@@ -359,6 +359,7 @@ public class SimDialogActivity extends FragmentActivity {
TelephonyManager.class).createForSubscriptionId(subId);
subscriptionManager.setDefaultDataSubId(subId);
if (subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
Log.d(TAG, "setDataEnabledForReason true");
telephonyManager.setDataEnabledForReason(TelephonyManager.DATA_ENABLED_REASON_USER,
true);
Toast.makeText(this, R.string.data_switch_started, Toast.LENGTH_LONG).show();