Skip to content

added permissions for BLUETOOTH and BLUETOOTH_ADMIN #3

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

Closed
wants to merge 1 commit into from

Conversation

crayne
Copy link

@crayne crayne commented Dec 18, 2015

Added permissions to AndroidManifest.xml because SensingKit build failed without them.

@minoskt
Copy link
Member

minoskt commented Dec 18, 2015

Hi Susan

Many thanks for your contribution. It is correct that the two permissions are required when using the Bluetooth sensor. However it is better if the two permissions are defined in the AndroidManifest.xml of the actual app (that encapsulates the library) instead of the library's one. With that way, apps that utilise SensingKit but do not use that specific sensor would not request access to Bluetooth (e.g. "This app has access to: Bluetooth" when installing the app).

Same applies to other permissions like RECORD_AUDIO for the Audio Recorder or the Audio Level sensor.

I agree that it is confusing and should be explained in the documentation.

Best regards
Minos

@crayne crayne closed this Dec 18, 2015
@crayne
Copy link
Author

crayne commented Dec 18, 2015

Hi Minos
Thank you for pointing this out.  What you said makes a lot of sense. I had thought that the build failure was a fatal error, which is why I added the permissions.  In fact, the libraries were built, so no change to the manifest file was necessary. I have closed the pull request.
Susan

  From: Minos Katevas <notifications@github.com>

To: SensingKit/SensingKit-Android SensingKit-Android@noreply.github.com
Cc: Susan Crayne susancrayne@yahoo.com
Sent: Friday, December 18, 2015 9:05 AM
Subject: Re: [SensingKit-Android] added permissions for BLUETOOTH and BLUETOOTH_ADMIN (#3)

Hi SusanMany thanks for your contribution. It is correct that the two permissions are required when using the Bluetooth sensor. However it is better if the two permissions are defined in the AndroidManifest.xml of the actual app (that encapsulates the library) instead of the library's one. With that way, apps that utilise SensingKit but do not use that specific sensor would not request access to Bluetooth (e.g. "This app has access to: Bluetooth" when installing the app).Same applies to other permissions like RECORD_AUDIO for the Audio Recorder or the Audio Level sensor.I agree that it is confusing and should be explained in the documentation.Best regards
Minos—
Reply to this email directly or view it on GitHub.

minoskt added a commit that referenced this pull request Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants