Skip to content

Commit

Permalink
nabu: rootdir: Override stock vendor light HAL
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshi4u authored and KaguraRinko committed Oct 3, 2022
1 parent 12e6821 commit f6d7f8c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ PRODUCT_PACKAGES_DEBUG += \
PRODUCT_PACKAGES += \
init.recovery.qcom.rc \
init.recovery.usb.rc \
init.recovery.qcom.sh
init.recovery.qcom.sh \
init.thyme.rc

# fastbootd
PRODUCT_PACKAGES += \
Expand Down
8 changes: 8 additions & 0 deletions rootdir/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.recovery.qcom.sh
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := init.nabu.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.nabu.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init
include $(BUILD_PREBUILT)
7 changes: 7 additions & 0 deletions rootdir/etc/init.nabu.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
service vendor.light-qti /vendor/bin/hw/android.hardware.lights-service.qti
class hal
user system
group system
shutdown critical
disabled
override
2 changes: 1 addition & 1 deletion sepolicy/private/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/persist(/.*)? u:object_r:persist_file:s0

# HALs
/system/bin/hw/android\.hardware\.lights-service\.lisa u:object_r:hal_light_default_exec:s0
/system/bin/hw/android\.hardware\.lights-service\.thyme u:object_r:hal_light_default_exec:s0

# Vendor overlay
/(product|system/product)/vendor_overlay/[0-9]+/etc(/.*)? u:object_r:vendor_configs_file:s0
Expand Down

0 comments on commit f6d7f8c

Please sign in to comment.