sm8250-common: Relocate our custom HALs to vendor

* Adjust them for usage in /vendor while at it.

Change-Id: I84463a912d98e8af14ca31ffd8ac95db1aac916e
This commit is contained in:
LuK1337 2021-01-04 22:12:23 +01:00
commit 1653e33e11
12 changed files with 26 additions and 26 deletions

View file

@ -1,33 +0,0 @@
on init
chown system graphics /sys/class/drm/card0-DSI-1/DCI_P3
chown system graphics /sys/class/drm/card0-DSI-1/hbm
chown system graphics /sys/class/drm/card0-DSI-1/night_mode
chown system graphics /sys/class/drm/card0-DSI-1/native_display_loading_effect_mode
chown system graphics /sys/class/drm/card0-DSI-1/native_display_p3_mode
chown system graphics /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode
chown system graphics /sys/class/drm/card0-DSI-1/native_display_wide_color_mode
chmod 0666 /sys/class/drm/card0-DSI-1/DCI_P3
chmod 0666 /sys/class/drm/card0-DSI-1/hbm
chmod 0666 /sys/class/drm/card0-DSI-1/night_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_loading_effect_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_p3_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode
chmod 0666 /sys/class/drm/card0-DSI-1/native_display_wide_color_mode
on post-fs-data
mkdir /data/misc/display 0770 system graphics
service livedisplay-hal-2-0 /system/bin/hw/lineage.livedisplay@2.0-service.oneplus_kona
class hal
user system
group system
on property:sys.boot_completed=1
write /sys/class/drm/card0-DSI-1/DCI_P3 0
write /sys/class/drm/card0-DSI-1/hbm 0
write /sys/class/drm/card0-DSI-1/night_mode 0
write /sys/class/drm/card0-DSI-1/native_display_loading_effect_mode 0
write /sys/class/drm/card0-DSI-1/native_display_p3_mode 0
write /sys/class/drm/card0-DSI-1/native_display_srgb_color_mode 0
write /sys/class/drm/card0-DSI-1/native_display_wide_color_mode 0
write /sys/class/drm/card0-DSI-1/${sys.display.mode} 1