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

Commit 54317698 authored by rambowang's avatar rambowang Committed by Rambo Wang
Browse files

Relax TM.isModemEnabledForSlot with READ_BASIC_PHONE_STATE permission

This change relaxes the permission for API
TelephonyManager.isModemEnabledForSlot, allowing apps with
READ_BASIC_PHONE_STATE to check if modem is enabled for a SIM slot.

Whether modem is enabled for a SIM slot is basic information that
doesn't always need READ_PHONE_STATE or carrier privileges. The relaxed
permission makes the API more useful without leaking sensitive info.

Bug: 401006757
Test: atest CtsTelephony2TestCases CtsTelephonyTestCases
Flag: com.android.internal.telephony.flags.macro_based_opportunistic_networks
Change-Id: Ic163889fcf149e926a85ffba88b7d83069ac532d
parent 8d32ac18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment