MatsuriDayo / NekoBoxForAndroid

NekoBox for Android / sing-box / universal proxy toolchain for Android
https://matsuridayo.github.io/
Other
11.79k stars 989 forks source link

BUG: 多用户切换后连接异常 #634

Closed ChrisFerebee closed 1 month ago

ChrisFerebee commented 7 months ago

描述问题

GrapheneOS系统,使用了多用户功能,有两个用户,分别是主用户和常用用户

主用户和常用用户都使用了NekoBoxForAndroid,并且VPN设置为始终开启的VPN

主用户和常用用户中的NekoBoxForAndroid同一时刻只能有一个可以正常连接,例如:主用户的NekoBoxForAndroid可以正常使用,切换到常用用户,常用用户的NekoBoxForAndroid就无法正常连接,将常用用户中NekoBoxForAndroid的连接断开并重新连接,常用用户的NekoBoxForAndroid就可以使用,但在后台的主用户中的NekoBoxForAndroid就无法正常使用

预期行为:所有用户中的NekoBoxForAndroid都可以正常使用

实际行为:只有一个用户的NekoBoxForAndroid可以正常使用

如何复现

见以上说明

日志

Could not open module param file '/sys/module/mali_kbase/parameters/large_page_conf'
Could not open module param file '/sys/module/mali_kbase/parameters/large_page_conf'
NekoBox for Andoird 1.2.9 (165) OSS
Date: 2024-04-11 04:20:00.643 UTC

OS_VERSION: 5.10.209-android13-4-gc91496415009
SDK_INT: 34
RELEASE: 14
ID: AP1A.240405.002
DISPLAY: 2024040900
INCREMENTAL: 2024040900
SECURITY_PATCH: 2024-04-05
IS_DEBUGGABLE: null
IS_EMULATOR: null
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys

MANUFACTURER: Google
BRAND: google
MODEL: Pixel 7
PRODUCT: panther
BOARD: panther
HARDWARE: panther
DEVICE: panther
SUPPORTED_ABIS: arm64-v8a

Settings: 

mixedPort: 2092
portLocalDns: 6462
isAutoConnect: false
nightTheme: 0
serviceMode: vpn
tunImplementation: 2
mtu: 9000
speedInterval: 1000
profileTrafficStatistics: true
showGroupInNotification: false
alwaysShowAddress: false
meteredNetwork: false
showDirectSpeed: true
bypassLanInCore: false
resolveDestination: false
ipv6Mode: 0
rulesProvider: 0
mux: []
muxType: 0
muxConcurrency: 8
remoteDns: https://dns.google/dns-query
domain_strategy_for_remote: auto
directDns: local
domain_strategy_for_direct: auto
domain_strategy_for_server: auto
enableDnsRouting: true
enableFakeDns: false
appendHttpProxy: false
allowAccess: false
connectionTestURL: http://cp.cloudflare.com/
acquireWakeLock: false
enableClashAPI: false
tcpKeepAliveInterval: 15
appTLSVersion: 1.2
trafficSniffing: 0
profileId: 13
showBottomBar: true
proxyApps: true
bypassMode: false
individual: com.foxdebug.acode
com.aurora.store
com.atharok.barcodescanner
com.brave.browser
com.cakewallet.cake_wallet
com.google.android.googlequicksearchbox
com.nextcloud.client
dev.imranr.obtainium
org.torproject.torbrowser
org.videolan.vlc
mendeleev.redlime
com.binance.dev
com.okinc.okex.gp
com.google.android.apps.translate
bypassLan: false
nekoPlugins: 
logLevel: 3
profileCurrent: 13
profileGroup: 2

Logcat: 

--------- beginning of main
04-11 12:19:08.534 24183 24183 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@fe87cfb
04-11 12:19:56.820 24183 24183 W ResourcesCompat: Failed to inflate ColorStateList, leaving it to the framework
04-11 12:19:56.820 24183 24183 W ResourcesCompat: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 0: TypedValue{t=0x2/d=0x7f040275 a=-1}, theme={InheritanceMap=[id=0x7f1402a9moe.nb4a:style/Theme.SagerNet.Pink_SSR, id=0x7f140284moe.nb4a:style/Theme.SagerNet, id=0x7f140267moe.nb4a:style/Theme.MaterialComponents.DayNight.NoActionBar, id=0x7f140280moe.nb4a:style/Theme.MaterialComponents.Light.NoActionBar, id=0x7f140272moe.nb4a:style/Theme.MaterialComponents.Light, id=0x7f140069moe.nb4a:style/Base.Theme.MaterialComponents.Light, id=0x7f1400a2moe.nb4a:style/Base.V21.Theme.MaterialComponents.Light, id=0x7f140090moe.nb4a:style/Base.V14.Theme.MaterialComponents.Light, id=0x7f140091moe.nb4a:style/Base.V14.Theme.MaterialComponents.Light.Bridge, id=0x7f140137moe.nb4a:style/Platform.MaterialComponents.Light, id=0x7f14022cmoe.nb4a:style/Theme.AppCompat.Light, id=0x7f140051moe.nb4a:style/Base.Theme.AppCompat.Light, id=0x7f1400b4moe.nb4a:style/Base.V28.Theme.AppCompat.Light, id=0x7f1400b1moe.nb4a:style/Base.V26.Theme.AppCompat.Light, id=0x7f1400abmoe.nb4a:style/Base.V23.Theme.AppCompat.Light, id=0x7f1400a9moe.nb4a:style/Base.V22.Theme.AppCompat.Light, id=0x7f14009emoe.nb4a:style/Base.V21.Theme.AppCompat.Light, id=0x7f1400b7moe.nb4a:style/Base.V7.Theme.AppCompat.Light, id=0x7f140134moe.nb4a:style/Platform.AppCompat.Light, id=0x7f14013fmoe.nb4a:style/Platform.V25.AppCompat.Light, id=0x1030241android:style/Theme.Material.Light.NoActionBar, id=0x1030237android:style/Theme.Material.Light, id=0x103000candroid:style/Theme.Light, id=0x1030005android:style/Theme], Themes=[moe.nb4a:style/Theme.SagerNet.Pink_SSR, forced, moe.nb4a:style/Theme.Start, forced, moe.nb4a:style/Theme.AppCompat.Empty, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.content.res.TypedArray.getColor(TypedArray.java:531)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at androidx.core.content.res.ColorStateListInflaterCompat.createFromXmlInner(ColorStateListInflaterCompat.java:147)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at androidx.core.content.res.ColorStateListInflaterCompat.createFromXml(ColorStateListInflaterCompat.java:18)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at androidx.core.content.ContextCompat.getColorStateList(ContextCompat.java:123)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at com.google.android.material.resources.MaterialResources.getColorStateList(MaterialResources.java:7)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at com.google.android.material.navigation.NavigationView.<init>(NavigationView.java:359)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at java.lang.reflect.Constructor.newInstance0(Native Method)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.view.LayoutInflater.createView(LayoutInflater.java:742)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:894)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:849)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.view.LayoutInflater.rInflate(LayoutInflater.java:1011)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:972)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.view.LayoutInflater.inflate(LayoutInflater.java:570)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.view.LayoutInflater.inflate(LayoutInflater.java:462)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at io.nekohasekai.sagernet.databinding.LayoutMainBinding.inflate(LayoutMainBinding.java:2)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at io.nekohasekai.sagernet.databinding.LayoutMainBinding.inflate(LayoutMainBinding.java:1)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at io.nekohasekai.sagernet.ui.MainActivity.onCreate(MainActivity.kt:18)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.Activity.performCreate(Activity.java:8820)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.Activity.performCreate(Activity.java:8798)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1524)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3939)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4137)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:108)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:195)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:157)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:90)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2551)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.os.Handler.dispatchMessage(Handler.java:107)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.os.Looper.loopOnce(Looper.java:232)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.os.Looper.loop(Looper.java:317)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at android.app.ActivityThread.main(ActivityThread.java:8532)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at java.lang.reflect.Method.invoke(Native Method)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at com.android.internal.os.ExecInit.main(ExecInit.java:50)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
04-11 12:19:56.820 24183 24183 W ResourcesCompat:   at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
04-11 12:19:56.821 24183 24183 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
04-11 12:19:56.821 24183 24183 W WindowOnBackDispatcher: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
04-11 12:19:56.832 24183 24183 W TabLayout: MODE_SCROLLABLE + GRAVITY_FILL is not supported, GRAVITY_START will be used instead
04-11 12:19:56.845 24183 24183 D AutofillManager: view not autofillable - not passing ime action check
04-11 12:19:59.263 24183 24183 D AutofillManager: view not autofillable - not passing ime action check
04-11 12:19:59.263 24183 24183 D AutofillManager: view not autofillable - not passing ime action check

2024/04/11 04:19:52 INFO[0078] [2270919876 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:38151
2024/04/11 04:19:52 INFO[0078] [2270919876 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 INFO[0078] [1061700900 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:22818
2024/04/11 04:19:52 INFO[0078] [1061700900 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2270919876 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] [1061700900 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN A
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN A
2024/04/11 04:19:52 INFO[0078] [1082336651 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:45531
2024/04/11 04:19:52 INFO[0078] [1082336651 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [1082336651 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [4020742826 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:29736
2024/04/11 04:19:52 INFO[0078] [4020742826 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [4020742826 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange f-droid.org. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [871208453 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:8306
2024/04/11 04:19:52 INFO[0078] [871208453 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [871208453 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 INFO[0078] [2051646436 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:51255
2024/04/11 04:19:52 INFO[0078] [2051646436 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] [2051646436 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [924618535 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:8901
2024/04/11 04:19:52 INFO[0078] [924618535 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [924618535 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange f-droid.org. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [2047725142 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:15882
2024/04/11 04:19:52 INFO[0078] [2047725142 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2047725142 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [41962299 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:64661
2024/04/11 04:19:52 INFO[0078] [41962299 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [41962299 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [610895094 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:16619
2024/04/11 04:19:52 INFO[0078] [610895094 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [610895094 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [2931946488 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:21468
2024/04/11 04:19:52 INFO[0078] [2931946488 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2931946488 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [968824466 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:8839
2024/04/11 04:19:52 INFO[0078] [968824466 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [968824466 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [4195528256 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:21124
2024/04/11 04:19:52 INFO[0078] [4195528256 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [4195528256 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [2959192900 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:60785
2024/04/11 04:19:52 INFO[0078] [2959192900 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2959192900 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [4290815603 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:14233
2024/04/11 04:19:52 INFO[0078] [4290815603 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [4290815603 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [1466497149 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:54031
2024/04/11 04:19:52 INFO[0078] [1466497149 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [1466497149 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [2584996936 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:35450
2024/04/11 04:19:52 INFO[0078] [2584996936 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2584996936 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 INFO[0078] [1383610773 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:6241
2024/04/11 04:19:52 INFO[0078] [1383610773 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [1383610773 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [206555252 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:10065
2024/04/11 04:19:52 INFO[0078] [206555252 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 INFO[0078] [923742743 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:36430
2024/04/11 04:19:52 INFO[0078] [923742743 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [923742743 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] [206555252 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 DEBUG[0078] dns: exchanged api.github.com NOERROR 60
2024/04/11 04:19:52 INFO[0078] dns: exchanged api.github.com A api.github.com. 60 IN A 20.205.243.168
2024/04/11 04:19:52 DEBUG[0078] dns: exchanged api.github.com NOERROR 60
2024/04/11 04:19:52 INFO[0078] dns: exchanged api.github.com A api.github.com. 60 IN A 20.205.243.168
2024/04/11 04:19:52 INFO[0078] dns: exchanged api.github.com. A api.github.com. 60 IN A 20.205.243.168
2024/04/11 04:19:52 INFO[0078] dns: exchanged api.github.com. A api.github.com. 60 IN A 20.205.243.168
Could not open module param file '/sys/module/mali_kbase/parameters/large_page_conf'
Could not open module param file '/sys/module/mali_kbase/parameters/large_page_conf'
2024/04/11 04:19:52 INFO[0078] [2270919876 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:38151
2024/04/11 04:19:52 INFO[0078] [2270919876 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 INFO[0078] [1061700900 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:22818
2024/04/11 04:19:52 INFO[0078] [1061700900 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2270919876 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] [1061700900 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN A
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN A
2024/04/11 04:19:52 INFO[0078] [1082336651 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:45531
2024/04/11 04:19:52 INFO[0078] [1082336651 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [1082336651 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [4020742826 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:29736
2024/04/11 04:19:52 INFO[0078] [4020742826 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [4020742826 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange f-droid.org. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [871208453 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:8306
2024/04/11 04:19:52 INFO[0078] [871208453 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [871208453 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 INFO[0078] [2051646436 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:51255
2024/04/11 04:19:52 INFO[0078] [2051646436 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] [2051646436 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [924618535 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:8901
2024/04/11 04:19:52 INFO[0078] [924618535 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [924618535 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange f-droid.org. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [2047725142 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:15882
2024/04/11 04:19:52 INFO[0078] [2047725142 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2047725142 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [41962299 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:64661
2024/04/11 04:19:52 INFO[0078] [41962299 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [41962299 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [610895094 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:16619
2024/04/11 04:19:52 INFO[0078] [610895094 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [610895094 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [2931946488 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:21468
2024/04/11 04:19:52 INFO[0078] [2931946488 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2931946488 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [968824466 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:8839
2024/04/11 04:19:52 INFO[0078] [968824466 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [968824466 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [4195528256 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:21124
2024/04/11 04:19:52 INFO[0078] [4195528256 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [4195528256 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [2959192900 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:60785
2024/04/11 04:19:52 INFO[0078] [2959192900 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2959192900 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [4290815603 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:14233
2024/04/11 04:19:52 INFO[0078] [4290815603 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [4290815603 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange apkpure.net. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [1466497149 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:54031
2024/04/11 04:19:52 INFO[0078] [1466497149 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [1466497149 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [2584996936 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:35450
2024/04/11 04:19:52 INFO[0078] [2584996936 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [2584996936 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 INFO[0078] [1383610773 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:6241
2024/04/11 04:19:52 INFO[0078] [1383610773 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [1383610773 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 INFO[0078] [206555252 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:10065
2024/04/11 04:19:52 INFO[0078] [206555252 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 INFO[0078] [923742743 0ms] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:36430
2024/04/11 04:19:52 INFO[0078] [923742743 0ms] inbound/tun[tun-in]: inbound packet connection to 172.19.0.2:53
2024/04/11 04:19:52 DEBUG[0078] [923742743 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] [206555252 0ms] router: match[0] port=53 => dns-out
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: exchange api.github.com. IN AAAA
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 DEBUG[0078] dns: strategy rejected
2024/04/11 04:19:52 DEBUG[0078] dns: exchanged api.github.com NOERROR 60
2024/04/11 04:19:52 INFO[0078] dns: exchanged api.github.com A api.github.com. 60 IN A 20.205.243.168
2024/04/11 04:19:52 DEBUG[0078] dns: exchanged api.github.com NOERROR 60
2024/04/11 04:19:52 INFO[0078] dns: exchanged api.github.com A api.github.com. 60 IN A 20.205.243.168
2024/04/11 04:19:52 INFO[0078] dns: exchanged api.github.com. A api.github.com. 60 IN A 20.205.243.168
2024/04/11 04:19:52 INFO[0078] dns: exchanged api.github.com. A api.github.com. 60 IN A 20.205.243.168
Could not open module param file '/sys/module/mali_kbase/parameters/large_page_conf'
Could not open module param file '/sys/module/mali_kbase/parameters/large_page_conf'
ChrisFerebee commented 7 months ago

修改思路:

在安卓系统中,用户切换后出现“Could not open module param file '/sys/module/mali_kbase/parameters/large_page_conf'”这个错误,可能是由于以下几个原因:

模块未加载:在用户切换后,可能需要重新加载mali_kbase模块以确保其参数可用。这可能是因为模块在用户切换时被卸载或未正确加载。

文件系统权限问题:如果在尝试访问模块参数文件时遇到权限问题,可能需要检查文件系统的权限设置。在Android系统中,某些文件和目录可能需要特定的权限才能访问。

模块参数未暴露:mali_kbase模块可能没有暴露large_page_conf参数,或者这个参数在特定的内核版本或设备配置中不可用。这可能是由于模块的版本或设备特定的限制。

内核或模块版本问题:如果问题是在特定版本的内核或模块中出现的,可能需要检查是否有已知的问题或兼容性问题。在某些情况下,升级或降级内核或模块版本可能有助于解决问题。

系统配置问题:在Android系统中,用户切换可能会触发系统配置的更改,这可能会影响到模块的加载和参数的访问。检查系统配置和初始化脚本(如init.rc)可能有助于识别问题的根源。

模块加载机制:在Android系统中,模块的加载机制可能会在用户切换时发生变化。例如,模块可能需要在用户切换后重新加载,或者在特定的初始化阶段加载。检查模块的加载机制和依赖关系可能有助于解决问题。

为了解决这个问题,你可以尝试以下步骤:

确保mali_kbase模块已加载。
检查文件系统权限,确保可以访问模块参数文件。
检查mali_kbase模块的版本和配置,确保large_page_conf参数可用。
检查内核和模块的版本,考虑是否有兼容性问题。
检查系统配置和初始化脚本,确保模块在用户切换后正确加载。

这些步骤可能需要根据具体的系统配置和问题详情进行调整。