Never wipe after an upgrade
It seems that quite often after an upgrade (especially when using Apps2SD), Android rebuilds the /data/system/packages.xml file because it thinks you have reinstalled all of your apps. This results in missing apps, force closes, etc, because UIDs have changed and they don’t match whats in your /data/data directory. It’s almost always fixed by a wipe, but screw that
Download this file: http://n0rp.chemlab.org/android/fix_permissions.sh
Push it to your sdcard, su, and run “sh /sdcard/fix_permissions.sh” and reboot. You should be good to go with NO WIPE!
Credit goes to this guy, I simply ported it to shell code: http://blog.elsdoerfer.name/2009/05/…id-mismatches/


#1 by Reignzone on August 26, 2009 - 5:57 pm
Great post.
I appreciate this particular topic coverage! Might I suggest a tips and tricks section?
[Translate]
#2 by dashmatticks on August 27, 2009 - 7:15 pm
Bad link?
[Translate]
#3 by Chris on September 11, 2009 - 6:29 pm
Love the work you guys do, it is important to have people pushing the technology further. The link appears to be broke, and i really want to apply the patch before i upgrade again. Thanks!
[Translate]
#4 by Chris on September 12, 2009 - 6:17 pm
Is there another link for this file?
[Translate]
#5 by Smeagol on September 21, 2009 - 7:03 am
Can You fix this Link plox?
[Translate]
#6 by MeBerserk on November 23, 2009 - 8:37 pm
why is the file removed????
[Translate]
#7 by dinky on December 14, 2009 - 7:42 am
Looking for this file too… after a recent wipe, was the answer from above, can you repost it please?
[Translate]
#8 by dinky on December 14, 2009 - 10:52 am
There’s a reason for this. Script is now integrated into cyanogenmod roms. Open a terminal, type below:
su (hit enter, don’t type this!)
fix_permissions (enter again)
You can also run this from recovery mode via adb shell. Good luck.
[Translate]
#9 by wacckkoo1 on December 15, 2009 - 9:29 am
Thanks. Was very helpful
[Translate]
#10 by Jeroen on December 28, 2009 - 1:58 am
Sometimes after a upgrade my loading screen is looping or it turns to black.
then a wipe is my hero.
[Translate]
#11 by Jeroen on December 28, 2009 - 2:01 am
okey okey i just posted to quick… was looking for ebuddy in my android and saw it wasnt there… cannot install eather because it says its already intalles haha … but my android works thats somethin..
[Translate]
#12 by Jeroen on December 28, 2009 - 2:01 am
edit: keep up the good work
[Translate]
#13 by John Ring on January 10, 2010 - 4:38 pm
The Link is bad
[Translate]