• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

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

変更サマリ

差分

--- 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 {
6666 private static final String KEY_SERIAL_NUMBER = "serial_number";
6767 private static final String KEY_WIMAX_MAC_ADDRESS = "wimax_mac_address";
6868 private static final String KEY_SIM_STATUS = "sim_status";
69+ private static final String KEY_IMEI_INFO = "imei_info";
6970
7071 // Broadcasts to listen to for connectivity changes.
7172 private static final String[] CONNECTIVITY_INTENTS = {
@@ -203,6 +204,12 @@ public class Status extends PreferenceActivity {
203204 removePreferenceFromScreen(KEY_SERIAL_NUMBER);
204205 }
205206
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+
206213 // Make every pref on this screen copy its data to the clipboard on longpress.
207214 // Super convenient for capturing the IMEI, MAC addr, serial, etc.
208215 getListView().setOnItemLongClickListener(