raviole: centralize common part of init.<DEVICE>.rc into init.raviole.rc
Bug: 167996145 Change-Id: I1e12d64295ffd4f990ad97455dc8a1ab965b6133
This commit is contained in:
parent
5ed1fe327d
commit
334022f5c6
5 changed files with 35 additions and 59 deletions
|
@ -1,8 +1,6 @@
|
||||||
# Oriole specific init.rc
|
# Oriole specific init.rc
|
||||||
import /vendor/etc/init/hw/init.gs101.rc
|
import /vendor/etc/init/hw/init.gs101.rc
|
||||||
|
import /vendor/etc/init/hw/init.raviole.rc
|
||||||
on init && property:ro.build.flavor=factory_oriole-userdebug
|
|
||||||
import /vendor/etc/init/hw/init.factory.rc
|
|
||||||
|
|
||||||
on init
|
on init
|
||||||
# logbuffer
|
# logbuffer
|
||||||
|
@ -11,33 +9,6 @@ on init
|
||||||
chown system system /d/regmap/5-0036/registers
|
chown system system /d/regmap/5-0036/registers
|
||||||
chown system system /sys/bus/nvmem/devices/4-00500/nvmem
|
chown system system /sys/bus/nvmem/devices/4-00500/nvmem
|
||||||
|
|
||||||
on early-boot
|
|
||||||
# Wait for insmod_sh to finish all common modules
|
|
||||||
wait_for_prop vendor.common.modules.ready 1
|
|
||||||
start insmod_sh_oriole
|
|
||||||
|
|
||||||
service insmod_sh_oriole /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.oriole.cfg
|
|
||||||
class main
|
|
||||||
user root
|
|
||||||
group root system
|
|
||||||
disabled
|
|
||||||
oneshot
|
|
||||||
|
|
||||||
on fs
|
|
||||||
# Fingerprint
|
|
||||||
chown system system /dev/goodix_fp
|
|
||||||
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g6.app
|
|
||||||
|
|
||||||
# Start the twoshay touch service
|
|
||||||
start twoshay
|
|
||||||
|
|
||||||
# LHBM
|
|
||||||
# FIXME(b/183223359): Only grant write access to SystemUI.
|
|
||||||
chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode
|
|
||||||
|
|
||||||
on property:ro.revision=PROTO1.0
|
|
||||||
setprop persist.fingerprint.ghbm true
|
|
||||||
|
|
||||||
# Toggle glove_mode according to touch_sensitivity_mode
|
# Toggle glove_mode according to touch_sensitivity_mode
|
||||||
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
|
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
|
||||||
write /sys/class/spi_master/spi11/spi11.0/glove_mode 00
|
write /sys/class/spi_master/spi11/spi11.0/glove_mode 00
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Raven specific init.rc
|
# Raven specific init.rc
|
||||||
import /vendor/etc/init/hw/init.gs101.rc
|
import /vendor/etc/init/hw/init.gs101.rc
|
||||||
|
import /vendor/etc/init/hw/init.raviole.rc
|
||||||
on init && property:ro.build.flavor=factory_raven-userdebug
|
|
||||||
import /vendor/etc/init/hw/init.factory.rc
|
|
||||||
|
|
||||||
on init
|
on init
|
||||||
# logbuffer
|
# logbuffer
|
||||||
|
@ -14,36 +12,10 @@ on init
|
||||||
# Power Stats HAL
|
# Power Stats HAL
|
||||||
chown system system /sys/devices/platform/10d30000.spi/spi_master/spi10/spi10.0/uwb/power_stats
|
chown system system /sys/devices/platform/10d30000.spi/spi_master/spi10/spi10.0/uwb/power_stats
|
||||||
|
|
||||||
on early-boot
|
|
||||||
# Wait for insmod_sh to finish all common modules
|
|
||||||
wait_for_prop vendor.common.modules.ready 1
|
|
||||||
start insmod_sh_raven
|
|
||||||
|
|
||||||
service insmod_sh_raven /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.raven.cfg
|
|
||||||
class main
|
|
||||||
user root
|
|
||||||
group root system
|
|
||||||
disabled
|
|
||||||
oneshot
|
|
||||||
|
|
||||||
on fs
|
on fs
|
||||||
# Fingerprint
|
|
||||||
chown system system /dev/goodix_fp
|
|
||||||
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g6.app
|
|
||||||
|
|
||||||
# Face
|
# Face
|
||||||
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/faceauth.app
|
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/faceauth.app
|
||||||
|
|
||||||
# LHBM
|
|
||||||
# FIXME(b/183223359): Only grant write access to SystemUI.
|
|
||||||
chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode
|
|
||||||
|
|
||||||
# Start the twoshay touch service
|
|
||||||
start twoshay
|
|
||||||
|
|
||||||
on property:ro.revision=PROTO1.0
|
|
||||||
setprop persist.fingerprint.ghbm true
|
|
||||||
|
|
||||||
on property:vendor.mfgapi.touchpanel.permission=1
|
on property:vendor.mfgapi.touchpanel.permission=1
|
||||||
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
||||||
chown system system /sys/devices/virtual/sec/tsp/cmd
|
chown system system /sys/devices/virtual/sec/tsp/cmd
|
||||||
|
|
31
conf/init.raviole.rc
Normal file
31
conf/init.raviole.rc
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Raven/Oriole specific init.rc
|
||||||
|
|
||||||
|
on init && property:ro.build.flavor=factory_${ro.hardware}-userdebug
|
||||||
|
import /vendor/etc/init/hw/init.factory.rc
|
||||||
|
|
||||||
|
on early-boot
|
||||||
|
# Wait for insmod_sh to finish all common modules
|
||||||
|
wait_for_prop vendor.common.modules.ready 1
|
||||||
|
start insmod_sh_raviole
|
||||||
|
|
||||||
|
service insmod_sh_raviole /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.${ro.hardware}.cfg
|
||||||
|
class main
|
||||||
|
user root
|
||||||
|
group root system
|
||||||
|
disabled
|
||||||
|
oneshot
|
||||||
|
|
||||||
|
on fs
|
||||||
|
# Fingerprint
|
||||||
|
chown system system /dev/goodix_fp
|
||||||
|
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g6.app
|
||||||
|
|
||||||
|
# LHBM
|
||||||
|
# FIXME(b/183223359): Only grant write access to SystemUI.
|
||||||
|
chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode
|
||||||
|
|
||||||
|
# Start the twoshay touch service
|
||||||
|
start twoshay
|
||||||
|
|
||||||
|
on property:ro.revision=PROTO1.0
|
||||||
|
setprop persist.fingerprint.ghbm true
|
|
@ -32,6 +32,7 @@ include hardware/google/pixel/vibrator/cs40l25/device.mk
|
||||||
|
|
||||||
# Init files
|
# Init files
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \
|
||||||
device/google/raviole/conf/init.oriole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.oriole.rc
|
device/google/raviole/conf/init.oriole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.oriole.rc
|
||||||
|
|
||||||
# Recovery files
|
# Recovery files
|
||||||
|
|
|
@ -38,6 +38,7 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.enable_frame_rate_overr
|
||||||
|
|
||||||
# Init files
|
# Init files
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \
|
||||||
device/google/raviole/conf/init.raven.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raven.rc
|
device/google/raviole/conf/init.raven.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raven.rc
|
||||||
|
|
||||||
# Recovery files
|
# Recovery files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue