trojan-gfw / igniter

A trojan client for Android (UNDER CONSTRUCTION).
GNU General Public License v3.0
3.3k stars 736 forks source link

An error will be reported when vpn is closed, and the system vpn connection cannot be closed in android 11 #366

Closed weew2 closed 3 years ago

weew2 commented 3 years ago

Android SDK version: 30 System: win 10 igniter version: 0.10.3

error log:

2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: android.os.DeadObjectException 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at android.os.BinderProxy.transactNative(Native Method) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at android.os.BinderProxy.transact(Binder.java:1133) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at io.github.trojan_gfw.igniter.proxy.aidl.ITrojanService$Stub$Proxy.unregisterCallback(ITrojanService.java:275) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at io.github.trojan_gfw.igniter.connection.TrojanConnection.unregisterServiceCallback(TrojanConnection.java:132) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at io.github.trojan_gfw.igniter.connection.TrojanConnection.onServiceDisconnected(TrojanConnection.java:172) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at android.app.LoadedApk$ServiceDispatcher.doDeath(LoadedApk.java:1757) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1772) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at android.os.Handler.handleCallback(Handler.java:873) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at android.os.Handler.dispatchMessage(Handler.java:99) 2021-04-29 14:06:17.659 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at android.os.Looper.loop(Looper.java:201) 2021-04-29 14:06:17.660 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6810) 2021-04-29 14:06:17.660 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2021-04-29 14:06:17.660 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) 2021-04-29 14:06:17.660 24713-24713/io.github.trojan_gfw.igniter.debug W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

weew2 commented 3 years ago

igniter-go 0.10.3 igniter-go-libs 1.27 igniter-libs https://github.com/trojan-gfw/igniter-libs/tree/ebfd02c656ccccff25ad5b122e7758cdb78fedcf trojan 1.16.0

wongsyrone commented 3 years ago

igniter-go?

weew2 commented 3 years ago

发错了,多了个go

LaoHuan commented 3 years ago

点火器去吗?

老大。改哪能让speedtest测起来喃?是哪里做了限制吗?

weew2 commented 3 years ago

It has been processed, just set the death monitor to true

TrojanConnection connection = new TrojanConnection(true)

wongsyrone commented 3 years ago

@TchaikovDriver Any idea on changing the value of linkToDeath to true?

TchaikovDriver commented 3 years ago

That's just for observing the death of ProxyService. Since we have handled the STOPPING and STOPPED event, listening for the death event seems to be useless.

weew2 commented 3 years ago

It is valuable. The proxy service on OnePlus is always closed. This is the time to trigger the death monitor to restart.