packages.xml is restored after reboot This is my first question here. I hope developers will help me out.

I have XOLO A500 device on which Google Play services is not being installed because of "Using the same shared id" problem. To resolve the problem, I had rooted my phone and taken access of system through ADB. Following procedure I had made.

1) Rooted the phone and installed ADB to access the android system.
2) chmod 666 to packages.xml inside /data/system.
3) Pulled the packages.xml using command adb pull /data/system/packages.xml
4) Edited the packages.xml and removed the sharedUserId attribute for the particular app.
5) Pushed back packages.xml
6) Removed the dalvik cache.
7) Reboot.

All I am doing as su.

The problem here is after reboot, the packages.xml file is again restored as the original one. Please help me regarding this.

Edit 1: I am using ICS

Edit 2: Here is how I have done everything.


Started USB debugging.
Connected the phone and started ADB.
adb pull /data/system/packages.xml
Edited packages.xml and saved the file
adb shell
su
chmod 666 /data/system/packages.xml
exit
exit
adb push packages.xml /data/system
adb shell
su
chmod 664 /data/system/packages.xml
rm /data/dalvik-cache/*
exit
exit
adb reboot


Thanks and Regards
sharedUserId is simply a copy of the parameter of the same name from the Android Manifest file. When you clear the dalvik cache and reboot, the sharedUserId attribute is read from the original apk files and packages.xml is rewritten. You'll probably need to disassemble the apk, edit the manifest, and reassemble the apk using a tool like apktool. Note that the new apk you create will not be signed, so it will not be automatically updated though the Play Store.