Android Sdk Permission Requirements
Understand Android SDK permission requirements for Vivox.
Read time 1 minuteLast updated 7 months ago
The following permission requirements apply when working with the Vivox Android SDK:
-
Required
-
- Allows communication with Vivox servers
android.permission.INTERNET -
- Allows microphone access
android.permission.RECORD_AUDIOFor more information, refer to the Android developer documentation on requesting app permissions.
-
-
Recommended
-
android.permission.MODIFY_AUDIO_SETTINGS -
- Allows access to network information
android.permission.ACCESS_NETWORK_STATE -
- Allows access to Wi-Fi information
android.permission.ACCESS_WIFI_STATE -
- Allows access to Bluetooth devices on Android versions earlier than 12
android.permission.BLUETOOTH -
- Allows access to Bluetooth devices on Android version 12 and later
android.permission.BLUETOOTH_CONNECT
-
These permissions will be given by default to your app after it is compiled with the Vivox SDK.
To remove optional permissions that you don't want in your application, you need to have a custom AndroidManifest.xml file for your application. To create this file, complete the following steps:
-
Open your project in the Unity Editor.
-
Select Edit > Project Settings.
-
On the Player tab, open the Android section.
-
In the Publishing Settings section, enable the Build > Custom Main Manifest checkbox.The file will generate in your assets, and its path will display after the checkbox.
When you have a custom file, you can add the permission tag to it and specify to ensure that, for example, is not included:
AndroidManifest.xmltools:node”remove”android.permission.BLUETOOTH_CONNECT<uses-permission android:name="android.permission.BLUETOOTH" tools:node="remove" />