How To Update Android Apk Outside The Playstore

How to update android apk outside the playstore

Let’s learn how to update android apk outside the playstore in this short post! Perhaps you have a scenario where you don’t want to publish your app in the playstore. The reason behind your decision could be to have more control over who installs the app or even the size of the file itself among other things.

Without publishing your apps through the playstore however, you are left with the responsibility of updating your own apps, keeping track of total downloads, managing the app from start to finish, handling payments (for paid-for apps) among other good things that come with Google Playstore! In this post, I will show you how to update your apps outside the playstore system. That means the updates are pushed automatically to the users who currently have the app installed! Let us get started, shall we?

How to update android apk outside the playstore – Steps

  • You first upload your new apk to your own server somewhere in the north pole or your basement (if you still live with your parents and they have allowed you to have your server there)
  • Make an HTTP GET request to a URL that will return the data back to you for instance by visiting

Show me the codez son…

For demonstrative purposes ONLY, I am going to use an AsyncTask in this post to show you how to update android apk outside the playstore. There are better ways to perform network operations in android like using Retrofit – my favorite library FYI! Let us take a look here:

How to actually use this code

Once you have your AsyncTask cooked up and ready to serve, you can easily execute it like this:

That is all you need to update your apk outside the playstore. Remember, you have to implement a way to check that the version codes differ before running updates. That means, you could check a value that gets updated whenever a new apk is uploaded remotely on your server to see if the version of the app has been updated, then make the second HTTP request to pull down the new apk file!

If you found this post helpful, please consider sharing with others using the buttons below and subscribing for more posts on different topics! Got questions? Comments? Suggestions? Let me know below!

Thanks again for reading my post – always stay awesome!


Written By Elisha Chirchir

Elisha Chirchir is a software developer. He is also the founder of Simple Developer and co-founder of Instinctive Software Solutions. On any given day, he works on both Android and Web Development. During his 'free time', he offers training to those interested in learning how to code in php, java, python, javaScript etc. You can easily find him on StackOverflow Android chatroom or on Twitter @Eenvincible

5 Comments on “How To Update Android Apk Outside The Playstore

  1. peter Reply

    June 4, 2016 at 3:31

    great tips!! added to the bookmarks of eternity

  2. mark anthony elbambo Reply

    January 27, 2017 at 11:02

    This only work on a rooted/system apps right? Is it possible to also do in a regular app?

    • Elisha Chirchir Reply

      January 30, 2017 at 7:46

      It works on all devices – both rooted and non-rooted!

  3. Amit Reply

    February 21, 2017 at 6:44

    Not working . Getting error as::

    I/onPostExecute: Error running exec(). Command: [su] Working Directory: null Environment: null

  4. Koundalmadan Reply

    April 10, 2017 at 7:14


  5. Koundalmadan Reply

    April 10, 2017 at 7:15

    Yh version bhut hi achha hai

Leave a Reply

Your email address will not be published. Required fields are marked *