mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
init: move some of the permission settings to early-boot
Permission settings that are required by HAL services need to be moved to early-boot to avoid race. Bug: 38043660 Bug: 36571736 Change-Id: I1397816a162e8ef4ed557e6eea3539201dc57e3b Signed-off-by: David Lin <dtwlin@google.com>
This commit is contained in:
@@ -327,6 +327,26 @@ on early-boot
|
||||
# Update dm-verity state and set partition.*.verified properties
|
||||
verity_update_state
|
||||
|
||||
# Permission for laser sensor driver
|
||||
chown camera camera /sys/class/wahoo_laser/laser/enable_ps_sensor
|
||||
|
||||
# Permission for Vibrator
|
||||
chown system system /sys/class/leds/vibrator/device/mode
|
||||
chown system system /sys/class/leds/vibrator/device/od_clamp
|
||||
chown system system /sys/class/leds/vibrator/device/rtp_input
|
||||
chown system system /sys/class/leds/vibrator/device/scale
|
||||
chown system system /sys/class/leds/vibrator/device/set_sequencer
|
||||
chown system system /sys/class/leds/vibrator/device/autocal_result
|
||||
chown system system /sys/class/leds/vibrator/device/ctrl_loop
|
||||
|
||||
# Permission for LED driver
|
||||
chown system system /sys/class/leds/red/on_off_ms
|
||||
chown system system /sys/class/leds/green/on_off_ms
|
||||
chown system system /sys/class/leds/blue/on_off_ms
|
||||
chown system system /sys/class/leds/red/rgb_start
|
||||
chown system system /sys/class/leds/green/rgb_start
|
||||
chown system system /sys/class/leds/blue/rgb_start
|
||||
|
||||
on boot
|
||||
mkdir /dev/socket/qmux_radio 0770 radio radio
|
||||
chmod 2770 /dev/socket/qmux_radio
|
||||
@@ -375,26 +395,6 @@ on boot
|
||||
mkdir /persist/time 0770 system system
|
||||
mkdir /data/time/ 0700 system system
|
||||
|
||||
# Permission for laser sensor driver
|
||||
chown camera camera /sys/class/wahoo_laser/laser/enable_ps_sensor
|
||||
|
||||
# Permission for Vibrator
|
||||
chown system system /sys/class/leds/vibrator/device/mode
|
||||
chown system system /sys/class/leds/vibrator/device/od_clamp
|
||||
chown system system /sys/class/leds/vibrator/device/rtp_input
|
||||
chown system system /sys/class/leds/vibrator/device/scale
|
||||
chown system system /sys/class/leds/vibrator/device/set_sequencer
|
||||
chown system system /sys/class/leds/vibrator/device/autocal_result
|
||||
chown system system /sys/class/leds/vibrator/device/ctrl_loop
|
||||
|
||||
# Permission for LED driver
|
||||
chown system system /sys/class/leds/red/on_off_ms
|
||||
chown system system /sys/class/leds/green/on_off_ms
|
||||
chown system system /sys/class/leds/blue/on_off_ms
|
||||
chown system system /sys/class/leds/red/rgb_start
|
||||
chown system system /sys/class/leds/green/rgb_start
|
||||
chown system system /sys/class/leds/blue/rgb_start
|
||||
|
||||
service init-radio-sh /system/bin/init.radio.sh
|
||||
class late_start
|
||||
user radio
|
||||
|
||||
Reference in New Issue
Block a user