open 总是失败 返回-1 android6.0 selinux策略问题

在做android 6.0 的tp 唤醒功能的时候, 在打开/dev/input/event4 总是失败 返回-1 想到打印失败的err 值 查看官方文档,open函数返回值的说明: -1 if an error occurred (in which case, errno is set appro-priately) 如果返回的是-1,那么errno就会被设置。 也就是说,打开文件失败,那么错误
相关文章
相关标签/搜索