diff options
author | Raju Yadav <raju.yadav@sonymobile.com> | 2015-05-05 09:01:39 +0200 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2015-05-07 13:54:54 -0700 |
commit | 92331e51eadb717a15626083b52a820c236dc1cd (patch) | |
tree | ff004ac8b504cab57f52413d6d2bfd0f435e6df6 /res | |
parent | 97cebec1a0975e1a85a4bbb0024e403c655722a8 (diff) | |
download | packages_apps_Settings-92331e51eadb717a15626083b52a820c236dc1cd.zip packages_apps_Settings-92331e51eadb717a15626083b52a820c236dc1cd.tar.gz packages_apps_Settings-92331e51eadb717a15626083b52a820c236dc1cd.tar.bz2 |
Avoid SElinux denial accessing IMEI information
Set persistent attribute to false so preferences are not
stored in shared preferences, this avoids the SElinux
denial:
W/SharedPreferenc( 6950): type=1400 audit(0.0:4): avc: \
denied { search } for name="com.android.settings" \
dev="mmcblk0p25" ino=48929 scontext=u:r:radio:s0 \
tcontext=u:object_r:system_app_data_file:s0 tclass=dir\
op_res=-13 ppid=319 pcomm="main" tgid=1589\
tgcomm="m.android.phone"
Observed when entering IMEI information in:
Settings > About Phone > Status > IMEI information.
It makes no sense to store this information in shared
preferences anyway so no functinoality is lost with this
change.
(cherrypicked from commit b2ad5bb522e378a7ef63e5e9f6329217d8f2f0c2)
Change-Id: Id778bbadc8141167d679177b39e1d7a540d5752c
Diffstat (limited to 'res')
-rw-r--r-- | res/xml/device_info_phone_status.xml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/res/xml/device_info_phone_status.xml b/res/xml/device_info_phone_status.xml index 21c5af1..ccda55f 100644 --- a/res/xml/device_info_phone_status.xml +++ b/res/xml/device_info_phone_status.xml @@ -20,28 +20,34 @@ <!-- This menu item is only for CDMA phone --> <Preference android:key="min_number" android:title="@string/status_min_number" - android:summary="@string/device_info_not_available" /> + android:summary="@string/device_info_not_available" + android:persistent="false"/> <!-- This menu item is only for CDMA phone --> <Preference android:key="prl_version" android:title="@string/status_prl_version" - android:summary="@string/device_info_not_available" /> + android:summary="@string/device_info_not_available" + android:persistent="false"/> <!-- This menu item is only for CDMA phone --> <Preference android:key="meid_number" android:title="@string/status_meid_number" - android:summary="@string/device_info_not_available" /> + android:summary="@string/device_info_not_available" + android:persistent="false"/> <Preference android:key="imei" android:title="@string/status_imei" - android:summary="@string/device_info_not_available" /> + android:summary="@string/device_info_not_available" + android:persistent="false"/> <Preference android:key="imei_sv" android:title="@string/status_imei_sv" - android:summary="@string/device_info_not_available" /> + android:summary="@string/device_info_not_available" + android:persistent="false"/> <Preference android:key="icc_id" android:title="@string/status_icc_id" - android:summary="@string/device_info_not_available" /> + android:summary="@string/device_info_not_available" + android:persistent="false"/> </PreferenceScreen> |