|
33 | 33 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
34 | 34 | xmlns:tools="http://schemas.android.com/tools"> |
35 | 35 | <!-- |
36 | | - Bluetooth permission is required on Android 4.3 - 11 in order to communicate with |
37 | | - Bluetooth LE devices. |
38 | | - --> |
39 | | - <uses-permission |
40 | | - android:name="android.permission.BLUETOOTH" |
41 | | - android:maxSdkVersion="30"/> |
42 | | - <!-- |
43 | | - Bluetooth Admin permission is required on Android 4.3 - 11 in order to scan for |
44 | | - Bluetooth LE devices. |
45 | | - --> |
46 | | - <uses-permission |
47 | | - android:name="android.permission.BLUETOOTH_ADMIN" |
48 | | - android:maxSdkVersion="30"/> |
49 | | - <!-- |
50 | | - Location permission is required from Android 6 to 11 to be able to scan for advertising |
51 | | - Bluetooth LE devices. Some BLE devices, called beacons, may be used to position the phone. |
52 | | - This is to ensure that the user agrees to do so. |
| 36 | + Location permission, it will replace any existing location permission in the merged manifest. |
53 | 37 | This app does not use this location information in any way. |
54 | 38 | Since Android 10 ACCESS_FINE_LOCATION is required and for that, the COARSE one also needs |
55 | 39 | to be specified. |
56 | 40 | --> |
57 | 41 | <uses-permission |
58 | 42 | android:name="android.permission.ACCESS_COARSE_LOCATION" |
59 | | - android:maxSdkVersion="30"/> |
| 43 | + tools:node="replace" /> |
60 | 44 | <uses-permission |
61 | 45 | android:name="android.permission.ACCESS_FINE_LOCATION" |
62 | | - android:maxSdkVersion="30"/> |
63 | | - <!-- |
64 | | - On Android 12 new set of Bluetooth permissions were added. BLUETOOTH_SCAN permission is |
65 | | - needed to scan for Bluetooth LE devices. The "never for location" flag is set, as we are not |
66 | | - interested in finding the user location, and we are OK with the fact, that beacons info |
67 | | - will be removed from the scan results. |
68 | | - --> |
69 | | - <uses-permission |
70 | | - android:name="android.permission.BLUETOOTH_SCAN" |
71 | | - android:usesPermissionFlags="neverForLocation" |
72 | | - tools:targetApi="s" /> |
73 | | - <!-- |
74 | | - This permission is required in order to connect to a Bluetooth LE device on Android 12 |
75 | | - onwards. |
76 | | - --> |
77 | | - <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> |
| 46 | + tools:node="replace" /> |
78 | 47 |
|
79 | 48 | <application |
80 | 49 | android:allowBackup="true" |
|
0 commit comments