Repository navigation
Conversation
Avoid recursive HyperOS font-map initialization in the resident shell process. Reuse an already registered Android network security provider and defer runtime island bitmap renderer construction until needed.
Owner
Author
发0.1.10我已经试了,就已经没有问题了。刚刚又更新了v0.2.0,也没有问题。 这个PR我直接关了,谢谢及时修复! 另外我看到模型的选择功能也有了,多谢多谢!相当的好用! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述
在 Xiaomi 17(Android 17 / HyperOS 4) 上安装 Droidance 0.1.9,配置模型 API Key 后,发送“你是什么模型?”等普通消息时,原版界面显示:
我觉得这个问题是应该是澎湃4系统上才有的,因为我把0.1.9安装在小米pad 7 pro (澎湃3系统)上时,相同的模型 API 配置在小米 Pad 上可以正常使用。
但是手上只有小米17,没有其他澎湃4机型可以测试了。
原因分析
真机日志与源码排查表明,常驻 shell app_process 的初始化过程出现了三个连续问题:
对应的常驻 shell 运行时初始化代码首次出现在 a2dcb68(feat(runtime): run the Agent in a resident shell runtime)。它属于特定系统实现上的兼容性回归,而不是所有 Android 设备必现的问题。
本次修复
RuntimeApplicationContext.kt
RuntimeSurfaceController.kt
本 PR 仅改动上述两个 Kotlin 文件,不修改用户的模型配置、Root 设置或系统字体。
复现与验证
修复前后截图
已经在同一台 Xiaomi 17 真机记录原版报错和修复版正常回复的截图,截图链接将在可公开上传 GitHub 附件时补充,避免引用无法访问的私有文件地址。


修复前的问题截图:
修复后的截图:
验证范围
目前仅针对上述 Xiaomi 17 / HyperOS 4 / Android 17 环境验证过真实任务执行;其他机型、Android 版本以及悬浮状态栏的全面回归测试仍有待补充。