Play Store. Can’t download app. Error code: 0

by Oleksii, 2017-08-27


This article is written for more-less experienced users.
Be aware, that all kind of modifications might cause issues with your ROM or your data, so that I am not responsible for it and you are doing it on your own risk. In most cases if you understand what you are doing everything should go well, but you are warned about possible harm.

Problem description

After latest update from Google for Google Play Store, I faced the problem, when some application is not possible to install from store, while another one can be installed without any issues. All attempts to download failed applications using either cellular network or Wifi failed.

The thing is that I use custom cyanogenmod ROM with latest installed kernel. Initial assumption was that my phone is not certified or I have lost certification because of changing original HTC ROM to a custom one. But after I spend some time on googling, I figured out that updated version of Play Store also checks file system permissions. So theoretically message «Can’t download app. Error code: 0» could happen either because of installed «SuperSU» application or because of TWRP, which set up wrong file permissions after custom ROM has flushed.

Going forward, I would say, that this assumption was a correct one.

Internet recommends «How to fix the problem»?

There are a bunch of advices in the Internet about possible ways to fix this problem:

  • Some resources propose roll back all updates for Google Play Store and it should work again
  • Some resources recommend to get rid of root;
  • Some resources recommend to try to use power safe mode (looks like in power safe mode OS kills not critical services and, probably, one of those not important services might be this «checker»);

While some of propositions must work, not always they are really usefull.

roll back all updates for Google Play Store

As you can imagine, it must work in case when you have installed update. But this solution will not work if you have flushed latest version of app using GAPPs package. Also, having old version of application usually is not the best ever idea.

try to use power safe mode

For me this solution did not work, as well, I would say even if it would work, it’s not an option as soon as it requires you to remember all the time to enable powersafe mode before attempts to install smth from app store.

How did I fix this problem?

As a first step, I removed all the caches and all stored data for Google Play Store (Settings->Apps->Google Play Store). Then I reloaded device in «Recovery Mode».

In recovery mode I have connected device to laptop and used adb to connect my device.
I installed adb using AndroidStudio IDE. In OSX, if you have installed AndroidStudio, you can find many useful tools (like «adb«, «fastboot«) in ~/Library/Android/sdk/platform-tools

So what’s left — is just to change permissions:

  1. $ cd ~/Library/Android/sdk/platform-tools
  2. $ ./adb shell
  3. ~ #
  4. ~ # chown -R media_rw:media_rw /data/media/
  5. ~ # find /data/media/ -type d -exec chmod 775 {} ';'
  6. ~ # find /data/media/ -type f -exec chmod 664 {} ';'
$ cd ~/Library/Android/sdk/platform-tools
$ ./adb shell
~ #
~ # chown -R media_rw:media_rw /data/media/
~ # find /data/media/ -type d -exec chmod 775 {} ';'
~ # find /data/media/ -type f -exec chmod 664 {} ';'

And reboot device after it.

So that after unrooting device and repairing back permissions, I managed to install all the applications from Google Play Store, using latest version of Google Play Store application without any errors.

It's only fair to share...Share on Facebook
Tweet about this on Twitter
Email this to someone
Share on LinkedIn

No Comments

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" extra="">


1 × 1 =