Skip to content

fix: avoid false LSPosed disabled warning on startup - #104

Closed
alterkeyy wants to merge 2 commits into
SoClear:mainfrom
alterkeyy:fix/lsposedDetect
Closed

alterkeyy wants to merge 2 commits into
SoClear:mainfrom
alterkeyy:fix/lsposedDetect

Conversation

@alterkeyy

Copy link
Copy Markdown
Contributor

Summary

  • Remove the LSPosed activation warning shown during MainActivity.onCreate.
  • Remove the unused activation flag and warning translations.

Why

XposedServiceManager.xposedService can still be null before the framework delivers its service Binder. That state does not establish that the module is disabled, so the startup warning could be false.

Validation

  • ./gradlew :app:assembleDebug --offline (passed)

@alterkeyy

Copy link
Copy Markdown
Contributor Author

提示是在 MainActivity.onCreate() 里立即判断;判断依据是服务监听器是否已经回调。服务连接是异步的,因此启动时可能把“尚未连接”误判成“模块未启用”。
服务库显示,回调只会在框架把 Binder 送进应用后发生;null 不能证明模块未启用。当前提示因此没有可靠的判定依据。本pr移除这条误导性提示,并保留实际服务连接逻辑。

@SoClear

SoClear commented Sep 29, 2026

Copy link
Copy Markdown
Owner

我不想写那么复杂,见分支 feat/no-lsposed-toast,你试试 这个 OneUIX-Debug-feat-no-lsposed-toast-Run147-3db5940.apk

@alterkeyy alterkeyy closed this Sep 30, 2026
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