diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/deviceinfo/Status.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/settings/deviceinfo/Status.java b/src/com/android/settings/deviceinfo/Status.java index b86f9c6..b52a0ad 100644 --- 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 { removePreferenceFromScreen(KEY_SERIAL_NUMBER); } - //Remove SimStatus and Imei for Secondary user as it access Phone b/19165700 - if (UserHandle.myUserId() != UserHandle.USER_OWNER) { + // Remove SimStatus and Imei for Secondary user as it access Phone b/19165700 + // Also remove on Wi-Fi only devices. + if (UserHandle.myUserId() != UserHandle.USER_OWNER + || Utils.isWifiOnly(this)) { removePreferenceFromScreen(KEY_SIM_STATUS); removePreferenceFromScreen(KEY_IMEI_INFO); } |