启动android并同时运行进程

问题描述 投票:0回答:1

我创建了1个程序测试,我想在启动android后立即运行程序测试

这是我的file.rc

service test /system/bin/test
        class late_start

但是程序测试/ system / bin / test无法运行。

[请帮助我解决此问题。

android c process android-source boot
1个回答
0
投票

我已经编辑这是我的文件。rc

service test /system/bin/test
        disabled
on boot
        start test

这是我的文件。te

type test, domain;
type test_exec, exec_type, file_type;

init_daemon_domain(test)

这是我的文件上下文

/system/bin/test   u:object_r:test_exec:s0

但是在构建源android时失败。

© www.soinside.com 2019 - 2024. All rights reserved.