XhyEax / SoftApHelper

SoftAp static server IP(v4) for Android 9+; SoftAp type hide for Android 10+; SoftAp 5G channel and bandwidth lock for Android 13+ (Xposed)
220 stars 22 forks source link

USB共享网络IP依旧随机 #25

Open adk23333 opened 2 weeks ago

adk23333 commented 2 weeks ago

硬件平台:小米6 系统:lineage 21 安卓14

ifconfigtext.txt priv-app.zip

XhyEax commented 2 weeks ago

勾选系统框架之后,也无法固定ip吗? wifi热点ip能固定吗? 日志过滤TAG=SoftApHelper,看看有啥输出。

XhyEax commented 2 weeks ago

大概看了一下反编译的代码,Hook点理论上没问题。

adk23333 commented 2 weeks ago

勾选系统框架之后,也无法固定ip吗?

是的

wifi热点ip能固定吗?

也不能

日志过滤TAG=SoftApHelper,看看有啥输出。

输出如下

2024-02-23 15:47:45.609  9559-9559  xp.softaphelper         pid-9559                             I  Late-enabling -Xcheck:jni
2024-02-23 15:47:45.633  9559-9559  xp.softaphelper         pid-9559                             I  Using CollectorTypeCC GC.
2024-02-23 15:47:45.647  9559-9559  xp.softaphelper         pid-9559                             W  Core platform API violation: Ljava/lang/Class;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI
2024-02-23 15:47:45.647  9559-9559  xp.softaphelper         pid-9559                             W  Core platform API violation: Ljava/lang/reflect/Executable;->artMethod:J from Lcom/android/internal/os/Zygote; using JNI
2024-02-23 15:47:45.647  9559-9559  xp.softaphelper         pid-9559                             W  Core platform API violation: Ljava/lang/reflect/Executable;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI
2024-02-23 15:47:45.662  9559-9559  xp.softaphelper         pid-9559                             W  Core platform API violation: Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; from Lcom/android/internal/os/Zygote; using JNI
2024-02-23 15:47:45.662  9559-9559  xp.softaphelper         pid-9559                             W  Core platform API violation: Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; from Lcom/android/internal/os/Zygote; using JNI
2024-02-23 15:47:45.663  9559-9559  xp.softaphelper         pid-9559                             W  Core platform API violation: Ldalvik/system/DexPathList$Element;->dexFile:Ldalvik/system/DexFile; from Lcom/android/internal/os/Zygote; using JNI
2024-02-23 15:47:45.663  9559-9559  xp.softaphelper         pid-9559                             W  Core platform API violation: Ldalvik/system/DexFile;->mCookie:Ljava/lang/Object; from Lcom/android/internal/os/Zygote; using JNI
2024-02-23 15:47:45.707  9559-9559  xp.softaphelper         pid-9559                             W  Unsupported class loader
XhyEax commented 2 weeks ago

看日志像是插件代码根本没加载成功,别的xposed插件能正常工作吗?

---原始邮件--- 发件人: @.> 发送时间: 2024年6月18日(周二) 下午3:24 收件人: @.>; 抄送: @.**@.>; 主题: Re: [XhyEax/SoftApHelper] USB共享网络IP依旧随机 (Issue #25)

勾选系统框架之后,也无法固定ip吗?

是的

wifi热点ip能固定吗?

也不能

日志过滤TAG=SoftApHelper,看看有啥输出。

输出如下 2024-02-23 15:47:45.609 9559-9559 xp.softaphelper pid-9559 I Late-enabling -Xcheck:jni 2024-02-23 15:47:45.633 9559-9559 xp.softaphelper pid-9559 I Using CollectorTypeCC GC. 2024-02-23 15:47:45.647 9559-9559 xp.softaphelper pid-9559 W Core platform API violation: Ljava/lang/Class;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI 2024-02-23 15:47:45.647 9559-9559 xp.softaphelper pid-9559 W Core platform API violation: Ljava/lang/reflect/Executable;->artMethod:J from Lcom/android/internal/os/Zygote; using JNI 2024-02-23 15:47:45.647 9559-9559 xp.softaphelper pid-9559 W Core platform API violation: Ljava/lang/reflect/Executable;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI 2024-02-23 15:47:45.662 9559-9559 xp.softaphelper pid-9559 W Core platform API violation: Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; from Lcom/android/internal/os/Zygote; using JNI 2024-02-23 15:47:45.662 9559-9559 xp.softaphelper pid-9559 W Core platform API violation: Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; from Lcom/android/internal/os/Zygote; using JNI 2024-02-23 15:47:45.663 9559-9559 xp.softaphelper pid-9559 W Core platform API violation: Ldalvik/system/DexPathList$Element;->dexFile:Ldalvik/system/DexFile; from Lcom/android/internal/os/Zygote; using JNI 2024-02-23 15:47:45.663 9559-9559 xp.softaphelper pid-9559 W Core platform API violation: Ldalvik/system/DexFile;->mCookie:Ljava/lang/Object; from Lcom/android/internal/os/Zygote; using JNI 2024-02-23 15:47:45.707 9559-9559 xp.softaphelper pid-9559 W Unsupported class loader
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

adk23333 commented 2 weeks ago

看日志像是插件代码根本没加载成功,别的xposed插件能正常工作吗?

除了这个插件,还有一个shamrock的QQ插件,它是正常的。lsp是1.9.2(7024)Zygisk版本

adk23333 commented 2 weeks ago

依照这篇文章解除Android 隐藏的 API 限制 日志变成了这样

--------- beginning of crash
2024-02-23 15:47:44.476  1898-2543  SoftApManager[wlan1]    system_server                        I  Need to wait for driver country code update before starting
2024-02-23 15:47:49.484  1898-2543  SoftApManager[wlan1]    system_server                        I  Timed out waiting for driver country code change, continue starting anyway.
2024-02-23 15:47:49.485  1898-2543  SoftApManager[wlan1]    system_server                        D  startSoftAp: channels {1=0} iface wlan1 country CN
2024-02-23 15:47:49.565  1898-2543  SoftApManager[wlan1]    system_server                        D  Soft AP is started 
2024-02-23 15:47:49.568  1898-2543  SoftApManager[wlan1]    system_server                        D  SoftAp is ready for use
2024-02-23 15:47:49.584  1898-2543  SoftApManager[wlan1]    system_server                        D  Resetting connected clients on start
2024-02-23 15:47:50.073  1898-2543  SoftApManager[wlan1]    system_server                        D  SoftApInfo update SoftApInfo{bandwidth= 2, frequency= 2427,bssid=ba:72:24:c0:74:55, wifiStandard= 4, mApInstanceIdentifier= wlan1, mIdleShutdownTimeoutMillis= 0}, isRemoved: false
2024-02-23 15:47:50.074  1898-2543  SoftApManager[wlan1]    system_server                        D  rescheduleTimeoutMessageIfNeeded wlan1, timeoutEnabled=false, isPlugged=false, clientNumber=0
2024-02-23 15:47:50.074  1898-2543  SoftApManager[wlan1]    system_server                        D  Timeout message canceled on wlan1
2024-02-23 15:47:50.078  1898-2543  SoftApManager[wlan1]    system_server                        D  SoftApInfo update SoftApInfo{bandwidth= 2, frequency= 2427,bssid=ba:72:24:c0:74:55, wifiStandard= 4, mApInstanceIdentifier= wlan1, mIdleShutdownTimeoutMillis= 0}, isRemoved: false
2024-02-23 15:48:11.847  1898-2543  SoftApManager[wlan1]    system_server                        D   currentstate: StartedState
2024-02-23 15:48:11.930  1898-2543  SoftApManager[wlan1]    system_server                        D  Soft AP is stopped
2024-02-23 15:48:11.930  1898-2543  SoftApManager[wlan1]    system_server                        D  Timeout message canceled on wlan1
2024-02-23 15:48:11.931  1898-2543  SoftApManager[unknown]  system_server                        D  SoftApInfo update null, isRemoved: false

IP依旧是随机的,不过好歹插件能启动了

XhyEax commented 2 weeks ago

你是重新编译了插件代码吗?

过滤SoftApHelper

---原始邮件--- 发件人: @.> 发送时间: 2024年6月18日(周二) 下午4:16 收件人: @.>; 抄送: @.**@.>; 主题: Re: [XhyEax/SoftApHelper] USB共享网络IP依旧随机 (Issue #25)

依照这篇文章解除Android 隐藏的 API 限制 日志变成了这样 --------- beginning of crash 2024-02-23 15:47:44.476 1898-2543 SoftApManager[wlan1] system_server I Need to wait for driver country code update before starting 2024-02-23 15:47:49.484 1898-2543 SoftApManager[wlan1] system_server I Timed out waiting for driver country code change, continue starting anyway. 2024-02-23 15:47:49.485 1898-2543 SoftApManager[wlan1] system_server D startSoftAp: channels {1=0} iface wlan1 country CN 2024-02-23 15:47:49.565 1898-2543 SoftApManager[wlan1] system_server D Soft AP is started 2024-02-23 15:47:49.568 1898-2543 SoftApManager[wlan1] system_server D SoftAp is ready for use 2024-02-23 15:47:49.584 1898-2543 SoftApManager[wlan1] system_server D Resetting connected clients on start 2024-02-23 15:47:50.073 1898-2543 SoftApManager[wlan1] system_server D SoftApInfo update SoftApInfo{bandwidth= 2, frequency= 2427,bssid=ba:72:24:c0:74:55, wifiStandard= 4, mApInstanceIdentifier= wlan1, mIdleShutdownTimeoutMillis= 0}, isRemoved: false 2024-02-23 15:47:50.074 1898-2543 SoftApManager[wlan1] system_server D rescheduleTimeoutMessageIfNeeded wlan1, timeoutEnabled=false, isPlugged=false, clientNumber=0 2024-02-23 15:47:50.074 1898-2543 SoftApManager[wlan1] system_server D Timeout message canceled on wlan1 2024-02-23 15:47:50.078 1898-2543 SoftApManager[wlan1] system_server D SoftApInfo update SoftApInfo{bandwidth= 2, frequency= 2427,bssid=ba:72:24:c0:74:55, wifiStandard= 4, mApInstanceIdentifier= wlan1, mIdleShutdownTimeoutMillis= 0}, isRemoved: false 2024-02-23 15:48:11.847 1898-2543 SoftApManager[wlan1] system_server D currentstate: StartedState 2024-02-23 15:48:11.930 1898-2543 SoftApManager[wlan1] system_server D Soft AP is stopped 2024-02-23 15:48:11.930 1898-2543 SoftApManager[wlan1] system_server D Timeout message canceled on wlan1 2024-02-23 15:48:11.931 1898-2543 SoftApManager[unknown] system_server D SoftApInfo update null, isRemoved: false
IP依旧是随机的,不过好歹插件能启动了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

adk23333 commented 2 weeks ago

你是重新编译了插件代码吗? 过滤SoftApHelper

抱歉,选错tag了

2024-06-18 16:29:47.983 29153-29153 xp.softaphelper         pid-29153                            I  Late-enabling -Xcheck:jni
2024-06-18 16:29:48.003 29153-29153 xp.softaphelper         pid-29153                            I  Using CollectorTypeCC GC.
2024-06-18 16:29:48.015 29153-29153 xp.softaphelper         pid-29153                            W  Core platform API violation: Ljava/lang/Class;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI
2024-06-18 16:29:48.015 29153-29153 xp.softaphelper         pid-29153                            W  Core platform API violation: Ljava/lang/reflect/Executable;->artMethod:J from Lcom/android/internal/os/Zygote; using JNI
2024-06-18 16:29:48.015 29153-29153 xp.softaphelper         pid-29153                            W  Core platform API violation: Ljava/lang/reflect/Executable;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI
2024-06-18 16:29:48.028 29153-29153 xp.softaphelper         pid-29153                            W  Core platform API violation: Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; from Lcom/android/internal/os/Zygote; using JNI
2024-06-18 16:29:48.028 29153-29153 xp.softaphelper         pid-29153                            W  Core platform API violation: Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; from Lcom/android/internal/os/Zygote; using JNI
2024-06-18 16:29:48.028 29153-29153 xp.softaphelper         pid-29153                            W  Core platform API violation: Ldalvik/system/DexPathList$Element;->dexFile:Ldalvik/system/DexFile; from Lcom/android/internal/os/Zygote; using JNI
2024-06-18 16:29:48.028 29153-29153 xp.softaphelper         pid-29153                            W  Core platform API violation: Ldalvik/system/DexFile;->mCookie:Ljava/lang/Object; from Lcom/android/internal/os/Zygote; using JNI
2024-06-18 16:29:48.070 29153-29153 xp.softaphelper         pid-29153                            W  Unsupported class loader

还是老样子,看来不是这方面的问题

XhyEax commented 2 weeks ago

显示warning日志,然后搜索tag,看上下文。

---原始邮件--- 发件人: @.> 发送时间: 2024年6月18日(周二) 下午4:32 收件人: @.>; 抄送: @.**@.>; 主题: Re: [XhyEax/SoftApHelper] USB共享网络IP依旧随机 (Issue #25)

你是重新编译了插件代码吗? 过滤SoftApHelper

抱歉,选错tag了 2024-06-18 16:29:47.983 29153-29153 xp.softaphelper pid-29153 I Late-enabling -Xcheck:jni 2024-06-18 16:29:48.003 29153-29153 xp.softaphelper pid-29153 I Using CollectorTypeCC GC. 2024-06-18 16:29:48.015 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ljava/lang/Class;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.015 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ljava/lang/reflect/Executable;->artMethod:J from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.015 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ljava/lang/reflect/Executable;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.028 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.028 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.028 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ldalvik/system/DexPathList$Element;->dexFile:Ldalvik/system/DexFile; from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.028 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ldalvik/system/DexFile;->mCookie:Ljava/lang/Object; from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.070 29153-29153 xp.softaphelper pid-29153 W Unsupported class loader
还是老样子,看来不是这方面的问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

XhyEax commented 2 weeks ago

或者过滤pid-29153,上下文应该有报错

---原始邮件--- 发件人: @.> 发送时间: 2024年6月18日(周二) 下午4:32 收件人: @.>; 抄送: @.**@.>; 主题: Re: [XhyEax/SoftApHelper] USB共享网络IP依旧随机 (Issue #25)

你是重新编译了插件代码吗? 过滤SoftApHelper

抱歉,选错tag了 2024-06-18 16:29:47.983 29153-29153 xp.softaphelper pid-29153 I Late-enabling -Xcheck:jni 2024-06-18 16:29:48.003 29153-29153 xp.softaphelper pid-29153 I Using CollectorTypeCC GC. 2024-06-18 16:29:48.015 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ljava/lang/Class;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.015 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ljava/lang/reflect/Executable;->artMethod:J from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.015 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ljava/lang/reflect/Executable;->accessFlags:I from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.028 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList; from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.028 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ldalvik/system/DexPathList;->dexElements:[Ldalvik/system/DexPathList$Element; from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.028 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ldalvik/system/DexPathList$Element;->dexFile:Ldalvik/system/DexFile; from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.028 29153-29153 xp.softaphelper pid-29153 W Core platform API violation: Ldalvik/system/DexFile;->mCookie:Ljava/lang/Object; from Lcom/android/internal/os/Zygote; using JNI 2024-06-18 16:29:48.070 29153-29153 xp.softaphelper pid-29153 W Unsupported class loader
还是老样子,看来不是这方面的问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

adk23333 commented 2 weeks ago

显示warning日志,然后搜索tag,看上下文。

我并没有重新编译它,不过现在看来等我晚点有空clone仓库下来试试吧

XhyEax commented 2 weeks ago

显示warning日志,然后搜索tag,看上下文。

我并没有重新编译它,不过现在看来等我晚点有空clone仓库下来试试吧

看全量的日志,然后ctrl+f搜索Unsupported class loader,日志的上下文应该包含加载失败的原因