From 12224654ecf7a4f16336b509615d47a816db533b Mon Sep 17 00:00:00 2001 From: Sooraj Sasindran Date: Thu, 27 Oct 2016 18:02:12 -0700 Subject: Enable qcril db in angler Enable pre built qcril db on angler This db will contain the custom emergency numbers [ 72.739594] init: Service radio-sh does not have a SELinux domain defined. [ 10.766726] type=1400 audit(31933229.150:6): avc: denied { search } for pid=563 comm="init.radio.sh" name="radio" dev="dm-1" ino=4079624 scontext=u:r:init-radio-sh:s0 tcontext=u:object_r:radio_data_file:s0 tclass=dir permissive=0 [ 72.950256] type=1400 audit(31933766.836:6): avc: denied { write } for pid=597 comm="cp" name="radio" dev="dm-1" ino=4079624 scontext=u:r:init-radio-sh:s0 tcontext=u:object_r:radio_data_file:s0 tclass=dir permissive=0 [ 71.945441] type=1400 audit(31934841.890:6): avc: denied { getattr } for pid=584 comm="init.radio.sh" path="/system/bin/sh" dev="dm-0" ino=489 scontext=u:r:init-radio-sh:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=0 [ 11.330693] type=1400 audit(31935225.246:7): avc: denied { getattr } for pid=558 comm="init.radio.sh" path="/system/bin/toybox" dev="dm-0" ino=521 scontext=u:r:init-radio-sh:s0 tcontext=u:object_r:toolbox_exec:s0 tclass=file permissive=0 [ 73.562786] type=1400 audit(31935678.370:6): avc: denied { create } for pid=591 comm="cp" name="qcril.db" scontext=u:r:init-radio-sh:s0 tcontext=u:object_r:radio_data_file:s0 tclass=file permissive=0 [ 73.594002] type=1400 audit(31935678.393:7): avc: denied { write } for pid=575 comm="init.radio.sh" name="db_check_done" dev="dm-1" ino=4079657 scontext=u:r:init-radio-sh:s0 tcontext=u:object_r:radio_data_file:s0 tclass=file permissive=0 Test: verified that updated numbers are available after image update BUG=31815511 Change-Id: I81169c2da46d9b2b4481d39a5672421a603db406 --- init.angler.rc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'init.angler.rc') diff --git a/init.angler.rc b/init.angler.rc index 0d6bdd8..a6ab5a9 100755 --- a/init.angler.rc +++ b/init.angler.rc @@ -227,6 +227,14 @@ on post-fs-data chmod 0440 /persist/data/st_offset chmod 0440 /persist/data/st_xtalk + # File flags for prebuilt ril db file + write /data/misc/radio/prebuilt_db_support 1 + chown radio radio /data/misc/radio/prebuilt_db_support + chmod 0400 /data/misc/radio/prebuilt_db_support + write /data/misc/radio/db_check_done 0 + chown radio radio /data/misc/radio/db_check_done + chmod 0660 /data/misc/radio/db_check_done + chown system system /sys/class/kgsl/kgsl-3d0/devfreq/max_freq chmod 0660 /sys/class/kgsl/kgsl-3d0/devfreq/max_freq chown system system /sys/class/kgsl/kgsl-3d0/devfreq/min_freq @@ -464,6 +472,12 @@ service mcfg-sh /system/bin/init.mcfg.sh group radio system oneshot +service radio-sh /system/bin/init.radio.sh + class late_start + user radio + group root radio + oneshot + service oem_qmi_server /vendor/bin/oem_qmi_server class main user root -- cgit v1.2.3