D
D
dominy2021-08-13 18:50:13
Android
dominy, 2021-08-13 18:50:13

How to use android tv if (api > 22) overlay?

Hello, I am writing my first remote-rice, but for android tv, and the application crashes on

Intent permissionIntent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION);
startActivity(permissionIntent);


The only thing I found was to allow overlays from under adb, but the user is unlikely to want to play with this
adb shell
appops set visnkmr.apps.timenetspeed SYSTEM_ALERT_WINDOW allow
appops set io.github.visnkmr.tvnetspeed SYSTEM_ALERT_WINDOW allow
appops set visnkmr.apps.ytoverlay SYSTEM_ALERT_WINDOW allow

are there other ways to get permissions to the overlay, for example via root...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question