plugin.program.iagl icon indicating copy to clipboard operation
plugin.program.iagl copied to clipboard

Android OS 11+ Launching Broken

Open zach-morris opened this issue 2 years ago • 3 comments

Android OS versions 11+ have changed their permissions to be even more restrictive than they were in the past.

When launching a game, the launch will fail, and the log will show something to the effect of:

ActivityTaskManager: Permission Denial: package=com.android.shell does not belong to uid=xxx

It is the same issue other frontend launchers had with the OS, ex: https://github.com/mmatyas/pegasus-frontend/issues/766

However, in IAGL's case, I'm restricted to whatever I can do only within Python. At the moment, there's no workaround that I'm aware of. Something would have to change either in the OS or in Kodi to get launching working again for Android 11+

zach-morris avatar May 07 '22 20:05 zach-morris

Binaries need editing, and launch from neutral location. Getting closer with changes being made, will share when more progress is made. Cheers.

dataghost2014 avatar May 10 '22 19:05 dataghost2014

@dataghost2014 Might extending the StartAndroidActivity method help in this case? It looks like that builtin method is working with launching android apps, but it lacks enough properties needed to do correct app launching in launcher addons like IAGL. See the request on kodi forum for more details: https://forum.kodi.tv/showthread.php?tid=367878

I'll follow this issue too if any updates available.

chrisism avatar May 12 '22 09:05 chrisism

Some work is being done in Kodi, which looks promising. Unsure how it will interact with permissions though: https://github.com/xbmc/xbmc/pull/21652

zach-morris avatar Jul 13 '22 02:07 zach-morris

Fixed in 3.0.7 - the wiki will have to be updated but there are some caveats. Main one being that the files need to be downloaded to a shared directory (one that both apps can see given their permissions). The wizard is updated to account for this. Let me know if you run into any issues.

zach-morris avatar Mar 17 '23 04:03 zach-morris