Skip to content

Commit

Permalink
begonia: Disable OEM lights
Browse files Browse the repository at this point in the history
Change-Id: I5ef31edc69c70fdad5c1f66880e8625d9747c5a9
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>
  • Loading branch information
AgentFabulous committed Feb 28, 2020
1 parent 8b03f3f commit 6f9650a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ PRODUCT_PACKAGES += \
android.hidl.manager@1.0 \
android.hidl.manager@1.0_system

# Init
PRODUCT_PACKAGES += \
init.mtk.rc

# Input
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/idc/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc \
Expand Down
8 changes: 8 additions & 0 deletions rootdir/Android.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := init.mtk.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.mtk.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := fstab.mt6785
LOCAL_MODULE_TAGS := optional
Expand Down
7 changes: 7 additions & 0 deletions rootdir/etc/init.mtk.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
on post-fs
mount none /dev/null vendor/lib/hw/lights.mt6785.so bind
mount none /dev/null vendor/lib/hw/android.hardware.light@2.0-impl-mediatek.so bind
mount none /dev/null vendor/bin/hw/android.hardware.light@2.0-service-mediatek bind
mount none /dev/null vendor/lib64/hw/lights.mt6785.so bind
mount none /dev/null vendor/lib64/hw/android.hardware.light@2.0-impl-mediatek.so bind
mount none /dev/null vendor/etc/init/android.hardware.light@2.0-service-mediatek.rc bind

0 comments on commit 6f9650a

Please sign in to comment.