

On Windows this typically means that a program is using that folder (for example Windows Explorer or your anti-virus software.)

Thus, editing it went in vain.Installing Android SDK Tools, revision 23.0.5įailed to rename directory E:\android_sdk\tools to E:\android_sdk\temp\ToolPackage.old01.Ī folder failed to be moved. This was happening because it was updating the information from /system/app files. The answer to this is that though I can edit it with vim but it kept reverting back to the previous unedited form. Why I couldn't edit the /data/system/packages.xml file? $ adb shell rm -r /system/.apk - This would remove the apk and there won't be anything left from the previous built. Originally /system is a read-only folder so you can't edit directly. $ adb shell mount -o rw,remount /system - This would remount the system as read-write. So these were the steps that I followed :

These few steps may remove the whole package but in my case it was different as it left behind few files from the previous built app. apk - To uninstall the package from the root user is any package you want to remove from the system. $ adb shell - To interact with the phone system directly. $ adb root - To start adbd with root privileges.

The first is how to delete a system application completely? Ultimately found an answer to the query and how to solve it. But after making the change when I reboot it get back to the unedited version.Ĭan anyone tell me the reason as to why this happens and how I can stop it from happening? And how would I be able to install a different version of the app? apk with different if I comment the section in /data/system/packages.xml referring to telegram. With further research I found out that I can install the new. I also tried uninstalling with this adb uninstall but it gave out Failure. But when I tried to install the new apk with adb install telegram.apk I got the following error adb: failed to install telegram.apk: Failure After much research I was able to uninstall if from the system with the command adb shell pm uninstall -user 0. It comes with pre-installed Telegram app. Recently I install a custom ROM named eelo.
