cepr / android-serialport-api

Accessing serial ports for Android
http://code.google.com/p/android-serialport-api
1.26k stars 538 forks source link

I get a null list of files from the /dev directory #11

Open oduconge opened 1 year ago

oduconge commented 1 year ago

from SerialPortFinder.java line 41

File dev = new File("/dev");

I always get null as result of dev

my log show:

type=1400 audit(0.0:49408): avc: denied { read } for name="/" dev="tmpfs" ino=4097 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:device:s0 tclass=dir permissive=0

What should I do?