Skip to content

restriction · 限制代理 ​

拦截 RestrictionsManager(用户限制策略)。替换 ServiceManager.sCache["restrictions"],改写限制查询的 callingUid/包名。

拦截的服务 ​

Context.RESTRICTIONS_SERVICE,继承 BinderInvocationProxy。

关键行为 ​

UID/包名参数改写为主,VirtualXposed 不重实现限制服务。

拦截方法清单 ​

从源码 onBindMethods / @Inject 内部类提取的 MethodProxy 拦截点:

- getApplicationRestrictions
- notifyPermissionResponse
- requestPermission

拦截与转发流程 ​

基于 VirtualApp 与 epic,仅供学习研究。VirtualApp 禁止商用。