Cannot open System Accessibility settings screen programmatically on FireTv

Hello everyone,

We have a requirement to redirect the user from our TV application to the System Accessibility screen upon pressing a button. We tried to do this like on any other AndroidTV device by starting an Intent with the following details:

        val intent = Intent("android.settings.ACCESSIBILITY_SETTINGS")
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        startActivity(intent)

However for this we are getting the following exception (while testing on FireTv OS6)

Caused by: java.lang.SecurityException: Permission Denial: starting Intent { act=android.settings.ACCESSIBILITY_SETTINGS flg=0x10000000 cmp=com.amazon.tv.settings.v2/.tv.accessibility.AccessibilityActivity } from 
ProcessRecord{aa8d344 1581:com.example.myapplication.androidTv.firetv/u0a208} (pid=1581, uid=10208) 
requires com.amazon.tv.permission.LAUNCHER_SETTINGS

Analyzing the device’s settings apk we noticed that all the activities in there have the permission requirement

<activity
            android:theme="@ref/0x7f110074"
            android:label="@ref/0x7f1002b8"
            android:name="com.amazon.tv.settings.v2.tv.accessibility.AccessibilityActivity"
            android:permission="com.amazon.tv.permission.LAUNCHER_SETTINGS"
            android:taskAffinity="com.amazon.tv.settings.v2"
            android:excludeFromRecents="true"
            android:launchMode="1"
            android:screenOrientation="0"
            android:configChanges="0x40000ffb">

Is there any way for a regular app to be able to open the Accessibility screen or is this reserved to the FireTv Launcher alone?

Thanks,
Florian

Hi Florian,

Thanks for posting. We have messaged the appropriate team for further investigation and will let you know once we receive an update.