v1.2.6
中文
v1.2.6 修复小米互传接收链接时仍显示小米浏览器图标的问题。
感谢 @189521394 在 #2 提出功能建议并提供灵感来源;本功能参考了原项目 com.fuckXiaomi.hookBrowser 的思路。
- 当小米互传接收链接弹窗读取小米浏览器图标时,动态替换为用户当前默认浏览器的图标。
- 同步处理小米互传相关通知里的浏览器图标,避免链接已经交给默认浏览器但界面仍显示小米浏览器。
- 修正
NotificationManager.notify(String, int, Notification)参数判断,避免把 tag 误当成包名。 - 保留 v1.2.5 的设置搜索闪退修复,继续补齐假
PackageInfo.applicationInfo和ApplicationInfo.sourceDir。 - 已在真机上测试小米互传链接接收弹窗,图标替换正常。
这一版只替换显示图标,不改变默认浏览器选择策略,也不会把非网页文件强行当成链接打开。
English
v1.2.6 fixes Xiaomi Browser icons still appearing in Mi Share link-receive UI.
Thanks to @189521394 for suggesting this in #2 and sharing the inspiration; this feature also references the idea from the original com.fuckXiaomi.hookBrowser project.
- Replace Xiaomi Browser icons with the user's current default browser icon when Mi Share reads the browser icon for a received link popup.
- Also cover Mi Share browser-icon notification paths so links handed to the default browser do not still show Xiaomi Browser branding.
- Fix the
NotificationManager.notify(String, int, Notification)argument handling so the tag is not mistaken for a package name. - Keep the v1.2.5 Settings-search crash fix by preserving the fake
PackageInfo.applicationInfoandApplicationInfo.sourceDirfields. - Tested on-device with Mi Share link receive popup icon replacement.
This release only changes displayed icons. It does not change browser selection behavior or force non-web files to open as links.