[ 2.993897] audit: type=1400 audit(1623037840.652:4): avc: denied { setattr } for pid=374 comm="init" name="registers" dev="debugfs" ino=9 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0 Bug: 190337297 Test: check bugreport Change-Id: I0a2375bb5c3e1eef63eeaec65093ad53cf8fe02d Signed-off-by: Ted Lin <tedlin@google.com>
37 lines
1.3 KiB
Text
37 lines
1.3 KiB
Text
# Raven specific init.rc
|
|
import /vendor/etc/init/hw/init.gs101.rc
|
|
import /vendor/etc/init/hw/init.raviole.rc
|
|
|
|
on init
|
|
# logbuffer
|
|
chown system system /dev/logbuffer_5-0057
|
|
# nvmem dump
|
|
chown system system /sys/bus/nvmem/devices/5-00500/nvmem
|
|
|
|
# Power Stats HAL
|
|
chown system system /sys/devices/platform/10d30000.spi/spi_master/spi10/spi10.0/uwb/power_stats
|
|
|
|
on fs
|
|
# Face
|
|
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/faceauth.app
|
|
|
|
on property:vendor.mfgapi.touchpanel.permission=1
|
|
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
|
chown system system /sys/devices/virtual/sec/tsp/cmd
|
|
|
|
# Toggle glove_mode according to touch_sensitivity_mode
|
|
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
|
|
write /sys/devices/virtual/sec/tsp/cmd "glove_mode,0"
|
|
|
|
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
|
|
write /sys/devices/virtual/sec/tsp/cmd "glove_mode,1"
|
|
|
|
# Bluetooth
|
|
on post-fs-data
|
|
chown bluetooth system /proc/bluetooth/timesync
|
|
|
|
# For Japan sku, always enforce camera shutter sound
|
|
# Since this property is read by the audio server in system service,
|
|
# it should be written by the system init.
|
|
on property:ro.boot.hardware.sku=GF5KQ
|
|
setprop audio.camerasound.force true
|