Skip to content

Commit c8c8eaa

Browse files
committed
halium: install an empty file to /system/etc/prop.halium
It can be used as bind mount target to override property values set in any other property files.
1 parent 59caa6b commit c8c8eaa

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

device.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ PRODUCT_PACKAGES += \
2424
vndk-detect \
2525
on-post-data.sh
2626

27+
# bind mount target for property overrides
28+
PRODUCT_PACKAGES += \
29+
prop.halium
30+
2731
# Keymaster
2832
PRODUCT_PACKAGES += \
2933
android.hardware.keymaster@3.0-impl \

rootdir/Android.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ LOCAL_SRC_FILES := etc/init.disabled.rc
2020
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init
2121
include $(BUILD_PREBUILT)
2222

23+
include $(CLEAR_VARS)
24+
LOCAL_MODULE := prop.halium
25+
LOCAL_MODULE_TAGS := optional
26+
LOCAL_MODULE_CLASS := ETC
27+
LOCAL_SRC_FILES := etc/prop.halium
28+
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)
29+
include $(BUILD_PREBUILT)
30+
2331
include $(CLEAR_VARS)
2432
LOCAL_MODULE := vndk-detect
2533
LOCAL_MODULE_TAGS := optional

rootdir/etc/prop.halium

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This is an empty property file that can be used as bind mount target to
2+
# override property values set in any other property files.

0 commit comments

Comments
 (0)