RK3588 预安装APK

device/rockchip/common$ git log -p

    Edge2: add preinstall support and add Aptoide.apk & Chrome.apk[2/2]

diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts
index 58c44b5..6193791 100644
--- a/sepolicy/vendor/file_contexts
+++ b/sepolicy/vendor/file_contexts
@@ -140,6 +140,7 @@
 /vendor/lib(64)?/libgpudataproducer\.so         u:object_r:same_process_hal_file:s0
 # default hal
 /vendor/bin/hw/android\.hardware\.drm@1\.2-service\.widevine            u:object_r:hal_drm_widevine_exec:s0
+/system/bin/preinstall\.sh          u:object_r:shell_exec:s0
 /vendor/bin/hw/android\.hardware\.drm@1\.2-service-lazy\.widevine       u:object_r:hal_drm_widevine_exec:s0
 /vendor/bin/hw/android\.hardware\.drm@1\.2-service\.clearkey            u:object_r:hal_drm_clearkey_exec:s0
 /vendor/bin/hw/android\.hardware\.drm@1\.2-service-lazy\.clearkey       u:object_r:hal_drm_clearkey_exec:s0
diff --git a/sepolicy/vendor/preinstall.te b/sepolicy/vendor/preinstall.te
new file mode 100644
index 0000000..fefd356
--- /dev/null
+++ b/sepolicy/vendor/preinstall.te
@@ -0,0 +1,9 @@
+########################################
+# sepolicy rules for preinstall
+########################################
+
+type preinstall, domain;
+
+type preinstall_exec, exec_type, vendor_file_type, file_type;
+
+init_daemon_domain(preinstall);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值