Boot script...
This commit is contained in:
@@ -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)
|
||||||
@@ -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 \
|
||||||
|
|||||||
1
duoqin/selinux/file_contexts
Normal file
1
duoqin/selinux/file_contexts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/system/bin/wephone-boot.sh u:object_r:wephone_exec:s0
|
||||||
1
duoqin/selinux/wephone.te
Normal file
1
duoqin/selinux/wephone.te
Normal file
@@ -0,0 +1 @@
|
|||||||
|
type wephone_exec, system_file_type, exec_type, file_type;
|
||||||
3
duoqin/wephone-boot.sh
Executable file
3
duoqin/wephone-boot.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/system/bin/sh
|
||||||
|
|
||||||
|
touch /mnt/wephone_script
|
||||||
6
duoqin/wephone.rc
Normal file
6
duoqin/wephone.rc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
service wephone_boot /system/bin/wephone-boot.sh
|
||||||
|
oneshot
|
||||||
|
disabled
|
||||||
|
|
||||||
|
on property:sys.boot_completed=1
|
||||||
|
start wephone_boot
|
||||||
Reference in New Issue
Block a user