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,4 +1,6 @@
# convert legacy props
on late-init
umount /sys/fs/fuse/connections
# overlay data
on early-init && property:ro.kernel.redroid.overlay=1
@@ -45,3 +47,20 @@ on early-init && property:ro.kernel.redroid.gpu.mode=*
on early-init && property:ro.kernel.redroid.gpu.node=*
setprop ro.boot.redroid_gpu_node ${ro.kernel.redroid.gpu.node}
# Battery
on post-fs-data
mkdir /data/vendor/battery 0751 root root
exec -- /system/bin/sh /vendor/bin/hw/init.redroid.battery.sh
# GPS
on post-fs-data
mkdir /data/vendor/gps 0751 root root
exec -- /system/bin/sh /vendor/bin/hw/init.redroid.gps.sh
service gnss /vendor/bin/hw/android.hardware.gnss-service
class hal
user nobody
group nobody