diff options
author | Makoto Onuki <omakoto@google.com> | 2015-06-29 14:42:51 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2015-06-29 14:51:09 -0700 |
commit | a26a019c6c8d7d39b1d3beefb3f2f55845175ea5 (patch) | |
tree | 05ec84ce2faf5557a562a49907280cd8f6c9ee08 /telephony/java | |
parent | 82b3f67711246ad5beaf7702ce16e9d433406d1e (diff) | |
download | frameworks_base-a26a019c6c8d7d39b1d3beefb3f2f55845175ea5.zip frameworks_base-a26a019c6c8d7d39b1d3beefb3f2f55845175ea5.tar.gz frameworks_base-a26a019c6c8d7d39b1d3beefb3f2f55845175ea5.tar.bz2 |
Allow default SMS app to get self phone number
Apps with WRITE_SMS app op can now call TelephonyManager.getLine1Number().
(Note we no longer have the WRITE_SMS permission.)
Bug 22031904
Change-Id: Ic843b6d7674879951a64e3b3a92bca09c3b5c65b
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index ab2a98d..3a0f765 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -2011,6 +2011,8 @@ public class TelephonyManager { * <p> * Requires Permission: * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} + * <p> + * The default SMS app can also use this. */ public String getLine1Number() { return getLine1NumberForSubscriber(getDefaultSubscription()); @@ -2022,6 +2024,8 @@ public class TelephonyManager { * <p> * Requires Permission: * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} + * <p> + * The default SMS app can also use this. * * @param subId whose phone number for line 1 is returned */ |