From bd0db3c8f52114b1932bab3c747412c4fa813511 Mon Sep 17 00:00:00 2001 From: HChenX Date: Thu, 13 Feb 2025 23:42:20 +0800 Subject: [PATCH] feat: Update Version to 5.2.0 --- README-en.md | 53 ++++++++++++------- README.md | 8 +-- .../appretention/hook/system/LogServices.java | 2 +- 3 files changed, 40 insertions(+), 23 deletions(-) diff --git a/README-en.md b/README-en.md index 45ac228..d7c3e74 100644 --- a/README-en.md +++ b/README-en.md @@ -17,10 +17,11 @@ ## ✨ Module Introduction -AppRetentionHook is an **LSP module** that implements **background retention** by hooking into the system’s kill logic. -📌 **Version 5.1 is a completely refactored new version!!** Give it a try! +AppRetentionHook is an **LSP module** that implements **background retention** by hooking into the +system’s kill logic. +📌 **Version 5.1+ is a completely refactored new version!!** Give it a try! -🔹 **Supported Systems** (for version 5.1): +🔹 **Supported Systems** (for version 5.1+): - ✅ **HyperOS V1 / V2** - ✅ **AOSP 10-15** @@ -32,7 +33,8 @@ AppRetentionHook is an **LSP module** that implements **background retention** b ## 🛠 Usage Notice > 📌 **Why might some applications still be killed?** -> **This module only intercepts kills triggered by system scheduling; it cannot address application crashes, self-termination, or other similar behaviors!** +> **This module only intercepts kills triggered by system scheduling; it cannot address application +crashes, self-termination, or other similar behaviors!** 📌 **Intercepted Kill Sources (system behaviors):** @@ -49,7 +51,8 @@ AppRetentionHook is an **LSP module** that implements **background retention** b - Application ANR (not responding), updates, self-termination, uninstallation, crashes, etc. 💡 **Module Objective:** -**Opened applications will not be killed due to system scheduling, thereby prolonging their background retention as much as possible!** +**Opened applications will not be killed due to system scheduling, thereby prolonging their +background retention as much as possible!** --- @@ -60,8 +63,10 @@ AppRetentionHook is an **LSP module** that implements **background retention** b 1. **Installation**: Download and install this module. 2. **Activation**: Open LSP, select this module, and enable it. 3. **Select the applicable scopes** (depending on the system): - - **MIUI / HyperOS**: `System Framework (system)` and `Battery & Performance (powerkeeper)` [if available] - - **Color OS**: `Athena`, `Battery`, and `System Framework (system)` (Note: Version 5.1 is not fully adapted for Color OS, but it is usable) + - **MIUI / HyperOS**: `System Framework (system)` and + `Battery & Performance (powerkeeper)` [if available] + - **Color OS**: `Athena`, `Battery`, and `System Framework (system)` (Note: Version 5.1+ is not + fully adapted for Color OS, but it is usable) - **OneUI**: `System Framework (system)` 4. **Restart your device!** @@ -69,7 +74,8 @@ AppRetentionHook is an **LSP module** that implements **background retention** b ## 🌟 Module Effects -✅ Testing shows that the background retention time of apps has **significantly increased**, with no system-initiated app kills observed over extended periods. +✅ Testing shows that the background retention time of apps has **significantly increased**, with no +system-initiated app kills observed over extended periods. ✅ **Even after an entire night, apps continue to run in the background.** ✅ **Example Apps** (including but not limited to): @@ -80,13 +86,17 @@ AppRetentionHook is an **LSP module** that implements **background retention** b ## ⚠ Potential Issues -⚠ **Due to modifications in the system’s operational logic, this module may have the following impacts:** +⚠ **Due to modifications in the system’s operational logic, this module may have the following +impacts:** -1. **Failure of system memory management**: When memory is low, automatic cleanup will not occur, which may result in system freezes. -2. **Increased standby power consumption**: Although the impact is minor, battery usage may be slightly higher. +1. **Failure of system memory management**: When memory is low, automatic cleanup will not occur, + which may result in system freezes. +2. **Increased standby power consumption**: Although the impact is minor, battery usage may be + slightly higher. 3. **Some devices may experience boot hang issues.** -🚨 **Strongly Recommended**: Please ensure you have a backup before using this module to avoid extreme issues such as failure to boot! +🚨 **Strongly Recommended**: Please ensure you have a backup before using this module to avoid +extreme issues such as failure to boot! --- @@ -98,18 +108,22 @@ AppRetentionHook is an **LSP module** that implements **background retention** b ❓ **Q: Does this module conflict with other retention modules?** 💡 A: Yes, **please do not use multiple modules with the same functionality simultaneously!** Examples of conflicting modules include: + - **Don-t-Kill** - **Cemiuiler** (overlapping functionalities) - **A1 Memory Management LSP Module** ❓ **Q: Why is my system freezing?** -💡 A: Please check your device's **memory usage**. This module does not perform automatic memory cleanup. +💡 A: Please check your device's **memory usage**. This module does not perform automatic memory +cleanup. ❓ **Q: Why has my standby power consumption increased?** -💡 A: With apps staying alive in the background for longer, **increased power consumption is a normal phenomenon**, though the impact is minimal. +💡 A: With apps staying alive in the background for longer, **increased power consumption is a normal +phenomenon**, though the impact is minimal. ❓ **Q: Why does my device hang during boot?** -💡 A: Some devices may be incompatible. If you encounter this issue, please uninstall the module and provide feedback. +💡 A: Some devices may be incompatible. If you encounter this issue, please uninstall the module and +provide feedback. --- @@ -117,10 +131,11 @@ Examples of conflicting modules include: 💡 Some parts of this module's code reference the following projects. Special thanks to: -| Project Name | Project Link | -|----------------|-----------------------------------------------------------------------------------| -| Cemiuiler | [Cemiuiler GitHub](https://github.com/Team-Cemiuiler/Cemiuiler/tree/main) | -| Don't Kill | [Don-t-Kill](https://github.com/HChenX/Don-t-Kill) | +| Project Name | Project Link | +|--------------|---------------------------------------------------------------------------| +| Cemiuiler | [Cemiuiler GitHub](https://github.com/Team-Cemiuiler/Cemiuiler/tree/main) | +| Don't Kill | [Don-t-Kill](https://github.com/HChenX/Don-t-Kill) | +| HookTool | [HookTool](https://github.com/HChenX/HookTool) | 📌 **Translation Provided By:** diff --git a/README.md b/README.md index 6e41130..83302f4 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ ## ✨ 模块介绍 AppRetentionHook 是一款 **Lsp 模块**,通过 **Hook 系统 kill 逻辑** 来实现 **后台保活**。 -📌 **5.1 版本是重构后的全新版本!!** 快来体验吧! +📌 **5.1+ 版本是重构后的全新版本!!** 快来体验吧! -🔹 **适配系统**(5.1 版本支持范围): +🔹 **适配系统**(5.1+ 版本支持范围): - ✅ **HyperOS V1 / V2** - ✅ **AOSP 10-15** @@ -61,7 +61,7 @@ AppRetentionHook 是一款 **Lsp 模块**,通过 **Hook 系统 kill 逻辑** 2. **激活**:进入 Lsp 选择本模块并启用 3. **勾选作用域**(不同系统): - **MIUI / HyperOS**:`系统框架(system)` 和 `电量与性能(powerkeeper) [如果有]` - - **Color OS**:`雅典娜(Athena)`、`电池`、`系统框架(system)`(5.1 版本未适配,仅可用) + - **Color OS**:`雅典娜(Athena)`、`电池`、`系统框架(system)`(5.1+ 版本未适配,仅可用) - **OneUi**:`系统框架(system)` 4. **重启设备即可!** @@ -122,6 +122,7 @@ AppRetentionHook 是一款 **Lsp 模块**,通过 **Hook 系统 kill 逻辑** |------------|---------------------------------------------------------------------------| | Cemiuiler | [Cemiuiler GitHub](https://github.com/Team-Cemiuiler/Cemiuiler/tree/main) | | Don't Kill | [Don-t-Kill](https://github.com/HChenX/Don-t-Kill) | +| HookTool | [HookTool](https://github.com/HChenX/HookTool) | 📌 **翻译提供** @@ -137,4 +138,5 @@ AppRetentionHook 是一款 **Lsp 模块**,通过 **Hook 系统 kill 逻辑** ⚠ **抄袭将导致项目闭源!请注明作者!** ## 🎉结尾 + 💖 **感谢你的支持,Enjoy your day!** 🚀 diff --git a/app/src/main/java/com/hchen/appretention/hook/system/LogServices.java b/app/src/main/java/com/hchen/appretention/hook/system/LogServices.java index 60317ce..0632d48 100644 --- a/app/src/main/java/com/hchen/appretention/hook/system/LogServices.java +++ b/app/src/main/java/com/hchen/appretention/hook/system/LogServices.java @@ -119,7 +119,7 @@ public void onChange(boolean selfChange) { } } ); - XposedLog.logI(TAG, "system boot completed!!"); + XposedLog.logI(TAG, "System boot completed!!"); } case SaveLog.ACTION_LOG_SERVICE_CONTENT -> { SaveLog.LogContentData logContentData;