A python script can help you remove useless Trichrome Library and Trichrome Library Beta on Android Q+
As we know, Google uses Trichrome Library to share the same code in Chrome and Webview on Android Q+ devices to save space on the device. The Play Store will automatically install the corresponding Trichrome Library version when installing and upgrading Chrome and Webview, but will not uninstall the old version.
Unfortunately, Android does a poor job of shared library management. Trichrome Library cannot be displayed in the application list like a normal application (because it is a shared library), nor can use adb shell pm list libraries
to query installed libraries version on the device.
The good news is we can use adb shell pm uninstall com.google.android.trichromelibrary*_version_code
to uninstall it completely. For root users, they can find installed Trichrome Library in /data/system/packages.*
or /data/app/*/*trichromelibrary*
. For non-root users, I didn't find a good way to query the version of the shared library.
So I wrote this python script, which enumerates the version codes of all stable and beta versions to ensure Trichrome Library can be completely uninstalled.
- Install Python
- Install ADB environment on your system
- Download
TrichromeLibrary_Remover.py
- Open shell window and type
adb devices
, make sure your phone is the only ADB device connecting to the computer. - Type
python TrichromeLibrary_Remover.py
and wait patiently.