lvjincheng 3 years ago
parent
commit
c5618fbc27
1 changed files with 13 additions and 0 deletions
  1. 13 0
      Assets/Plugins/Android/AndroidManifest.xml

+ 13 - 0
Assets/Plugins/Android/AndroidManifest.xml

@@ -53,4 +53,17 @@
   <uses-permission-sdk-23 android:name="android.permission.BLUETOOTH" />
   <uses-permission-sdk-23 android:name="android.permission.ACCESS_COARSE_LOCATION" />
   <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
+  <!-- Needed only if your app looks for Bluetooth devices.
+         You must add an attribute to this permission, or declare the
+         ACCESS_FINE_LOCATION permission, depending on the results when you
+         check location usage in your app. -->
+    <uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
+
+    <!-- Needed only if your app makes the device discoverable to Bluetooth
+         devices. -->
+    <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
+
+    <!-- Needed only if your app communicates with already-paired Bluetooth
+         devices. -->
+    <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
 </manifest>