Files
app_Settings/res/xml/sim_lock_settings.xml
Hemanth kumar B 370e44d72d Avoid SElinux denial accessing SIM card lock
This change avoids the following SELinux denial:

  W/SharedPreferenc(28238): type=1400 audit(0.0:8): avc: denied\
  { search } for name="com.android.settings" dev="mmcblk0p25"\
  ino=8209 scontext=u:r:radio:s0 tcontext=u:object_r:system_app\
  _data_file:s0 tclass=dir op_res=-13 ppid=318 pcomm="main"\
  tgid=1850 tgcomm="m.android.phone"

When accessing Settings->Security->Set up SIM card lock.

There is really no need to store this information in
SharedPreferences anyway.

(cherrypicked from commit bef7221a7d)

Change-Id: I3ba30d5d5e2c5b3c379397fbb06325101acaf490
2015-05-11 13:12:26 -07:00

39 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="@string/sim_lock_settings">
<SwitchPreference
android:key="sim_toggle"
android:title="@string/sim_pin_toggle"
android:persistent="false"
android:summaryOn="@string/sim_lock_on"
android:summaryOff="@string/sim_lock_off"/>
<com.android.settings.EditPinPreference
android:key="sim_pin"
android:dependency="sim_toggle"
android:title="@string/sim_pin_change"
android:dialogTitle="@string/sim_change_pin"
android:dialogMessage="@string/sim_enter_old"
android:persistent="false"
android:positiveButtonText="@string/sim_enter_ok"
android:negativeButtonText="@string/sim_enter_cancel"/>
</PreferenceScreen>