5

I have around 50 trichrome library folders in /data/app using around 3 gb.

What varies is the alphanumeric string after the package name denoting version: com.google.android.trichromelibrary_410408383-VgzblS0EY8swXcjTqN6reQ==

Can I delete all but most recent to clean my system and regain some space?

Or is it like WinSxS folder in Windows where all revisions of the same dll are stored for different programs to use?

###UPDATE AUGUST 2022###

Latest Trichrome updates (I'm now on 511.209.733) seem to take care of old versions disinstalling them and leaving only the latest, no more need to manually delete in /data/app and /data/data

Ju Tutt
  • 514
  • 3
  • 20
  • 1
    +1, After posting comment, checked on my phone to discover the same. The same question has been asked on Google support forums though the answer lacks details as to why so many versions – beeshyams Nov 14 '21 at 06:27
  • 1
  • 1
    Uninstall all versions of trichrome library by typing pm uninstall com.google.android.trichromelibrary_410408383 (replace the ending version part). Then update Chrome/WebView from Play Store. // Even simpler: stop using Google products as much as possible. – Irfan Latif Nov 14 '21 at 09:37
  • 2
    @beeshyams every new version of trichrome library is installed as a separate package. So uninstall them specifically, not Chrome/WebView. Update the latter both if they break due to missing library. – Irfan Latif Nov 14 '21 at 13:03
  • I get Failure [DELETE_FAILED_INTERNAL_ERROR] when trying to pm uninstall – Ju Tutt Nov 15 '21 at 11:16
  • even adding --user 0 i get NOT INSTALLED FOR THIS USER – Ju Tutt Nov 15 '21 at 11:26
  • Is this a problem on rooted phones only? Do the different versions of trichrome appear in the list of pm list packages -f (or is there another way to check existence of such libraries on unrooted phones)? – Robert Jan 01 '22 at 17:36
  • using pm list libraries you can see one trichrome entry but no more details afaik – Ju Tutt Jan 02 '22 at 08:17
  • @JuTutt Yep, you do not see build number that is needed for uninstall. But you can look it up on apkcombo using Es Explorer that shows build number. See: https://github.com/entr0pia/trichromelibrary-squoosh – Валерий Заподовников Jun 04 '23 at 08:42

1 Answers1

2

I deleted all but last using rm -r com.google.android.trichromelibrary_41*(then 42, 43, 44...) in /data/app/, /data/data/, /data/user_de/0/, /data/misc/profiles, /data/system/package_cache, working fine, 3 gb freed.

Should be safe to issue the rm command of above straight in /data just for convenience.

Then you should purge your /data/system/packages.xml file from orphaned entries as explained here: Purge /data/system/packages.xml from manually deleted packages

Ju Tutt
  • 514
  • 3
  • 20
  • 1
    +1, confirm it works on Android 12 too, though I found them in first & third location only. Had to update Chrome and web view to get them working (I had unistalled updates before deletion) – beeshyams Nov 26 '21 at 01:23
  • do you think is it possible to purge old versions on a not rooted device? – Ju Tutt Nov 26 '21 at 05:40
  • 1
    Unlikely IMO. Especially with scoped storage since Android 10. Even on earlier versions one can't access /data/data without root and if Chrome is a system app it's out of bounds – beeshyams Nov 26 '21 at 06:23
  • 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. – Ju Tutt Nov 28 '21 at 05:09
  • On a rooted phone, one can use Trichrome Squoosh Magisk module – beeshyams Sep 05 '23 at 17:07