android 7.1 服務進程 open串口設備失敗

寫了一個簡單的helloworld程序做爲一個服務,運行後出現各類avc權限問題,如open(/dev/tty*)設備返回-1,log以下:spa 01-01 11:47:51.200  1714  1714 W helloworld: type=1400 audit(0.0:96): avc: denie d { read write } for name="ttyVCOM0" dev="tmp
相關文章
相關標籤/搜索