Install android APK via script


How can I install an apk file in unity via script?

I want it for updating my current android project with new version that is downloaded from my local server to my android device.


You cannot install an apk in Unity.

But i guess what you meant here was “if there is any way to update your android app via code, so that it downloads and the apk and installs it on its own.”

I don’t know exactly if there is any way how to do it. There might be.

But why do you need so? Google play store updates the apk (or at least shows the notification if the update is available), so why bother yourself by doing extra work?