packages/apps/Settings
リビジョン | ab84518009c53e28e021f27696cd4e51360fccbc (tree) |
---|---|
日時 | 2015-01-30 10:19:26 |
作者 | Sanket Padawe <sanketpadawe@goog...> |
コミッター | Sanket Padawe |
Remove sim status and imei for secondary user.
Bug: 19165700
Change-Id: I4cc4b09a66acb3c88ac33e6479b165b6872404c8
@@ -66,6 +66,7 @@ public class Status extends PreferenceActivity { | ||
66 | 66 | private static final String KEY_SERIAL_NUMBER = "serial_number"; |
67 | 67 | private static final String KEY_WIMAX_MAC_ADDRESS = "wimax_mac_address"; |
68 | 68 | private static final String KEY_SIM_STATUS = "sim_status"; |
69 | + private static final String KEY_IMEI_INFO = "imei_info"; | |
69 | 70 | |
70 | 71 | // Broadcasts to listen to for connectivity changes. |
71 | 72 | private static final String[] CONNECTIVITY_INTENTS = { |
@@ -203,6 +204,12 @@ public class Status extends PreferenceActivity { | ||
203 | 204 | removePreferenceFromScreen(KEY_SERIAL_NUMBER); |
204 | 205 | } |
205 | 206 | |
207 | + //Remove SimStatus and Imei for Secondary user as it access Phone b/19165700 | |
208 | + if (UserHandle.myUserId() != UserHandle.USER_OWNER) { | |
209 | + removePreferenceFromScreen(KEY_SIM_STATUS); | |
210 | + removePreferenceFromScreen(KEY_IMEI_INFO); | |
211 | + } | |
212 | + | |
206 | 213 | // Make every pref on this screen copy its data to the clipboard on longpress. |
207 | 214 | // Super convenient for capturing the IMEI, MAC addr, serial, etc. |
208 | 215 | getListView().setOnItemLongClickListener( |