2025年5月10日星期六

Android8添加开机Service 必须添加相应的te文件



selinux的原因,添加Service必须添加.te文件

(即使是permissive)也要添加.te文件

否则seclabel会出错。

firefly 的 rk3399pro Android8.1


.te文件放在device/rockchip/common/sepolicy/下面


.te文件内容

type autorun,domain;
type autorun_exec,exec_type,file_type;
permissive autorun;


init.rk30board.rc内容:

# autorun
service autorun /system/bin/auto_run.sh
seclabel u:r:autorun:s0
user root
group root
disabled
oneshot

on property:persist.sys.auto_run=0
stop autorun

on property:persist.sys.auto_run=1
start autorun

没有评论:

发表评论

分享一下 XG-040G-TF 光猫的使用教程

我主要分享的是解决思路,亲测最终实现了固化telnet和拥有了超密权限。 本帖隐藏的内容 0 拿到手的货 首先自己手动复位一下,这样超级用户名和密码变成了  telecomadmin 和 nE7jA%5m 复位方法: 光猫启动完成后,用取卡针捅复位按钮5秒,直到光猫所有信号灯闪烁...