JingMatrix / ChromeXt

UserScript and DevTools supports for Chromium based and WebView based browsers

Home Page:https://jingmatrix.github.io/ChromeXt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way to make it work with Magisk Delta + Zygisk Next module?

directentis1 opened this issue · comments

I'm using ChromeXt (latest) on LSPosed 1.9.2, using Zygisk Next instead of Magisk Zygisk, and using Magisk Delta Canary as root solution.

But it seems, ChromeXt is not working, I don't notice any changes when opening Google Chrome.

However, I have found an alternative way (workaround) to patch Chrome's apk file according to your instructions, overinstalling Chrome system using LSPosed's Core patch Module (helps overinstall files with different original signatures).

But this method is really inconvenient because Chrome is often updated continuously,... and the Root + LSPosed based method will be more convenient, in the long run, and not only Google Chrome but most Chromium-based, like you instructed.

Can you show me how to debug?

Maybe Magisk Delta + Zygisk Next implemented something else (to hide the root more effectively) so it caused some LSPosed Modules, like ChromeXt, to not work (though others still work fine?)

As you have seen, the problem is more related to LSPosed or your root solution. In the ChromeXt part, I didn't make use of any features bounded to some specific implements of LSPosed or Magisk.

For you to debug, you may try

  1. Install the debug version of ChromeXt: ChromeXt-debug.zip
  2. Check logs from the LSPosed manager
  3. Use adb logcat -s ChromeXt AndroidRunTime LSPosed for more logs

You can paste your logs under this issue, I might be able to help with it.

I tried (just curious) patched Android Web View, and after install it, some websites will show "Certificate Errors" when I click them from other apps that use Web View to access links inside them.

It's strange when wikipedia doesn't show that, but youtube does.

The logs were not helpful, where only relevent info is:

11-02 01:30:35.233  5542  5542 I ChromeXt: Package: com.android.chrome, v118.0.5993.112
11-02 01:30:35.508  5542  5857 D LSPosed : LoadedApk#<init> starts: pkg=com.android.chrome, prc=com.android.chrome
11-02 01:30:35.509  5542  5857 D LSPosed : LoadedApk#<init> ends: /data/app/com.google.android.gms-BFpAIR9SZPCtRIDklU292Q==/base.apk: pkg=com.android.chrome, prc=com.android.chrome
11-02 01:30:39.987  6156  6156 D LSPosed : deoptimizing public android.app.Application android.app.Instrumentation.newApplication(java.lang.ClassLoader,java.lang.String,android.content.Context) throws java.lang.InstantiationException,java.lang.IllegalAccessException,java.lang.ClassNotFoundException: pkg=com.android.chrome, prc=com.android.chrome:privileged_process0
11-02 01:30:39.989  6156  6156 D LSPosed : deoptimizing public java.io.File android.app.ContextImpl.getSharedPreferencesPath(java.lang.String): pkg=com.android.chrome, prc=com.android.chrome:privileged_process0
11-02 01:30:39.989  6156  6156 D LSPosed : startBootstrapHook starts: isSystem = false
11-02 01:30:46.734  6927  6927 D LSPosed : deoptimizing public android.app.Application android.app.Instrumentation.newApplication(java.lang.ClassLoader,java.lang.String,android.content.Context) throws java.lang.InstantiationException,java.lang.IllegalAccessException,java.lang.ClassNotFoundException: pkg=com.google.android.webview, prc=com.google.android.webview:webview_service

Please disable all other modules, and try also other browsers such as edge. Make sure that LSPosed is only used for ChromeXt, and only the browser app is toggled on.

Hmm, seems like it's worked when I turnoff all another lsposed modules.

LSPosed_2023-11-02T02_08_56.860.zip

chromext-debug.log

Congrat! I close this issue now.

If you find out which modules are blocking the funtionality of ChromeXt, you may continue to share your discovery here!

Brave also working, I just tested it.

Thanks, maybe I'll need some trial-and-errors to find the problem ;)

I accidentally enabled https://github.com/5ec1cff/StethoX a while ago on some apps, and it caused a conflict with Chromext.
FYI.