添加系统服务后,开机异常
android add_service PERMISSION DENIED
导致开机失败,这一般是selinux引起的,我的修改方法是直接关闭selinux
diff --git a/init/selinux.cpp b/init/selinux.cpp index cd17fb5..37afc43 100644 --- a/init/selinux.cpp +++ b/init/selinux.cpp @@ -97,6 +97,7 @@ EnforcingStatus StatusFromCmdline() { } bool IsEnforcing() { + if(true) return false; { int fd(open("/mboot/selinux", O_RDONLY | O_CLOEXEC | O_BINARY)); if (fd != -1) {
当然这不是好的方案