|
1 | 1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | | -<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
| 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:tools="http://schemas.android.com/tools"> |
3 | 4 | <application |
4 | 5 | android:allowBackup="true" |
5 | 6 | android:icon="@mipmap/ic_launcher" |
|
29 | 30 | </provider> |
30 | 31 | </application> |
31 | 32 |
|
| 33 | + <!-- BLE Hardware Features --> |
| 34 | + <!-- Restricts app visibility in Google Play Store to devices with BLE support --> |
| 35 | + <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" /> |
| 36 | + |
32 | 37 | <!-- Permissions --> |
| 38 | + <uses-permission android:name="android.permission.INTERNET" /> |
| 39 | + |
| 40 | + <!-- Location permissions for BLE scanning on Android < 12 only --> |
33 | 41 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="30" /> |
34 | 42 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30" /> |
35 | | - <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" /> |
36 | 43 |
|
37 | | - <!-- BLUETOOTH_CONNECT permission is required from Android 12 to connect to a Bluetooth LE device --> |
| 44 | + <!-- BLE permissions for Android 12+ (API 31+) --> |
| 45 | + <!-- neverForLocation flag indicates we don't use BLE scan results for physical location --> |
| 46 | + <uses-permission android:name="android.permission.BLUETOOTH_SCAN" |
| 47 | + android:usesPermissionFlags="neverForLocation" |
| 48 | + tools:targetApi="s" /> |
38 | 49 | <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> |
39 | 50 |
|
40 | | - <!-- ACCESS_BACKGROUND_LOCATION permission is required required to trigger a successful DFU whilst the device screen is turned off: https://github.com/NordicSemiconductor/Android-DFU-Library --> |
41 | | - <!-- Removed to avoid problems with new Google Play approval process --> |
42 | | - <!-- <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> --> |
43 | | - |
44 | | - <!-- FOREGROUND_SERVICE permission is required required: https://github.com/NordicSemiconductor/Android-DFU-Library/issues/321 --> |
| 51 | + <!-- Foreground service permission for Nordic DFU library --> |
| 52 | + <!-- Note: Android 14+ (API 34+) requires specifying a foreground service type if using foreground services --> |
45 | 53 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
46 | | - |
47 | | - <uses-permission android:name="android.permission.INTERNET" /> |
48 | 54 | </manifest> |
0 commit comments