6.6 Setting Permission in the App Manifest

When using Connext on an Android platform as an App, you need to grant the proper permissions for networking in your project's AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />

If you want to use Android external storage to load XML-specified QoS settings for your Connext-based Android App, you also need to grant the proper permissions to read the external storage:

  • For Android 12 systems:
    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />

    Note that this may not be enough, and you might still be prompted with a security confirmation on your device or emulator to confirm this permission at runtime. Starting with Android 11, Apps now require running permissions to be granted by the user, including reading a file from the SD card. For this to happen, the App's manifest must have a new permission enabled, named MANAGE_EXTERNAL_STORAGE, and the user must be prompted to grant this permission. However, for development purposes, you can pre-grant this permission for testing. To do so, run this command (all on one line) after the App is installed:

    adb -s <device_id> shell appops set --uid <package_name>   
       MANAGE_EXTERNAL_STORAGE allow

    Refer to Android documentation for more details:

    http://developer.android.com/reference/android/Manifest.permission.html