2018-07-13, 22:51
I use:
I've looked at this and I believe with Android 8 permission restrictions there are two options:
1) A change in Kodi that enables the correct permissions (so Kodi's python interpreter has permissions to make the calls just as it was before) and/or a change in StartAndroidActivity that allows for all the extras in the intents required for launching various apps
2) Interfacing with android ADB somehow to pass the calls from Kodi/python to Android. This isn't ideal because the user would have to enable ADB in their OS in order for this to work.
python:
current_OS = xbmc.getInfoLabel('System.OSVersionInfo')
xbmc.log(msg='IAGL: OS found - %(current_OS)s' % {'current_OS': current_OS}, level=xbmc.LOGDEBUG)
if 'OS X' in current_OS:
self.handle.setSetting(id='iagl_external_user_external_env',value='OSX')
xbmc.log(msg='IAGL: External Launch Environment auto selected to OSX', level=xbmc.LOGDEBUG)
elif 'Windows' in current_OS:
self.handle.setSetting(id='iagl_external_user_external_env',value='Windows')
xbmc.log(msg='IAGL: External Launch Environment auto selected to Windows', level=xbmc.LOGDEBUG)
elif 'Android' in current_OS:
self.handle.setSetting(id='iagl_external_user_external_env',value='Android')
xbmc.log(msg='IAGL: External Launch Environment auto selected to Windows', level=xbmc.LOGDEBUG)
elif 'Linux' in current_OS:
self.handle.setSetting(id='iagl_external_user_external_env',value='Linux/Kodibuntu')
xbmc.log(msg='IAGL: External Launch Environment auto selected to Linux/Kodibuntu', level=xbmc.LOGDEBUG)
else:
xbmc.log(msg='IAGL: External Launch Environment is unknown', level=xbmc.LOGDEBUG)
I've looked at this and I believe with Android 8 permission restrictions there are two options:
1) A change in Kodi that enables the correct permissions (so Kodi's python interpreter has permissions to make the calls just as it was before) and/or a change in StartAndroidActivity that allows for all the extras in the intents required for launching various apps
2) Interfacing with android ADB somehow to pass the calls from Kodi/python to Android. This isn't ideal because the user would have to enable ADB in their OS in order for this to work.