feat: 添加电池和GPS支持,更新配置文件,新增相关脚本和服务

This commit is contained in:
2025-09-16 17:46:18 +08:00
parent fffe32888c
commit 15936404b6
75 changed files with 3541 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
include vendor/redroid/BoardConfig.mk
# skip androidx.window.extensions check
PRODUCT_BROKEN_VERIFY_USES_LIBRARIES := true
@@ -16,3 +19,49 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.touchscreen.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.xml \
######################
# battery config
######################
#
# Power HAL
#
PRODUCT_PACKAGES += \
android.hardware.power-service.example
#
# PowerStats HAL
#
PRODUCT_PACKAGES += \
android.hardware.power.stats-service.example
PRODUCT_COPY_FILES += \
vendor/redroid/battery/init.redroid.battery.sh:$(TARGET_COPY_OUT_VENDOR)/bin/hw/init.redroid.battery.sh \
$(call find-copy-subdir-files,*,vendor/redroid/battery/power_supply,$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/battery/power_supply) \
######################
# gps config
######################
PRODUCT_PACKAGES += \
android.hardware.gnss-service
PRODUCT_COPY_FILES += \
vendor/redroid/gps/init.redroid.gps.sh:$(TARGET_COPY_OUT_VENDOR)/bin/hw/init.redroid.gps.sh \
######################
# gms config
######################
$(call inherit-product-if-exists, vendor/redroid/gapps/arm64/arm64-vendor.mk)
# disable setupwizard
PRODUCT_SYSTEM_EXT_PROPERTIES += \
ro.setupwizard.mode=DISABLED
######################
# zygisk config
######################
$(call inherit-product-if-exists, vendor/magisk/device.mk)