From 92331e51eadb717a15626083b52a820c236dc1cd Mon Sep 17 00:00:00 2001 From: Raju Yadav Date: Tue, 5 May 2015 09:01:39 +0200 Subject: 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 --- res/xml/device_info_phone_status.xml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'res') 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 @@ + android:summary="@string/device_info_not_available" + android:persistent="false"/> + android:summary="@string/device_info_not_available" + android:persistent="false"/> + android:summary="@string/device_info_not_available" + android:persistent="false"/> + android:summary="@string/device_info_not_available" + android:persistent="false"/> + android:summary="@string/device_info_not_available" + android:persistent="false"/> + android:summary="@string/device_info_not_available" + android:persistent="false"/> -- cgit v1.1