mirror of
https://github.com/LineageOS/android_device_essential_mata.git
synced 2026-08-18 02:57:12 +00:00
mata: Run ipa startup asynchronously
Change-Id: Id14e2b4027ae71849496315c0e884b288bca726f
This commit is contained in:
@ -176,6 +176,7 @@ PRODUCT_PACKAGES += \
|
||||
init.mata.rc \
|
||||
init.mata.usb.rc \
|
||||
init.qcom.devstart.sh \
|
||||
init.qcom.ipastart.sh \
|
||||
ueventd.mata.rc
|
||||
|
||||
# IPACM
|
||||
|
||||
@ -46,6 +46,14 @@ LOCAL_SRC_FILES := bin/init.qcom.devstart.sh
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.qcom.ipastart.sh
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
LOCAL_SRC_FILES := bin/init.qcom.ipastart.sh
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := ueventd.mata.rc
|
||||
LOCAL_MODULE_STEM := ueventd.rc
|
||||
|
||||
3
rootdir/bin/init.qcom.ipastart.sh
Normal file
3
rootdir/bin/init.qcom.ipastart.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#! /vendor/bin/sh
|
||||
|
||||
echo 1 > /dev/ipa
|
||||
@ -268,9 +268,6 @@ on post-fs
|
||||
|
||||
write /sys/devices/virtual/graphics/fb0/idle_time 100
|
||||
|
||||
# init.target.rc
|
||||
write /dev/ipa 1
|
||||
|
||||
# Wait qseecomd started
|
||||
wait_for_prop vendor.sys.listeners.registered true
|
||||
|
||||
@ -819,6 +816,16 @@ service vendor.ipacm /vendor/bin/ipacm
|
||||
disabled
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
|
||||
service vendor.ipastart_sh /vendor/bin/init.qcom.ipastart.sh
|
||||
class main
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:vendor.sys.listeners.registered=true
|
||||
start vendor.ipastart_sh
|
||||
|
||||
service vendor.irsc_util /vendor/bin/irsc_util "/vendor/etc/sec_config"
|
||||
class core
|
||||
user root
|
||||
|
||||
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@ -34,5 +34,6 @@
|
||||
|
||||
/vendor/bin/hbtp_cmd\.sh u:object_r:hbtp_cmd_exec:s0
|
||||
/vendor/bin/init\.qcom\.devstart\.sh u:object_r:init-qcom-devstart-sh_exec:s0
|
||||
/vendor/bin/init\.qcom\.ipastart\.sh u:object_r:init-qcom-ipastart-sh_exec:s0
|
||||
|
||||
/vendor/usr/keylayout/uinput-fpc.kl u:object_r:vendor_keylayout_file:s0
|
||||
|
||||
7
sepolicy/vendor/init_ipastart.te
vendored
Normal file
7
sepolicy/vendor/init_ipastart.te
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
type init-qcom-ipastart-sh, domain;
|
||||
type init-qcom-ipastart-sh_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(init-qcom-ipastart-sh)
|
||||
|
||||
allow init-qcom-ipastart-sh vendor_shell_exec:file rx_file_perms;
|
||||
allow init-qcom-ipastart-sh vendor_toolbox_exec:file rx_file_perms;
|
||||
Reference in New Issue
Block a user