Skip to content

Return value's type from hook callback does not match the hooked method#8

Merged
hang666 merged 1 commit into
hang666:mainfrom
hereisderek:bugfix/fix_return_type_unmatch
Mar 31, 2026
Merged

Return value's type from hook callback does not match the hooked method#8
hang666 merged 1 commit into
hang666:mainfrom
hereisderek:bugfix/fix_return_type_unmatch

Conversation

@hereisderek

Copy link
Copy Markdown

crash:

java.lang.ClassCastException: Return value's type from hook callback does not match the hooked method
 at org.lsposed.lspd.impl.LSPosedBridge$NativeHooker.callback(r8-map-id-bd8a188c72dcb420b3bf2c8bb5c3bcde85b40b6a76b9f502e6132e524d661836:310)
 at LSPHooker_.checkServerTrusted(Unknown Source:17)
 at okhttp3.internal.platform.android.AndroidCertificateChainCleaner.clean(Unknown Source:25)
 at okhttp3.internal.connection.RealConnection$connectTls$1.invoke(SourceFile:4)
 at okhttp3.internal.connection.RealConnection$connectTls$1.invoke(SourceFile:1)
 at okhttp3.Handshake$peerCertificates$2.invoke(SourceFile:2)
 at okhttp3.Handshake$peerCertificates$2.invoke(SourceFile:1)
 at dn.q.getValue(Unknown Source:20)
 at okhttp3.Handshake.peerCertificates(Unknown Source:2)
 at okhttp3.Cache$Entry.writeTo(Unknown Source:241)
 at okhttp3.Cache.put$okhttp(Unknown Source:86)
 at okhttp3.internal.cache.CacheInterceptor.intercept(Unknown Source:361)
 at okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:151)
 at okhttp3.internal.http.BridgeInterceptor.intercept(Unknown Source:169)
 at okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source:151)
 at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(Unknown Source:34)

@hang666 hang666 merged commit abf1c15 into hang666:main Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants