Merge "init: move some of the permission settings to early-boot"

This commit is contained in:
Thierry Strudel
2017-05-06 02:41:45 +00:00
committed by Android (Google) Code Review

View File

@@ -326,6 +326,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
@@ -374,26 +394,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