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

Commit d6653310 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Updates to API based on API council feedback.

Test: build (documentation only change)
Bug: 170255123
Change-Id: Ie9129fa69e81b306074090c7eef4d857100deae4
parent 66072f6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41789,7 +41789,7 @@ package android.telephony {
    method @NonNull public android.os.Bundle getCarrierConfigValues();
    method @Deprecated public static android.telephony.SmsManager getDefault();
    method public static int getDefaultSmsSubscriptionId();
    method @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public int getSmsCapacityOnIcc();
    method @IntRange(from=0) @RequiresPermission(anyOf={android.Manifest.permission.READ_PHONE_STATE, "android.permission.READ_PRIVILEGED_PHONE_STATE"}) public int getSmsCapacityOnIcc();
    method @Deprecated public static android.telephony.SmsManager getSmsManagerForSubscriptionId(int);
    method @RequiresPermission(android.Manifest.permission.SMS_FINANCIAL_TRANSACTIONS) public void getSmsMessagesForFinancialApp(android.os.Bundle, @NonNull java.util.concurrent.Executor, @NonNull android.telephony.SmsManager.FinancialSmsCallback);
    method @Nullable @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public String getSmscAddress();
+4 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package android.telephony;
import android.Manifest;
import android.annotation.CallbackExecutor;
import android.annotation.IntDef;
import android.annotation.IntRange;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.RequiresPermission;
@@ -2207,7 +2208,9 @@ public final class SmsManager {
     *
     * @return the total number of SMS records which can be stored on the SIM card.
     */
    @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
    @RequiresPermission(anyOf = {android.Manifest.permission.READ_PHONE_STATE,
            android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE})
    @IntRange(from = 0)
    public int getSmsCapacityOnIcc() {
        int ret = 0;
        try {