diff options
| author | 2022-11-01 19:55:54 +0000 | |
|---|---|---|
| committer | 2022-11-01 19:55:54 +0000 | |
| commit | 55331d3fc90c18a662375738a715a449ebd34cb4 (patch) | |
| tree | efde2463667f6e5c4996b253d409a8213e6c62b0 | |
| parent | 0edaab8db8f462758a4ddf4c619b39f446903ff8 (diff) | |
| parent | 91f82f9c2f1a77a80dfe4af9415ddd07b6bca7d3 (diff) | |
Merge "docs: Adding note to getPhoneNumber(int)" into tm-dev am: 0471cade5b am: 91f82f9c2f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20316842
Change-Id: I0098778582eb8a935e01c9740f7a8aca48782ae7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | telephony/java/android/telephony/SubscriptionManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index 0693c59b4944..79fc0e8db6c3 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -4023,6 +4023,10 @@ public class SubscriptionManager { * cautiously, for example, after formatting the number to a consistent format with * {@link android.telephony.PhoneNumberUtils#formatNumberToE164(String, String)}. * + * <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. * @return the phone number, or an empty string if not available. |