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

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

Open
GoogleCodeExporter opened this issue Mar 31, 2016 · 1 comment
Open

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

GoogleCodeExporter opened this issue Mar 31, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 13 May 2015 at 1:55

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 8 Jul 2015 at 11:36

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

No branches or pull requests

1 participant