Git Product home page Git Product logo

Comments (11)

xxxajk avatar xxxajk commented on September 28, 2024

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.

otraupe avatar otraupe commented on September 28, 2024

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.

otraupe avatar otraupe commented on September 28, 2024

Actually, I don't see any permissions at all in the code. Am I looking at the wrong Manifest?

from physicaloidlibrary.

xxxajk avatar xxxajk commented on September 28, 2024

https://github.com/xxxajk/PhysicaloidLibrary/blob/master/SampleProjects/PhysicaloidTest/AndroidManifest.xml
See line 11.

from physicaloidlibrary.

otraupe avatar otraupe commented on September 28, 2024

That is the "uses-feature" statement. How does this work as permission? With modern sdk versions at least it does not.

from physicaloidlibrary.

xxxajk avatar xxxajk commented on September 28, 2024

Works fine here, on marshmallow...

from physicaloidlibrary.

otraupe avatar otraupe commented on September 28, 2024

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.

xxxajk avatar xxxajk commented on September 28, 2024

Android will always ask for permission. That's normal.

from physicaloidlibrary.

otraupe avatar otraupe commented on September 28, 2024

That exactly is the point: it does not. :)

from physicaloidlibrary.

Lauszus avatar Lauszus commented on September 28, 2024

This has been the case for some time. You need to request permission inside the application. Please refer to one of my apps:

https://github.com/Lauszus/FaceRecognitionApp/blob/f67687eba2c9b6d9cbad69322dc6a297e21327bb/app/src/main/java/com/lauszus/facerecognitionapp/FaceRecognitionAppActivity.java#L545-L547

https://github.com/Lauszus/FaceRecognitionApp/blob/f67687eba2c9b6d9cbad69322dc6a297e21327bb/app/src/main/java/com/lauszus/facerecognitionapp/FaceRecognitionAppActivity.java#L488-L500

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.

otraupe avatar otraupe commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.