File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 22<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : tools =" http://schemas.android.com/tools" >
44
5- <uses-permission android : name =" android.permission.BLUETOOTH" />
6- <uses-permission android : name =" android.permission.BLUETOOTH_ADMIN" />
7- <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
5+ <!-- Android 12+ (API 31+) -->
6+ <uses-permission android : name =" android.permission.BLUETOOTH_SCAN"
7+ android : usesPermissionFlags =" neverForLocation" />
8+ <uses-permission android : name =" android.permission.BLUETOOTH_CONNECT" />
9+ <uses-permission android : name =" android.permission.BLUETOOTH_ADVERTISE" />
10+
11+ <!-- Legacy support for Android 11 and below -->
12+ <uses-permission android : name =" android.permission.BLUETOOTH"
13+ android : maxSdkVersion =" 30" />
14+ <uses-permission android : name =" android.permission.BLUETOOTH_ADMIN"
15+ android : maxSdkVersion =" 30" />
16+ <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION"
17+ android : maxSdkVersion =" 30" />
18+
19+ <uses-feature android : name =" android.hardware.bluetooth_le" android : required =" true" />
820
921 <application
1022 android : name =" .Application"
You can’t perform that action at this time.
0 commit comments