diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2015-01-30 02:41:47 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-30 02:41:47 +0000 |
commit | ef72625b5243f2afc6b63553ce57f439801d6977 (patch) | |
tree | acc36deba1723092c7739e40711e665cfb846f72 | |
parent | b749c3368c0bd40a84026b44189e9119a0a27d15 (diff) | |
parent | ab84518009c53e28e021f27696cd4e51360fccbc (diff) | |
download | packages_apps_Settings-ef72625b5243f2afc6b63553ce57f439801d6977.zip packages_apps_Settings-ef72625b5243f2afc6b63553ce57f439801d6977.tar.gz packages_apps_Settings-ef72625b5243f2afc6b63553ce57f439801d6977.tar.bz2 |
am ab845180: Remove sim status and imei for secondary user.
* commit 'ab84518009c53e28e021f27696cd4e51360fccbc':
Remove sim status and imei for secondary user.
-rw-r--r-- | src/com/android/settings/deviceinfo/Status.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/settings/deviceinfo/Status.java b/src/com/android/settings/deviceinfo/Status.java index 94cd6ed..2c92973 100644 --- a/src/com/android/settings/deviceinfo/Status.java +++ b/src/com/android/settings/deviceinfo/Status.java @@ -66,6 +66,7 @@ public class Status extends PreferenceActivity { private static final String KEY_SERIAL_NUMBER = "serial_number"; private static final String KEY_WIMAX_MAC_ADDRESS = "wimax_mac_address"; private static final String KEY_SIM_STATUS = "sim_status"; + private static final String KEY_IMEI_INFO = "imei_info"; // Broadcasts to listen to for connectivity changes. private static final String[] CONNECTIVITY_INTENTS = { @@ -203,6 +204,12 @@ public class Status extends PreferenceActivity { removePreferenceFromScreen(KEY_SERIAL_NUMBER); } + //Remove SimStatus and Imei for Secondary user as it access Phone b/19165700 + if (UserHandle.myUserId() != UserHandle.USER_OWNER) { + removePreferenceFromScreen(KEY_SIM_STATUS); + removePreferenceFromScreen(KEY_IMEI_INFO); + } + // Make every pref on this screen copy its data to the clipboard on longpress. // Super convenient for capturing the IMEI, MAC addr, serial, etc. getListView().setOnItemLongClickListener( |