# Permission Overview

The library requires at least the following permissions to access MOVE SDK services.

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

Depending on the used services, different permissions are required. The following table gives an overview what's required:

<table data-header-hidden><thead><tr><th width="125.68854107118219"></th><th width="130"></th><th width="233.61772853185596">Permissions</th><th></th></tr></thead><tbody><tr><td></td><td></td><td></td><td></td></tr><tr><td><strong>Mode of Transport</strong></td><td>Driving</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION">ACCESS_FINE_LOCATION</a></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION">ACTIVITY_RECOGNITION</a> [2]</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION">ACCESS_BACKGROUND_LOCATION</a> [5]</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#POST_NOTIFICATIONS">POST_NOTIFICATIONS</a> [4]</td></tr><tr><td></td><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_CONNECT">BLUETOOTH_CONNECT</a></td></tr><tr><td></td><td></td><td></td><td>GooglePlayLocationAccuracy [1]</td></tr><tr><td></td><td>Cycling</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION">ACCESS_FINE_LOCATION</a></td><td>GooglePlayLocationAccuracy [1]</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION">ACCESS_BACKGROUND_LOCATION</a> [5]</td><td></td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION">ACTIVITY_RECOGNITION</a></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#POST_NOTIFICATIONS">POST_NOTIFICATIONS</a> [4]</td></tr><tr><td></td><td>Walking</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION">ACTIVITY_RECOGNITION</a></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#POST_NOTIFICATIONS">POST_NOTIFICATIONS</a> [4]</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION">ACCESS_BACKGROUND_LOCATION</a> [5]</td><td></td></tr><tr><td><strong>Driving Services</strong></td><td>Distraction-Free-Driving (DFD)</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION">ACCESS_FINE_LOCATION</a></td><td></td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE">READ_PHONE_STATE</a></td><td></td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#SYSTEM_ALERT_WINDOW">SYSTEM_ALERT_WINDOW</a> [6]</td><td></td></tr><tr><td></td><td>Driving behaviour events (DBE)</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION">ACCESS_FINE_LOCATION</a></td><td></td></tr><tr><td><strong>Other services</strong></td><td>Points of Interest</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION">ACCESS_FINE_LOCATION</a></td><td></td></tr><tr><td></td><td></td><td>GooglePlayLocationAccuracy [1]</td><td></td></tr><tr><td></td><td>Public Transport</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION">ACCESS_FINE_LOCATION</a></td><td></td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION">ACTIVITY_RECOGNITION</a></td><td></td></tr><tr><td></td><td></td><td>GooglePlayLocationAccuracy [1]</td><td></td></tr><tr><td></td><td>Automatic Impact Detection</td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION">ACCESS_FINE_LOCATION</a></td><td>GooglePlayLocationAccuracy [1]</td></tr><tr><td></td><td>Assistance Call</td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION">ACCESS_FINE_LOCATION</a> [3]</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#FOREGROUND_SERVICE_LOCATION">FOREGROUND_SERVICE_LOCATION</a></td><td>Allows a regular application to use <a href="https://developer.android.com/reference/android/app/Service#startForeground(int,%20android.app.Notification)"><code>Service.startForeground</code></a> with the type "location".</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#REQUEST_IGNORE_BATTERY_OPTIMIZATIONS">REQUEST_IGNORE_BATTERY_OPTIMIZATIONS</a></td><td>Permission an application must hold in order to use <a href="https://developer.android.com/reference/android/provider/Settings#ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"><code>Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS</code></a>.</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH">BLUETOOTH</a></td><td>Phone call/speaker switch recognition.</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_CONNECT">BLUETOOTH_CONNECT</a></td><td>Needed only for communicates with already-paired Bluetooth devices. Android 12</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_SCAN">BLUETOOTH_SCAN</a></td><td>Needed to scan devices such as BLE.</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_ADMIN">BLUETOOTH_ADMIN</a></td><td>Needed to scan devices on Android 11 and lower.</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/Manifest.permission#CHANGE_NETWORK_STATE">CHANGE_NETWORK_STATE</a></td><td>To check internet connection in background.</td></tr><tr><td></td><td>Health</td><td><a href="https://developer.android.com/reference/android/health/connect/HealthPermissions#READ_STEPS">READ_STEPS</a></td><td>Health Connect</td></tr><tr><td></td><td></td><td><a href="https://developer.android.com/reference/android/health/connect/HealthPermissions#READ_HEALTH_DATA_IN_BACKGROUND">READ_HEALTH_DATA_IN_BACKGROUND</a></td><td>Health Connect</td></tr></tbody></table>

{% hint style="info" %}
\[1] GooglePlayLocationAccuracy = isNetworkLocationPresent + isNetworkLocationUsable

\[2] improves trip recognition and classification considerably

\[3] required permission deprecated with v2.4.0+

\[4] see [POST\_NOTIFICATION](/move-platform/sdk/appendix/android/notification-managment.md) Runtime Permission

\[5] Since SDK 2.6: if *backgroundLocationPermissionMandatory* in [MoveOptions](/move-platform/sdk/models/moveoptions.md) is **true** the permission [ACCESS\_BACKGROUND\_LOCATION](https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) is mandatory else this permission is optional.

\[6] Since SDK 2.6.9: if *overlayPermissionMandatory* in [MoveOptions](/move-platform/sdk/models/moveoptions.md) is **false** the permission [SYSTEM\_ALERT\_WINDOW](https://developer.android.com/reference/android/Manifest.permission#SYSTEM_ALERT_WINDOW) is **NOT** mandatory anymore. **Attention: in this case the device must be equipped with a gyroscope!**
{% endhint %}

{% hint style="warning" %}
Grant the [Background Location](/move-platform/sdk/appendix/android/permission-handling/runtime-permissions.md#background-location) permission is strongly recommended. Similarly for the optional Activity Recognition permission (Driving) - make sure to request this from the user, otherwise it will degrade the quality of the service.
{% endhint %}

More Information regarding the Android system permissions can be found here: <https://developer.android.com/reference/android/Manifest.permission>

The required permissions must be granted before the MOVE SDK service can be used. If any single required permission is missing, the entire MOVE SDK stops working. In case of missing permissions this will be presented by [MoveServiceFailure](/move-platform/sdk/models/moveservicefailure.md) and/or by [MoveServiceWarning](/move-platform/sdk/models/moveservicewarning.md).

For more information about "dangerous permissions" visit the [official developer page](https://developer.android.com/guide/topics/permissions/overview).

In fact the MOVE SDK is not aware of permission changes, the developer can tell the MOVE SDK that the error is resolved.

```kotlin
MoveSdk moveSdk = MoveSdk.get();
if (moveSdk != null) {
    List<MoveServiceFailure> errors = moveSdk.getServiceErrors();
    if (!errors.isEmpty()) {
        moveSdk.resolveError();
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.movesdk.com/move-platform/sdk/appendix/android/permission-handling/permission-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
