Repository navigation
feat(packageinstaller): 实验性功能,新增应用包管理组件净化 - #43
Merged
Merged
Conversation
Ianzb
added a commit
that referenced
this pull request
Oct 16, 2026
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.
本PR为实验性功能:在「功能 → 实验性功能 → 应用包管理组件净化」新增针对
com.miui.packageinstaller(应用包管理组件) 的六项独立开关,默认全部关闭,保留诊断页面用于实验性功能反馈。功能范围
实现与集成
BaseLoad、BaseHook、配置、作用域及状态接口,接入实验页和多级搜索。功能源码、资源与测试集中管理,不调用其他业务 Hook,不修改公共接口,不新增运行依赖、权限或原生库。验证
78a7408上准备候选改动,272 项单元测试通过;Debug 构建及 Lint 通过,Lint 为 0 Error、35 Warning、1 Hint。5.4.5.1.2-20260618P (54512)环境实机测试通过。使用与兼容范围
当前限定 SDK 37、安装器主进程及无 split APK 的安装器。更改选项后需要重启应用包管理组件,在下次调用时生效;启用功能可能增加安装器启动耗时。
“已生效”表示对应必需 Hook 组完整注册,不代表所有业务路径均已命中;可结合诊断和实际安装器界面确认。
点击这里展开/折叠查看功能验证
| 功能 | 日志 | 判定 | |---|---|---| | 禁用推广 | 同步、异步 layout 各阻断1次;三个展示入口全部匹配失败 | **请求拦截已生效,展示层仍未完整挂载** | | 禁用风险检测 | risk_scan、intercept 各阻断1次 | 所选入口已实际拦截 | | 阻断云端配置 | cloud_v2、cloud_v3 各阻断1次 | 所选入口已实际拦截 | | 禁用安全提醒 | guard_banner 阻断1次 | 默认安全提醒过滤已执行 | | 禁用频繁检查 | 已注册,调用0次 | **仅能确认挂载,因无法触发未验证实际效果** | | 禁止安装上传 | AVL、intercept、两条 layout 均有阻断 | 已选通道实际拦截;不能据此证明全部上传流量为零 |