-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Moved permissions out of libs manifest file - documented the info in readme
- Loading branch information
Showing
3 changed files
with
68 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,25 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.welie.blessed"> | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.welie.blessed"> | ||
|
||
<!-- Link: https://developer.android.com/guide/topics/connectivity/bluetooth/permissions --> | ||
<!-- Request legacy Bluetooth permissions on older devices. --> | ||
<uses-permission | ||
android:name="android.permission.BLUETOOTH" | ||
android:maxSdkVersion="30" /> | ||
<uses-permission | ||
android:name="android.permission.BLUETOOTH_ADMIN" | ||
android:maxSdkVersion="30" /> | ||
|
||
<!-- Needed only if code looks for Bluetooth devices. | ||
<!-- Needed only if code looks for Bluetooth devices. | ||
Since the code doesn't use Bluetooth scan results to derive physical | ||
location information, it is strongly asserted that the code | ||
doesn't derive physical location. | ||
Link: https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#assert-never-for-location | ||
Link: | ||
https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#assert-never-for-location | ||
--> | ||
<uses-permission | ||
android:name="android.permission.BLUETOOTH_SCAN" | ||
android:usesPermissionFlags="neverForLocation" | ||
tools:targetApi="s" /> | ||
<uses-permission | ||
android:name="android.permission.BLUETOOTH_SCAN" | ||
android:usesPermissionFlags="neverForLocation" | ||
tools:targetApi="s" /> | ||
|
||
<!-- Needed only if code communicates with already-paired Bluetooth | ||
<!-- Needed only if code communicates with already-paired Bluetooth | ||
devices. --> | ||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> | ||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> | ||
|
||
<!-- Needed only if code makes the device discoverable to Bluetooth | ||
<!-- Needed only if code makes the device discoverable to Bluetooth | ||
devices. --> | ||
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" /> | ||
|
||
<!-- Needed to target Android 11 and lower --> | ||
<!-- Link: https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#declare-android11-or-lower--> | ||
<uses-permission | ||
android:name="android.permission.ACCESS_FINE_LOCATION" | ||
android:maxSdkVersion="30" /> | ||
<uses-permission | ||
android:name="android.permission.ACCESS_COARSE_LOCATION" | ||
android:maxSdkVersion="30" /> | ||
|
||
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" /> | ||
</manifest> | ||
|