install apk file from godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DexterFstone

Hi, it is possible to add apk file to “res” and install it when the game is started (if it is not installed before), in the background (hiding install progress)?

Your question is very shady… Possible…but shady

Wakatta | 2021-11-30 12:10

So how to do that?

DexterFstone | 2021-11-30 12:22

You should not try to manually install an APK unless you are specifically trying to distribute software. What are you really trying to achieve?

vetu11 | 2021-11-30 12:26

Complicated, just how can I do such a thing?

DexterFstone | 2021-11-30 12:31

Additionally newer versions of android and Google’s Play Protect requires that you identify an app’s installation source prior to the installation so on such devices the end user still has to verify that slipstream installation

Wakatta | 2021-11-30 12:31

I don’t using google play store

DexterFstone | 2021-11-30 12:32

I cannot think of a legitimate reason why you would want to do that, what are you actually trying to achieve?

Gluon | 2021-12-01 22:21

Folks, before asking WHY to OP, please, limit yourselves to responding with technical data. This is a technical forum. It doesn’t matter if OP wants to distribute COVID or update their game. But that’s OP business, not yours.

I’m distributing an online beta game, and needs to autoupdate. This is not easily achievable. You could distribute them via google play, but that’s miles away from being easy, especially when you require users to update daily.

PKG updating can be a solution, but c# projects won’t be able to update that easily.

I’m requiring the same help because I want to autoupdate my online videogame to peers playing in the beta version. For now, the most comfortable idea (which is not best) is to send users to the browser where they would download the APK

For once I will defend the users from 3 years ago, because you should never, ever just install anything on a user’s phone without them knowing about it. Since this is an archive post, I’m not sure anyone from before will get notified of this, but if you made a game that you don’t want to put on the play store, then simply implement a way to check for a newer version through an API you control and ask your players to download your latest APK if a new version is detected. Lots of indie games that release on Android do this.

Android is a lot more locked down than it was 10 or so years ago, and if you are serious about getting a game on this platform, you should invest time into getting your game on the Play store, and if your game is just a Beta, then beta testers don’t usually mind manually downloading and installing your game, at least from my experience.