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

Commit b0e3f9b6 authored by Willy Hu's avatar Willy Hu
Browse files

[DSRM] Fix the intent permission problem

- Add READ_PRIVILEGED_PHONE_STATE

Bug: 278098703
Test: Manual test passed.
      Scone can receive the intent from DSRM.
Change-Id: I38dd51ea2bd55a8690c122140a984f1dece31d46
parent 4302da81
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.internal.telephony.data;

import static android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE;

import android.annotation.CallbackExecutor;
import android.annotation.ElapsedRealtimeLong;
import android.annotation.IntDef;
@@ -488,7 +490,7 @@ public class DataStallRecoveryManager extends Handler {
        Intent intent = new Intent(TelephonyManager.ACTION_DATA_STALL_DETECTED);
        SubscriptionManager.putPhoneIdAndSubIdExtra(intent, mPhone.getPhoneId());
        intent.putExtra(TelephonyManager.EXTRA_RECOVERY_ACTION, recoveryAction);
        mPhone.getContext().sendBroadcast(intent);
        mPhone.getContext().sendBroadcast(intent, READ_PRIVILEGED_PHONE_STATE);
    }

    /** Recovery Action: RECOVERY_ACTION_GET_DATA_CALL_LIST */