Android apps INSTALL_PACKAGES and apps not supporting PlayStore

I am preparing my application for the game store and plan to deliver one component as a separate installation package (since my client cannot restore the source code, but the application is signed with its key). I thought of two ways of doing this. My need is this: users with disabled "unknown sources" should be able to install a second application. And: A user should never be redirected to the Google Play store.

Both apps are free.

  • I was looking for solutions that would allow me to download an additional APK from Google Play and simply present the installation screen to the user to complete the installation. I would like to get a solution in which I sent the intention to the PlayStore application, and it displayed the application name, permissions and the install button. I did not find anything. Is anybody here?

  • I thought I could pack this additional application into the assets of my application. I will need to write it to the file system and send the intention to install the package to the system. Problem. The application was not downloaded from the Google game and with the fact that the source is unknown. If I used the PackageManager and allowed it to install the APK, does INSTALL_PACKAGES allow my application to install this second application on the user device (since the user has already accepted that my application can install packages)?

I hope someone can help. And thank you in advance.

+2
source share
1 answer

: " " . : Google Play.

, Android / Play Store. Play Store - Play Store.

, PlayStore, , .

. market:// Uri, Play , , .

,

, (, ), , INSTALL_PACKAGES . SDK- ACTION_VIEW ACTION_INSTALL_PACKAGE Intent, , , " ".

+3

Source: https://habr.com/ru/post/1669573/


All Articles