An activity that checks the setup of the app before opening the real TomTom Digital Cockpit activity. The checks include:
Checking if all requested permissions are granted, and requesting them if not granted.
Checking if the app is the default dialer app, and requesting it when it is not.
Once the aforementioned checks pass, SetupActivity starts the application's main activity specified as the
com.tomtom.ivi.platform.debugpermissions.META_DATA_KEY_MAIN_ACTIVITY_CLASS_NAME metadata entry.
The activity needs to know the name of the application. The name has to be provided using application metadata using
com.tomtom.ivi.platform.debugpermissions.META_DATA_KEY_APPLICATION_NAME_RES_ID as a key. For example:
End-users should not need to grant permissions or confirm requests, as the app will run as a system app in the vehicle. However, during development we commonly do not run the app as a system app, in which case this activity helps the user to get into the app easily and prevents the need for troubleshooting when something isn't working, simply because the user forgot to grant a permission.