xcl010 / android-serialport-api

Automatically exported from code.google.com/p/android-serialport-api
0 stars 0 forks source link

Setup crashes, Android Lollipop, Moto X Gen 2 #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start Serial Port API..
2. Click Setup

What is the expected output? What do you see instead?
Expected: a list of COM devices and settings
Seen: "Unfortunately, Serial Port API sample has stopped."

What version of the product are you using? 
v1.1

On what operating system?
Android Lollipop 5.0.2

Please provide any additional information below.

Original issue reported on code.google.com by visib...@gmail.com on 13 May 2015 at 1:55

GoogleCodeExporter commented 9 years ago
I'm getting this issue as well on android 5.1 (LG G3). As far as I can tell, 
its caused by a failure to get a list of files in the "/dev" folder in the 
"Driver" Class.

mDevices = new Vector<File>();
File dev = new File("/dev");
File[] files = dev.listFiles(); //Error on 5.0 + devices, returns a null object

I assume this is because the security permissions for accessing "external 
storage" changed in kitkat, and that the fix lies in implementing the new 
storage api for lollipop. 

Original comment by ende...@gmail.com on 8 Jul 2015 at 11:36