Merge "Update doc to reflect actual permission" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-01 00:11:26 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -11851,7 +11851,7 @@ package android.telephony {
method @Deprecated public boolean getDataEnabled(); method @Deprecated public boolean getDataEnabled();
method @Deprecated public boolean getDataEnabled(int); method @Deprecated public boolean getDataEnabled(int);
method @Nullable @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public android.content.ComponentName getDefaultRespondViaMessageApplication(); method @Nullable @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS) public android.content.ComponentName getDefaultRespondViaMessageApplication();
method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getDeviceSoftwareVersion(int); method @Nullable @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public String getDeviceSoftwareVersion(int);
method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean getEmergencyCallbackMode(); method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean getEmergencyCallbackMode();
method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getEmergencyNumberDbVersion(); method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public int getEmergencyNumberDbVersion();
method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimDomain(); method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public String getIsimDomain();

View File

@@ -1907,14 +1907,14 @@ public class TelephonyManager {
* the IMEI/SV for GSM phones. Return null if the software version is * the IMEI/SV for GSM phones. Return null if the software version is
* not available. * not available.
* <p> * <p>
* Requires Permission: READ_PRIVILEGED_PHONE_STATE. * Requires Permission: READ_PHONE_STATE.
* *
* @param slotIndex of which deviceID is returned * @param slotIndex of which deviceID is returned
* *
* @hide * @hide
*/ */
@SystemApi @SystemApi
@RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
@Nullable @Nullable
public String getDeviceSoftwareVersion(int slotIndex) { public String getDeviceSoftwareVersion(int slotIndex) {
ITelephony telephony = getITelephony(); ITelephony telephony = getITelephony();