Repository navigation
MainHook has no zero-argument constructor #314
Description
Hey there! I'm using ChromeXt 3.9.0 and KSU with ZygiskNext and Vector instead of LSPosed. However, I can't get ChromeXt to hook and actually run, so it perpetually tells me it's not installed and the dropdown buttons don't exist. (I'm using Brave 1.97.59 primarily, but it fails for all my browsers.)
As far as I can tell, it's due to the APK declaring itself as a legacy module: xposedmodule=true, xposedminversion=54, and assets/xposed_init points to org.matrix.chromext.MainHook, but there's no META-INF/xposed/ entry. In classes.dex, MainHook has no at all. Its only methods are a, b, handleLoadPackage and initZygote. Other classes, such as OpenInChrome, keep their constructors. I'm guessing that R8 removed the constructor because nothing calls it directly, and the framework creates the class by reflection. If we add a keep rule so the constructor survives shrinking, would that help? Something like this:
-keep class org.matrix.chromext.MainHook { (); }
Hopefully my rambling made sense. Actual error log below. 😁 Thanks so much for looking into it!
Best,
TD
VectorLegacyBridge Failed to load class org.matrix.chromext.MainHook
16 frames
InstantiationException
java.lang.Class<org.matrix.chromext.MainHook> has no zero argument constructor
Class.newInstance
Native Method
XposedInit.initModule
r8-map-id-4e8fef884aca59aee337e225c9e17b9fd6ff1da7e14ff4119d1b2d3bae432287:66
XposedInit.loadModule
r8-map-id-4e8fef884aca59aee337e225c9e17b9fd6ff1da7e14ff4119d1b2d3bae432287:174
XposedInit.lambda$loadLegacyModules$0
r8-map-id-4e8fef884aca59aee337e225c9e17b9fd6ff1da7e14ff4119d1b2d3bae432287:16
XposedInit.a
r8-map-id-4e8fef884aca59aee337e225c9e17b9fd6ff1da7e14ff4119d1b2d3bae432287:1
m3.accept
r8-map-id-4e8fef884aca59aee337e225c9e17b9fd6ff1da7e14ff4119d1b2d3bae432287:20
ArrayList.forEach
ArrayList.java:1621
XposedInit.loadLegacyModules
r8-map-id-4e8fef884aca59aee337e225c9e17b9fd6ff1da7e14ff4119d1b2d3bae432287:40
Main.forkCommon
r8-map-id-4e8fef884aca59aee337e225c9e17b9fd6ff1da7e14ff4119d1b2d3bae432287:92
Zygote.nativeSpecializeAppProcess
Native Method
Zygote.specializeAppProcess
Zygote.java:439
Zygote.childMain
Zygote.java:874
Zygote.forkSimpleApps
Zygote.java:734
ZygoteConnection.processCommand
ZygoteConnection.java:291
ZygoteServer.runSelectLoop
ZygoteServer.java:521
ZygoteInit.main
ZygoteInit.java:879
Activity
JingMatrix commentedon Oct 22, 2026
Can you try latest CI ? #313 seems to be the fix
trainingdummy commentedon Oct 23, 2026
Yep, it works now! Thank you so much!