Boot script...

This commit is contained in:
Nehemiah of Zebulun 2023-11-16 11:15:53 -05:00
parent 31aa41db3d
commit 933845c74f
6 changed files with 17 additions and 1 deletions

View File

@ -1 +1,2 @@
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/wephone/duoqin/sepolicy
TARGET_SYSTEM_PROP := device/wephone/duoqin/system.prop $(TARGET_SYSTEM_PROP) TARGET_SYSTEM_PROP := device/wephone/duoqin/system.prop $(TARGET_SYSTEM_PROP)

View File

@ -34,6 +34,10 @@ PRODUCT_CHARACTERISTICS := device
PRODUCT_PACKAGE_OVERLAYS += device/wephone/duoqin/overlay PRODUCT_PACKAGE_OVERLAYS += device/wephone/duoqin/overlay
PRODUCT_COPY_FILES += \
device/wephone/duoqin/wephone.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/vndk.rc \
device/wephone/duoqin/wephone-boot.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/wephone_boot.sh
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/wephone/duoqin/files/mtk-kpd.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-kpd.idc \ device/wephone/duoqin/files/mtk-kpd.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-kpd.idc \
device/wephone/duoqin/files/mtk-kpd.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-kpd.kcm \ device/wephone/duoqin/files/mtk-kpd.kcm:$(TARGET_COPY_OUT_SYSTEM)/usr/keychars/mtk-kpd.kcm \

View File

@ -0,0 +1 @@
/system/bin/wephone-boot.sh u:object_r:wephone_exec:s0

View File

@ -0,0 +1 @@
type wephone_exec, system_file_type, exec_type, file_type;

3
duoqin/wephone-boot.sh Executable file
View File

@ -0,0 +1,3 @@
#!/system/bin/sh
touch /mnt/wephone_script

6
duoqin/wephone.rc Normal file
View File

@ -0,0 +1,6 @@
service wephone_boot /system/bin/wephone-boot.sh
oneshot
disabled
on property:sys.boot_completed=1
start wephone_boot