Comments (11)
See here: https://github.com/xxxajk/PhysicaloidLibrary
Permissions are in the manifest.
The owner of this repository has not been around for years. It is obsolete.
from physicaloidlibrary.
Thx for the reply!
All I can see is the "uses-feature" statement. But in modern apps you need to provide "uses-permission", as well. And you also need to actively query the needed permissions. This does not happen automatically any more. I only don't know its name.
I even saw evidence that this permission can be vendor-specific as e.g. in "com.sonyericsson.usbotg.SOMETHING".
from physicaloidlibrary.
Actually, I don't see any permissions at all in the code. Am I looking at the wrong Manifest?
from physicaloidlibrary.
https://github.com/xxxajk/PhysicaloidLibrary/blob/master/SampleProjects/PhysicaloidTest/AndroidManifest.xml
See line 11.
from physicaloidlibrary.
That is the "uses-feature" statement. How does this work as permission? With modern sdk versions at least it does not.
from physicaloidlibrary.
Works fine here, on marshmallow...
from physicaloidlibrary.
Did you just run these examples or did you try to use the permission in your own code? I can't seem to create an app with this "permission" which actually asks me for permission. It seems I have to use a very old "target SDK", but I struggle with that.
from physicaloidlibrary.
Android will always ask for permission. That's normal.
from physicaloidlibrary.
That exactly is the point: it does not. :)
from physicaloidlibrary.
This has been the case for some time. You need to request permission inside the application. Please refer to one of my apps:
For more information see: https://developer.android.com/training/permissions/requesting.
For more information requesting USB host permission on Android: https://developer.android.com/guide/topics/connectivity/usb/host#permission-d.
from physicaloidlibrary.
Lauszus, thank you very much! I tried to follow the instructions on google developers closely:
https://developer.android.com/guide/topics/connectivity/usb/host#permission-d
I did not find them very straight forward and in particular did not understand that the permission string used there can be an arbitrary dummy string.
Now I finally found out, how it works. It seems there is no good tutorial out there. Maybe I write one.
from physicaloidlibrary.
Related Issues (20)
- Reconnecting Crashes app
- mPhysicaloid.open() never open HOT 15
- Want to interface two cp210x module
- How to handle .ino files? HOT 1
- Callback Off
- mPhysicaloid.write wrong character on cp210x
- Support for CH340G Serial-to-USB Chips HOT 6
- infinite read cycle
- Unable to connect divece with the lenovo mobile using physicallibrary
- Usage with ArduinoISP
- How to wait for Physicaloid.open()
- Wonder What makes physicaloid.open() fail HOT 1
- java.lang.ArrayIndexOutOfBoundsException: src.length=256 srcPos=0 dst.length=1025 dstPos=0 length=-1 at java.lang.System.arraycopy(Native Method) at com.physicaloid.misc.RingBuffer.add(RingBuffer.java:110) at com.physicaloid.lib.usb.driver.uart.UartFtdi$1.run(UartFtdi.java:194) at java.lang.Thread.run(Thread.java:841)
- STK500.getsync() : not in sync: resp=0x00
- WAVGAT china CH34** Arduino support
- With this library can we also read data from pen drive or usb headphones? HOT 1
- Problem with . open() running only once. HOT 2
- No licence provided for the code
- Could not create plugin of type 'LibraryPlugin' while building code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from physicaloidlibrary.