Purge /data/system/packages.xml from manually deleted packages



  • I manually deleted around 50 obsolete Trichrome Library packages using rm as explained https://android.stackexchange.com/questions/242721/can-i-delete-old-trichrome-library-under-data-app/ .

    Of course doing this brutal rm delete thing instead of a more graceful pm uninstall leaves all of the old Trichrome versions entries as leftover in /data/system/packages.xml.

    
    

    Is there a way to purge it automatically? Reboot doesn't clean it.

    Or can I just edit such xml and remove leftover entries?

    [Android 10]



  • I manually edited packages.xml deleting relevant sections from to for every obsolete Trichrome package, working fine.

    Make sure owner system and permissions rw-rw---- 660 are preserved after edit, then reboot.

    For extra safety I first made a backup of the original file and for convenience I edited a copy of the file on a PC using Notepad++, then pushed back on my device.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2