kongqw / AndroidSerialPort

Android串口通信示例
722 stars 215 forks source link

Android手机获取不到String[] mDevices = serialPortFinder.getAllDevicesPath();,mDevices大小为0 #31

Open chuncainiao opened 4 years ago

chuncainiao commented 4 years ago

java.io.FileNotFoundException: /proc/tty/drivers: open failed: EACCES (Permission denied) W/System.err: at libcore.io.IoBridge.open(IoBridge.java:496) W/System.err: at java.io.FileInputStream.(FileInputStream.java:159) W/System.err: at java.io.FileInputStream.(FileInputStream.java:115) W/System.err: at java.io.FileReader.(FileReader.java:58) W/System.err: at android.serialport.SerialPortFinder.getDrivers(SerialPortFinder.java:71)

grubberbin commented 4 years ago

权限问题啊

chuncainiao commented 4 years ago

这两个权限都已经添加了呀

Mr-Jiang commented 1 year ago

SE-Linux权限,需要改系统.te文件