summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Erik Han <erikhan@google.com> 2022-10-26 22:14:51 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-10-26 22:14:51 +0000
commitd1450e4e6187e32b2ddbb9dcc151423cc599e70d (patch)
treefb66369f20e4acb9bfaf39d0c66f75381fe4ff31
parente72e27929ff921c9367d5406d52742fce009a16b (diff)
parent4dfd4203836bd9e6988f6a5059c7b7319b993538 (diff)
Merge "Update documentation to GetPhoneNumber with the security/privacy concerns"
-rw-r--r--telephony/java/android/telephony/SubscriptionManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java
index 5ed6cb9ea2fb..291524ad7c59 100644
--- a/telephony/java/android/telephony/SubscriptionManager.java
+++ b/telephony/java/android/telephony/SubscriptionManager.java
@@ -3952,6 +3952,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.
*
+ * <p>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.