Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android TV OS 14 cannot enable accessibility service #1306

Open
4 tasks
EricChan1989 opened this issue Sep 27, 2024 · 5 comments
Open
4 tasks

Android TV OS 14 cannot enable accessibility service #1306

EricChan1989 opened this issue Sep 27, 2024 · 5 comments
Assignees
Labels
bug Something isn't working needs triage tv Issue specifc to Android TV

Comments

@EricChan1989
Copy link

Developer TODO (don't remove)

  • create new branch. put issue number at start of name if not a very quick fix.
  • write tests. put issue number in comment
  • update documentation
  • merge and delete branch (don't squash because want commit history to see why I made changes)

Discord message link/email recipient [email protected]

Describe the bug
This may not be judged as a bug, the better description is an issue.
On Android TV OS 14, the newly released google tv streamer, there is no way to enable the related accessibility service.
If I try to enable it, it will be disabled immediately automatically.
I tried to use adb to grant the permission using the commands below, but it simply does not working.

adb shell pm grant io.github.sds100.keymapper android.permission.WRITE_SECURE_SETTINGS
adb shell settings put secure enabled_accessibility_services io.github.sds100.keymapper/io.github.sds100.keymapper.service.MyAccessibilityService

May I know if there is a way to make it work on this new TV OS?

Thanks.

To Reproduce
Steps to reproduce the behavior: try to enable the accessibility service from settings.

Upload a backup of your keymaps. Follow the guide here

Expected behavior
The service can be enabled.

Screenshots
I don't think there is need to have a screenshot for this, and it is hard to take a screenshot on the TV os.

Smartphone (please complete the following information):

  • Device: Google TV Streamer
  • Android version: Android TV OS 14

Additional context
N/A

@EricChan1989 EricChan1989 added the bug Something isn't working label Sep 27, 2024
@EricChan1989
Copy link
Author

By the way, it seems this new OS only allow the apps installed from play store to enable accessibility services. Is it possible that you can make this app available in the TV play store? It is only available in the phone's play store at this moment. Thanks

@sds100 sds100 added the tv Issue specifc to Android TV label Sep 27, 2024
@sds100
Copy link
Collaborator

sds100 commented Sep 27, 2024

Oh right, thats a weird restriction. Are there any ADB commands to override the whitelist? See #488. I haven't released it to TV because there are stricter requirements on optimizing the UI for TVs, the app isnt fully navigable either?

@EricChan1989
Copy link
Author

Oh right, thats a weird restriction. Are there any ADB commands to override the whitelist? See #488. I haven't released it to TV because there are stricter requirements on optimizing the UI for TVs, the app isnt fully navigable either?

I personally do not know if there is truly a whitelist or something. Maybe there is a variable in the system related to all the apps to mark them as installed from play store, built in or side loaded etc?
If there is no way to enable the service via adb, maybe finally we have to rely on you to release it to the TV os as new os versions are always thr trend. The app itself works very well on TV os, even if there are some clicking issues to specified buttons, we can plug in a mouse to deal with this, very easy. We do not need to run this app every day anyway... Thanks

@EricChan1989
Copy link
Author

i found a workaround on this!!!
Not to install the apk directly from any file explorer etc (via another app), just install it via adb install command.
And then android tv os 14 may judge this as a safe way to install it, then I can enable accessibility service for it!!!

@sds100
Copy link
Collaborator

sds100 commented Sep 28, 2024

Oh wow, that's weird 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage tv Issue specifc to Android TV
Projects
None yet
Development

No branches or pull requests

2 participants