2

I manually deleted around 50 obsolete Trichrome Library packages using rm as explained here.

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.

<package name="com.google.android.trichromelibrary_438908633" 
    codePath="/data/app/com.google.android.trichromelibrary_438908633-SwvwbO_SyYGt5Xu9yACVFw==" 
    nativeLibraryPath="/data/app/com.google.android.trichromelibrary_438908633-SwvwbO_SyYGt5Xu9yACVFw==/lib" 
    primaryCpuAbi="armeabi-v7a" secondaryCpuAbi="arm64-v8a" publicFlags="0" 
    privateFlags="0" ft="1781fabc898" it="1781fac0a2e" ut="1781fac0a2e" 
    version="438908633" userId="10263" installer="com.android.vending">

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]

4
  • 2
    @beeshyams it is there: android.googlesource.com/platform/frameworks/base/+/refs/tags/…. But most probably it also got converted from plain to binary XML (like AndroidManifest was and) as Android did to other XML files on device to reduce parsing overhead. So it needs to be decoded. Commented Nov 28, 2021 at 16:13
  • it's a file not a folder
    – Ju Tutt
    Commented Nov 28, 2021 at 22:05
  • Ju Tutt, OK, thanks, but no entries like you mentioned @IrfanLatif it is not coded, I was mistaken in assuming it to be a folder
    – beeshyams
    Commented Nov 29, 2021 at 4:11
  • 3
    @beeshyams at least in AOSP code it's coded in ABX format. Commented Nov 29, 2021 at 9:46

1 Answer 1

0

I manually edited packages.xml deleting relevant sections from <package name> to </package name> 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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .