[Guide][Help] Play Store error -24: What is it and how to solve it

Search This thread

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,493
7,731
23
Salford, Greater Manchester, UK
quinny898.co.uk
This is a common error that occurs with the Play Store sometimes after flashing ROMs without wiping data, or with an incomplete un-installation (apk corruption, etc.)

What is it?​
Basically, there is some app data left behind from a previous installation of the app. The Play Store sees that data when trying to install the app and throws a -24 error, because it doesn't know what to do with it.

So, how do you solve it?​
Simple to fix:
(I'm assuming you're rooted, chances are you are if you get this error)
- YOU'LL LOSE YOUR DATA FOR THAT APP (You would have done anyway, if it was uninstalled properly) -
1.) Using a root file manager, go to /data/data
2.) Find the package name of the app you're wanting to install
(Don't know the package name? Find the app you're wanting to install on the Play Store online and it's in the URL)
3.) Delete that folder. All of it.
4.) Try to install your app again, it should work now
5.) If you like, hit the thanks button ;)

If you're unrooted, you can try this:

Run this in adb
Code:
adb shell rm -R -f /data/data/<packagename>
Replace <packagename> with the package name of your app (if you don't know it, see above)

If that doesn't work, a factory reset is your only option, sorry :(
 
Last edited:

St.Valkyrie

New member
Apr 27, 2012
2
2
My device (Galaxy S4) is unrooted and i never root or install any custom rom on this device so i use the adb shell and enter the above command,
i get rm failed for /data/data/com.miui.mihome2, Permission denied
Any other suggestion or advice??Is factory reset the only option??
 
  • Like
Reactions: ED-Z and Donskjr

dmunera

Member
Mar 30, 2010
37
11
Bello
It worked, Swype was the software

I upgraded my S4 Octa-core from 4.2.2 to 4.3, the Swype keyboard, the paid version, did not appear, so I tried to install it from Google Play (several times), error -24, I looked for an answer in the Swype forum, nothing, then I found this thread (why the hell I did not look for it here in the first place...? :eek:), and this did the trick.

:victory: All this story just to say Thank you a lot man, you saved my day, stock keyboard is not bad, but Swype is awesome.
 
  • Like
Reactions: Donskjr

Shreedhan

New member
Dec 29, 2009
3
1
Has anyone had any luck using the command below?

Code:
adb shell rm -R -f /data/data/<packagename>

I'm unrooted and I'm trying to delete /data/data/com.whatsapp but receive this error:

Code:
rm failed for /data/data/com.whatsapp, Permission denied
 
  • Like
Reactions: Donskjr

StErMi

Member
Feb 2, 2011
17
3
Has anyone had any luck using the command below?

Code:
adb shell rm -R -f /data/data/<packagename>

I'm unrooted and I'm trying to delete /data/data/com.whatsapp but receive this error:

Code:
rm failed for /data/data/com.whatsapp, Permission denied

got it too. I've a N5 and I don't want to root for the moment :)
 
  • Like
Reactions: Donskjr

disanta002

New member
Mar 15, 2012
1
0
Toronto
You need root.

For the people that got the "permission denied" error after entering the command:
You need root. Deleting data from apk files and/or installing/uninstalling apk files needs special permissions that only su (superuser) and system has. (Root IS su)
Now, reading that, you may think:
"But what about PackageManager or the Play Store that allows you to install apk files?"
Those are given permissions as system.

Correct me if I'm wrong.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 194
    This is a common error that occurs with the Play Store sometimes after flashing ROMs without wiping data, or with an incomplete un-installation (apk corruption, etc.)

    What is it?​
    Basically, there is some app data left behind from a previous installation of the app. The Play Store sees that data when trying to install the app and throws a -24 error, because it doesn't know what to do with it.

    So, how do you solve it?​
    Simple to fix:
    (I'm assuming you're rooted, chances are you are if you get this error)
    - YOU'LL LOSE YOUR DATA FOR THAT APP (You would have done anyway, if it was uninstalled properly) -
    1.) Using a root file manager, go to /data/data
    2.) Find the package name of the app you're wanting to install
    (Don't know the package name? Find the app you're wanting to install on the Play Store online and it's in the URL)
    3.) Delete that folder. All of it.
    4.) Try to install your app again, it should work now
    5.) If you like, hit the thanks button ;)

    If you're unrooted, you can try this:

    Run this in adb
    Code:
    adb shell rm -R -f /data/data/<packagename>
    Replace <packagename> with the package name of your app (if you don't know it, see above)

    If that doesn't work, a factory reset is your only option, sorry :(
    2
    you just saved me :) Thanks a bunch!
    2
    My device (Galaxy S4) is unrooted and i never root or install any custom rom on this device so i use the adb shell and enter the above command,
    i get rm failed for /data/data/com.miui.mihome2, Permission denied
    Any other suggestion or advice??Is factory reset the only option??
    1
    Great write up man :).

    TEAM MiK
    MikROMs Since 3/13/11
    1
    F*ck, you're a genius man, many thanks to you !
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone