feat: allow opening APKs with any app#127
Conversation
| <string name="system_cc_disable_bluetooth_restrict_title">禁用蓝牙临时关闭态</string> | ||
| <string name="system_cc_collapse_after_clicked_title">单击开关后自动收起</string> | ||
| <string name="various_anyinstaller_title">允许使用非MIUI的软件包安装器</string> | ||
| <string name="various_anyinstaller_sum">去除软件包安装intent中的安装器包名过滤条件。</string> |
There was a problem hiding this comment.
建议这个描述尽量非技术化一点,或者这个描述直接去掉
sum最后一般不带标点,name一般以summ结尾
There was a problem hiding this comment.
我把标题改得更精确了一点,变成“去除对 APK 文件打开方式的限制”,因为单独只靠这一个开关无法让其他软件包安装器生效(效果只是能选择 APK Info 之类的程序来打开 APK 文件),必须得把 MIUI 安装器删掉才行。
但是大多数用户的需求应该还是更换安装器,所以我把上面这段话也写在 summary 里面了,结果 summary 就变得很长。请看一下现在 summary 的长度是否可以接受?
9fe83db to
61f513a
Compare
61f513a to
b41b6a2
Compare
|
choosebestactivity这里,需要判断intent的类型,看源码里面是有martket相关的。 |
|
Hi all, it is the best module for Miui. How to hide Airplane Mode icon on status bar. Many thanks! |
* New translations strings.xml (Spanish) * New translations strings.xml (Czech) * New translations strings.xml (Japanese) * New translations strings.xml (Polish) * New translations strings.xml (Russian) * New translations strings.xml (Turkish) * New translations strings.xml (Chinese Traditional) * New translations strings.xml (Vietnamese) * New translations strings.xml (Portuguese, Brazilian)
b41b6a2 to
7dbd8ec
Compare
|
我又回来用 MIUI 了 :-/
现在在 HyperOS 上,这段代码是把所有的 mimarket 或 market scheme 的 intent 都强制跳转到小米应用商店。对于通用的 market scheme 来说,这也是一种劫持行为。这里应用 hook 之后,market scheme 会弹出应用市场的选择,mimarket 直接进入小米应用商店,我认为这样都是符合预期的。 |
8660680 to
e9c89ac
Compare
允许使用非安装器的 app 打开 APK 文件。
e9c89ac to
9a7b305
Compare
|
更正了 PR 标题和代码中的描述,现在是“允许非安装器 app 打开 APK 文件”了,不再提及默认安装器的事情,以免造成误解。后面会有专门提交修改默认安装器。 |
允许使用非 MIUI 自带的安装器,逻辑是跳过
hookChooseBestActivity中的intent.setPackage("com.miui.packageinstaller")操作,直接返回原本的 ResolveInfo.我在小米 13,MIUI 14.0.13 稳定版上测试通过,不管是否删除 com.miui.packageinstaller 这个包均可工作。但是要注意,如果不删除这个包的话,intent resolver 里面还是只有 MIUI 的安装器,而没有原生的 com.android.packageinstaller.