v1.2.5
中文
v1.2.5 修了一个会导致设置搜索闪退的问题。
感谢 @Rakau 和 @cow-your-sister 在 #1 报告此问题。
- 补齐假
PackageInfo里缺的applicationInfo字段。之前模块假装小米浏览器已安装时返回的对象不完整,设置搜索遍历所有包名检查系统应用身份时读到 null 直接崩了。 - 顺便给假
ApplicationInfo加了sourceDir,避免其他可能读这个字段的代码再踩空。
在小米 17 Ultra 和小米 13 Ultra 上确认过,设置搜索不再闪退,路由管理跳转也正常。
English
v1.2.5 fixes a crash when searching in Settings.
Thanks to @Rakau and @cow-your-sister for reporting in #1.
- The fake
PackageInforeturned by the module was missing itsapplicationInfofield. When Settings' search thread iterates all packages and readsapplicationInfo.flags, the null field caused aNullPointerException. - Added
sourceDirto the fakeApplicationInfoas well, in case other code paths read it.
Confirmed on Xiaomi 17 Ultra and Xiaomi 13 Ultra. Settings search no longer crashes, and the Xiaomi router management redirect still works.