-
Notifications
You must be signed in to change notification settings - Fork 309
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
44 lines (37 loc) · 2.18 KB
/
Copy pathAndroidManifest.xml
File metadata and controls
44 lines (37 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!--
Permissions that may be needed by the Nearby Connections API; these are merged into the
manifest of apps using this library.
Note that not all permissions may be required. Depending on a device's Android SDK version and
your app's needs, only some of them may actually be necessary. For example, location
permissions are typically not required for Nearby Connections on recent Android releases.
To remove them as needed, use [merge rule markers](https://developer.android.com/build/manage-manifests)
in your app's manifest, for example:
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"
tools:node="remove" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"
tools:node="remove" />
Note that maxSdkVersion restrictions should not be added to the Wi-Fi or Bluetooth
permissions; the Nearby API appears to require them on all SDK versions.
Also note that your app must request any dangerous (runtime) permissions at runtime when
needed.
-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"
android:usesPermissionFlags="neverForLocation"
tools:targetApi="s" />
<uses-permission android:name="android.permission.NEARBY_WIFI_DEVICES"
android:usesPermissionFlags="neverForLocation"
tools:targetApi="tiramisu" />
</manifest>