From 97e99a76a8fdd9a5f837379846d80c7e42e24489 Mon Sep 17 00:00:00 2001 From: Andrew Solovay Date: Fri, 28 Oct 2022 22:58:49 +0000 Subject: [PATCH] docs: Adding note to getPhoneNumber(int) We'd already added this note to getPhoneNumber(int, int) in aosp/2241332 (which is being cherrypicked to tm-dev in ag/20304540), but we need to add the same note to getPhoneNumber(int). Change-Id: Ieb7df2337c8123e1dc3ca18c85642f0aaba4dda1 Test: go/abtd docs build Bug: 235143721 --- telephony/java/android/telephony/SubscriptionManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index 214fb5994ba3c..932d00ad67885 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -4013,6 +4013,10 @@ public class SubscriptionManager { * cautiously, for example, after formatting the number to a consistent format with * {@link android.telephony.PhoneNumberUtils#formatNumberToE164(String, String)}. * + *

The availability and correctness of the phone number depends on the underlying source + * and the network etc. Additional verification is needed to use this number for + * security-related or other sensitive scenarios. + * * @param subscriptionId the subscription ID, or {@link #DEFAULT_SUBSCRIPTION_ID} * for the default one. * @return the phone number, or an empty string if not available.