trichromelibrary squoosh

Magisk KSU APatch

Chrome refuses to update. WebView stays stuck on an old version. The culprit is almost always an orphaned TrichromeLibrary package left over from a previous update cycle. trichromelibrary-squoosh, created by entr0pia, is a surgical Magisk module that runs a cleanup script on every device boot — automatically detecting and removing outdated TrichromeLibrary versions so Chrome and Android System WebView can update freely again.

Download via Internet Archive

The module is hosted on Internet Archive — a permanent, free file hosting service. Click the button below to download the Magisk module ZIP directly.

Download TrichromeLibrary-Squoosh.zip

What This Module Fixes

A persistent Android package management quirk — automatically resolved on every boot without any manual intervention.

Fixes Chrome Update Failures

Orphaned TrichromeLibrary versions create version lock conflicts that prevent the Play Store from installing Chrome updates. After the module removes the stale package, Chrome updates proceed normally on the next Play Store sync.

Restores WebView Updates

Android System WebView shares TrichromeLibrary with Chrome. A conflicting old version blocks WebView updates too — causing apps that render web content (Gmail, banking apps, social media) to use a stale, potentially unpatched WebView renderer.

Runs on Every Boot

The cleanup script is registered as a Magisk service and executes automatically on every device reboot. Since version conflicts can reappear after each Chrome/WebView update cycle, the persistent boot-time cleanup ensures the issue never silently accumulates again.

Automatic Version Detection

Scans /data/app for all directories matching com.google.android.trichromelibrary_*, extracts the version number suffix from each directory name, and issues a pm uninstall for each obsolete version — no hardcoded version numbers.

Zero User Interaction

Install once, reboot, done. The entire cleanup process happens silently in the background during boot — no app to open, no settings to configure, no manual adb commands to remember after every Chrome update.

Shell Script Alternative

For users who prefer not to install a module, the same cleanup script can be run manually in a root shell via a one-line curl command — applying the fix immediately without a reboot, or useful for one-time cleanup on non-Magisk setups.

Understanding the TrichromeLibrary Problem

Starting with Android 10 (Q), Google introduced the Trichrome model for Chrome and Android System WebView. Previously, Chrome itself served as the WebView rendering engine on Android, causing dependency issues. Trichrome separates the shared code into three components: Chrome, Android System WebView, and a new shared library package called TrichromeLibrary.

TrichromeLibrary is version-locked — its package name includes the version number directly: com.google.android.trichromelibrary_621303433. When Chrome updates, a new TrichromeLibrary with the new version number is installed. However, Android's package manager does not always cleanly uninstall the previous version, leaving a ghost package in /data/app.

On subsequent Play Store updates, Android sees multiple TrichromeLibrary versions installed simultaneously and raises a version conflict error — blocking Chrome and WebView from being updated further. This module's service script resolves this by scanning /data/app for any TrichromeLibrary directory, extracting its version suffix, and running pm uninstall com.google.android.trichromelibrary_$version for each one found — clearing the conflict cleanly on every boot.

Manual Fix (Without the Module)

If you prefer not to install the module, you can apply the fix manually. Open a root shell via Termux + root or adb shell and run:

# Option 1: Run the script directly via curl (requires internet)
sh -c "$(curl -sLf https://raw.githubusercontent.com/entr0pia/trichromelibrary-squoosh/master/service.sh)"
# Option 2: Find the version manually and uninstall
ls /data/app | grep trichromelibrary
# Output example: com.google.android.trichromelibrary_621303433-abc/
pm uninstall com.google.android.trichromelibrary_621303433

Replace 621303433 with the version number found in your /data/app output. If multiple versions exist, run pm uninstall for each one.

Frequently Asked Questions

TrichromeLibrary (com.google.android.trichromelibrary_XXXXXX) is a shared code library used by both Google Chrome and Android System WebView on Android 10 and above. Google introduced the Trichrome model to share common rendering code between Chrome and WebView — reducing total download size while eliminating the quirks of using Chrome as a WebView implementation.

When Chrome or WebView updates via the Play Store, a new version of TrichromeLibrary is installed alongside it. However, the old version is sometimes not removed, leaving an orphaned package with the old version number in /data/app. Android's package manager detects a version conflict between the leftover TrichromeLibrary and the new Chrome/WebView build, preventing the update from completing.

The module installs a service script that runs automatically on every device boot. It scans for all installed packages matching com.google.android.trichromelibrary_*, identifies the outdated versions that no longer match the currently installed Chrome or WebView, and removes them via pm uninstall. Chrome and WebView can then update normally.

No — this is intentional. TrichromeLibrary version conflicts can recur after each major Chrome/WebView update cycle. The module runs on every boot to ensure that any newly orphaned versions from the latest update round are cleaned up automatically, without requiring any user interaction.

Yes. You can manually run pm uninstall com.google.android.trichromelibrary_<version> in a root shell — replacing <version> with the version number found in /data/app. Alternatively, run the one-line curl script from the GitHub repository. However, both approaches need repeating after every Chrome/WebView major update, which is why the module is preferred.

Module Info

  • Module By
    entr0pia
  • Source Code View Repository
  • Tags
    #TrichromeLibrary #Chrome Fix #WebView #Trichrome #Magisk Module #entr0pia #Android Fix #System Library
  • Requirement
    Magisk KernelSU APatch
  • Latest Update