|
【Android】
rk3566 jd4 ,在里添加一个开机启动二进制开机没运行,或能推荐开机执行二进制的方法吗
发表于 2022-11-2 09:12:24
浏览:6757
|
回复:2
打印
只看该作者
[复制链接]
楼主
本帖最后由 zhu944567126 于 2022-11-2 09:59 编辑
我尝试过在devices/rockchip/common/init.rockchip.rc 添加 我的路径里我是放了正常二进制,但是开机不运行这个二进制(红色区域是我家的代码)
import /vendor/etc/init/hw/init.${ro.hardware}.usb.rc
import /vendor/etc/init/hw/init.${ro.hardware}.environment.rc
import /vendor/etc/init/hw/init.debug.rc
import /vendor/etc/init/hw/init.mount_all.rc
on early-init
# Loading kernel modules in background
start vendor.insmod_sh
on post-fs
# Swap in only 1 page at a time
write /proc/sys/vm/page-cluster 0
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
on boot
setprop UserVolumeLabel "RockChips"
#zcp 2022.11.1 添加
start hehi
*******************************
service hehi /data/mig/hehi &
class main
user root
group root
oneshot
seclabel u:r:hehi:s0
二进制文件权限我给了777
开机日志:
[ 1.788921] init: Init cannot set 'ro.boot.verifiedbootstate' to 'orange': Read-only property was already set
[ 21.206053] init: processing action (sys.boot_completed=1) from (/system/etc/init/hw/init.rc:985)
[ 21.206765] init: starting service 'exec 14 (/bin/rm -rf /data/per_boot)'...
[ 21.210477] init: SVC_EXEC service 'exec 14 (/bin/rm -rf /data/per_boot)' pid 1348 (uid 1000 gid 1000+0 context default) started; waiting...
[ 21.257053] init: Service 'exec 14 (/bin/rm -rf /data/per_boot)' (pid 1348) exited with status 0 waiting took 0.048000 seconds
[ 21.257137] init: Sending signal 9 to service 'exec 14 (/bin/rm -rf /data/per_boot)' (pid 1348) process group...
[ 21.257491] libprocessgroup: Successfully killed process cgroup uid 1000 pid 1348 in 0ms
[ 21.259409] selinux: SELinux: Skipping restorecon on directory(/data/system_ce/0)
[ 21.259442] selinux:
[ 21.274814] init: Encryption policy of /data/per_boot set to 14f2858b78d1523363a75b14125e13c2 v2 modes 1/4 flags 0x2
|
|