APK install from python script
#1
hi.
is there any way i can install an APK in android throw kodi ADDON?

thanks for your help.
Reply
#2
You can do it using this code:

Code:
apkfile = "path/yourapp.apk"
xbmc.executebuiltin('StartAndroidActivity("","android.intent.action.VIEW","application/vnd.android.package-archive","file:'+apkfile+'")')

You will need to implement the rest of the code to download the apk from the internet if you need that.
Reply
#3
Thanks i will try that
Reply
#4
Code:
apkfile = "path/yourapp.apk"
xbmc.executebuiltin('StartAndroidActivity("","android.intent.action.VIEW","application/vnd.android.package-archive","file:'+apkfile+'")')


I have tried it, it runs well on latest version kodi krypton
Reply
#5
This doesn't seem to work on the FireTV.  It tries to install but I get "Parse Error (There was a problem parsing the package.)"

Anyone had any success with this on the FireTV?

UPDATE: Ugh... I was immediately deleting the APK file after issuing the 'xbmc.executebuiltin()'. I assumed it was waiting for the command to return.  Nevermind.  Smile  Thanks!!!
Reply
#6
Hi, is there a way to uninstall an apk through kodi ? 
or atleast execute a request to uninstall a speciifc apk file ?
Reply
#7
(2017-09-26, 20:16)Ebs_1 Wrote: Thanks i will try that

this doesnt seem to work with 18 unless box is rooted.
worked great for 17 and below on any box
Reply

Logout Mark Read Team Forum Stats Members Help
APK install from python script0