Open
Conversation
- **新增功能**: 添加了 `FuckSubScreenWhiteList` Hook 类,通过拦截 `ActivityStarterImpl` 中的 `isShouldShowOnRearDisplay` 和 `isAllowedToStartOnRearDisplay` 方法,强制返回 `true` 以解除背屏软件使用限制。
- **界面配置**:
- 在 `framework_display.xml` 中新增了相关设置选项。
- 补全了中英文语言资源文件(`strings_app.xml`)中的标题与描述。
- **集成**: 在 `SystemFrameworkV` 中初始化并注册了该 Hook 逻辑。
Signed-off-by: ghhccghk <2137610394@qq.com>
- **新增功能**: 在 `FuckSubScreenWhiteList` 中新增 Hook 逻辑,支持禁止背屏在息屏或关闭时自动返回桌面。 - **界面优化**: 在 `framework_display.xml` 中新增“背屏”设置分类(PreferenceCategory),并将背屏白名单与新功能选项归类。 - **资源更新**: 补充了中英文对应的字符串资源 `system_framework_fuck_subscreen_not_go_to_home` 及 `subscreen`。 Signed-off-by: ghhccghk <2137610394@qq.com>
- **XML 结构修复:** 修正了 `PreferenceCategory` 标签的闭合逻辑,解决了背屏(subscreen)配置项在 XML 中的嵌套层级问题。 - **格式调整:** 统一了配置项的缩进格式,提升了资源文件的可读性。 Signed-off-by: ghhccghk <2137610394@qq.com>
- **逻辑修正:** 在 `handlerTransitionFinished` 方法的 Hook 逻辑中,将修改的参数索引从 `args[4]` 更正为 `args[3]`。 Signed-off-by: ghhccghk <2137610394@qq.com>
- **新增 Hook:** 在 `ActivityStarterImpl` 类中新增了对 `handleSubScreen` 方法的拦截。 - **逻辑实现:** 强制 `handleSubScreen` 方法返回 `false`,以进一步优化或绕过系统背屏显示的限制。 Signed-off-by: ghhccghk <2137610394@qq.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
TIP This summary will be updated as you push new changes. Give us feedback
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.
FuckSubScreenWhiteListHook 类,通过拦截ActivityStarterImpl中的isShouldShowOnRearDisplay和isAllowedToStartOnRearDisplay方法,强制返回true以解除背屏软件使用限制。framework_display.xml中新增了相关设置选项。strings_app.xml)中的标题与描述。SystemFrameworkV中初始化并注册了该 Hook 逻辑。