From 117890ccf2b80b4e472b5fb1d80523c42e494d5c Mon Sep 17 00:00:00 2001 From: Erik Han Date: Thu, 27 Oct 2022 00:08:17 +0000 Subject: [PATCH] docs: Cherrypicking GetPhoneNumber docs fix to tm-dev CPing the fix to tm-dev (where the docs builds come from) so it'll go live. Merge "Update documentation to GetPhoneNumber with the security/privacy concerns" am: d1450e4e61 am: ce9e379a8a am: 9d1eb6ac7b Bug: 235143721 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2241332 Change-Id: I1ada77b875c64901cc02a1e42712ae3f1ee19499 (cherry picked from commit 6bf945d20f7804013d956eb63fd2993e2bc67bc0) Test: [go/abtd docs build] Change-Id: Ida22e156c380cdd8f1d88a2ac22fc014517fdb5f --- 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 d07d8097bce45..214fb5994ba3c 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -3953,6 +3953,10 @@ public class SubscriptionManager { * may provide one. Or, a carrier may decide to provide the phone number via source * {@link #PHONE_NUMBER_SOURCE_CARRIER carrier} if neither source UICC nor IMS is available. * + *

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. * @param source the source of the phone number, one of the PHONE_NUMBER_SOURCE_* constants.