• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

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

packages/apps/Settings


Commit MetaInfo

Revisão417a0500c3d7e14013751dbe62791487b033ee72 (tree)
Hora2015-10-20 09:02:11
AutorJason Monk <jmonk@goog...>
CommiterJason Monk

Mensagem de Log

Hide SIM and IMEI for wifi only devices

Bug: 24342670
Change-Id: Icfb7db0c1b5c6688c16248daa5e6c0443ff45392

Mudança Sumário

Diff

--- a/src/com/android/settings/deviceinfo/Status.java
+++ b/src/com/android/settings/deviceinfo/Status.java
@@ -205,8 +205,10 @@ public class Status extends InstrumentedPreferenceActivity {
205205 removePreferenceFromScreen(KEY_SERIAL_NUMBER);
206206 }
207207
208- //Remove SimStatus and Imei for Secondary user as it access Phone b/19165700
209- if (UserHandle.myUserId() != UserHandle.USER_OWNER) {
208+ // Remove SimStatus and Imei for Secondary user as it access Phone b/19165700
209+ // Also remove on Wi-Fi only devices.
210+ if (UserHandle.myUserId() != UserHandle.USER_OWNER
211+ || Utils.isWifiOnly(this)) {
210212 removePreferenceFromScreen(KEY_SIM_STATUS);
211213 removePreferenceFromScreen(KEY_IMEI_INFO);
212214 }