Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chuncainiao opened this issue Aug 19, 2020 · 3 comments

Comments

@chuncainiao
Copy link

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
Copy link

权限问题啊

@chuncainiao
Copy link
Author

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

@Mr-Jiang
Copy link

Mr-Jiang commented Jul 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants