summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Erik Han <erikhan@google.com> 2022-10-26 23:29:05 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-10-26 23:29:05 +0000
commit9d1eb6ac7b07a98f93b08533003b86fdae705288 (patch)
treeff4dba74c1b34c0a7e19764478913fcbd6a1ac9f
parent0c29c5738bd64e2cc07258cd696b443e4f0b36ba (diff)
parentce9e379a8aa8ee6d44f1ed741da2e5d67135ffb4 (diff)
Merge "Update documentation to GetPhoneNumber with the security/privacy concerns" am: d1450e4e61 am: ce9e379a8a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2241332 Change-Id: Ibd8a7f2d6ac210197d402fbfc098b2a147d925d5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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 4caa0f78ae51..13550f02266b 100644
--- a/telephony/java/android/telephony/SubscriptionManager.java
+++ b/telephony/java/android/telephony/SubscriptionManager.java
@@ -3962,6 +3962,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.