mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: Compile OSS exynos power hal
* https://github.com/LineageOS/android_hardware_samsung/tree/lineage-18.0/hidl/power Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
parent
710e5f1073
commit
25cadfd8aa
5 changed files with 60 additions and 0 deletions
|
|
@ -1,4 +1,13 @@
|
|||
<manifest version="1.0" type="framework">
|
||||
<hal format="hidl">
|
||||
<name>vendor.lineage.power</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>ILineagePower</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>vendor.lineage.touch</name>
|
||||
<transport>hwbinder</transport>
|
||||
|
|
|
|||
42
power/Android.mk
Normal file
42
power/Android.mk
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := android.hardware.power@1.0-service.exynos.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init
|
||||
LOCAL_SRC_FILES := $(LOCAL_MODULE)
|
||||
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
LOCAL_PATH := hardware/samsung/hidl/power
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
Power.cpp \
|
||||
service.cpp
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/include \
|
||||
hardware/samsung/hidl/light/include
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libbase \
|
||||
libbinder \
|
||||
libhidlbase \
|
||||
libutils \
|
||||
android.hardware.power@1.0 \
|
||||
vendor.lineage.power@1.0
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := libc++fs
|
||||
|
||||
LOCAL_MODULE := android.hardware.power@1.0-service.universal7904
|
||||
LOCAL_MODULE_STEM := android.hardware.power@1.0-service.exynos
|
||||
LOCAL_REQUIRED_MODULES := $(LOCAL_MODULE_STEM).rc
|
||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_OWNER := samsung
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
4
power/android.hardware.power@1.0-service.exynos.rc
Normal file
4
power/android.hardware.power@1.0-service.exynos.rc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
service vendor.power-hal-1-0 /system/bin/hw/android.hardware.power@1.0-service.exynos
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
# HALs
|
||||
/system/bin/hw/lineage\.touch@1\.0-service\.samsung u:object_r:hal_touch_samsung_exec:s0
|
||||
/system/bin/hw/android\.hardware\.power@1\.0-service\.exynos u:object_r:hal_power_default_exec:s0
|
||||
|
||||
# Vendor overlay
|
||||
/(product|system/product)/vendor_overlay/[0-9]+/etc(/.*)? u:object_r:vendor_configs_file:s0
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@ PRODUCT_COPY_FILES += \
|
|||
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
|
||||
frameworks/native/data/etc/android.software.controls.xml:system/etc/permissions/android.software.controls.xml
|
||||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power@1.0-service.universal7904
|
||||
|
||||
# Recovery
|
||||
PRODUCT_PACKAGES += \
|
||||
fastbootd \
|
||||
|
|
|
|||
Loading…
Reference in a new issue