Code Monkey home page Code Monkey logo

a1memory's Introduction

A1 memory management

C Language C++ Language Bash Shell Android Support arm64-v8a Support Join Telegram Channel

English | 简体中文 | Русский

Third-party memory management running on Android can reduce the running memory used by applications.

✨important function

  • Managing the survival and termination of background processes
  • Specifying the release of background application child processes
  • Preventing Low Memory Killer Daemon from killing background processes
  • Automatically releasing non-essential memory
  • Putting applications to sleep to reduce CPU and memory usage

💡Description

  • This module only supports Android 8 to 14, and the platform is limited to arm64-v8a.
  • Magisk version should be 20.4+ and ksu is mostly compatible.
  • This module is unlikely to conflict with other modules.

Default List Path

列表图片

  • List File: /sdcard/Android/HChai/HC_memory/名单列表.conf

📱Terminal UI

Custom toggle functionality, only supports simple feature toggling. For more detailed parameter configurations, please see 📝 Custom Configuration. UI图片 How to access the Terminal UI interface?

  • You can use the amui command in Termux or execute /sdcard/Android/HChai/HC_memory/terminal.sh in the mt manager.

How to save and toggle features?

  • Use the arrow keys for navigation and press Enter to save.
  • If there's no keyboard, click on the bottom right corner "lm" to summon the keyboard.

What does the feature do?

  • An explanation will be added to the Terminal UI later. Currently, only the Json configuration guide is available.

📝Custom Configuration

The built-in configuration is suitable for most devices, but there are still some devices that may not work with the default configuration. Therefore, more adjustable parameters are provided. This requirement was already taken into consideration when designing the HAMv2 framework, and most parameters can be customized and adjusted. Moreover, this project can be embedded and run within other modules. The JSON configuration file is located at /data/adb/modules/Hc_memory/config/memory.json

Project Information

"project": {
    "name": "官方配置 [23.06.25]",
    "author": "火機@coolapk"
}
Field Type Description
name string Name of the configuration file
author string Author information of the configuration file

The name and author are reflected in the logs in the following format:

[2023-07-06 19:00:22] [info] config 官方配置 [23.06.25] | by: 火機@coolapk
  • For more detailed instructions on the JSON configuration file, please refer tohere.

🔍Frequently Asked Questions

Can it be used in conjunction with other memory optimization modules?

  • A1 memory management works completely differently from other memory optimization methods, so using it together with other modules will only yield a cumulative effect of 1+1=2.

Does it consume power?

  • Not at all. I spent a considerable amount of time optimizing the core code while developing the HAMv2 framework. It is implemented in low-level languages such as C/C++, resulting in minimal power consumption that can be completely ignored.

Does it conflict with other Magisk modules or Xposed modules?

  • It is highly unlikely to conflict with other modules. So far, no conflicts have been encountered with this module.

Does it cause power consumption during standby?

  • The HAMv2 framework does not cause power consumption during standby, as the A1 memory management enters a sleep state when the device is in standby mode.

Why is the background process still killed even after enabling the lmkd process kill prevention?

  • This is because it only prevents lmkd from killing background processes and does not include the background process killing programs from various phone manufacturers.

How to configure the smart list?

  • To configure the smart list, you need to add the rule "KILL package_name:subprocess_name" in the respective list. Before adding, make sure you understand the functionality and purpose of the subprocess to avoid any unexpected issues.

Why does the device enter fb mode after a certain period of time?

  • Most cases of this issue occur on Samsung devices when the hook to prevent lmkd process killing is enabled. This is likely the cause of the problem. Currently, there is no solution available, but you can try disabling the hook to prevent lmkd process killing to resolve it.

Why is the process playing audio being paused?

  • The occurrence of audio process being paused is rare. If it indeed happens, you can add the process to the whitelist or disable the app hibernation feature. This will ensure continuous operation of the audio process without being paused.

Not compatible with this platform: xxxx error when installing the module.

  • Currently, the module only supports the arm-v8a platform and does not support other platforms temporarily.

🚀download

🌟Star History

Star History Chart

🙏Acknowledgments

Thanks to the following users or projects for their source code contributions to this project:

Thanks to the following users for their testing feedback and bug identification:

  • @火機(coolapk)

🎉Support Donations

If you find this module useful, you can make a donation to support me.

a1memory's People

Contributors

oneb1ank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

a1memory's Issues

Source repo of the library?

Could you please point out where the sources for the libhook_lmkd.so can be found? I assume that's also GPL licensed? Thanks in advance!

设备自动重启到Bootloader(即fastboot模式)

设备信息

  • 型号: iQOO9 (V2171)
  • Soc: 骁龙8Gen1
  • Android版本: 13
  • OriginOS版本: PD2171_A_13.1.3.0.W10.V000L1 (OrginOS3)

A1内存管理配置

  • 全部遵循默认设置

问题:
开机一段时间后, 自动重启进入Bootloader .
A1内存管理日志无报错

9.24(427)版本bug

9.24(427)版本在小米13p的安卓14版本MIUI14.0.1.14上安装重启后卡第二屏,无限重启

A1需要重启手机来应用新设置吗?

image
我添加了几个白名单应用,A1需要重启手机来应用新配置吗?还是说默认就加载新配置了,不用重启手机。我在log里看不到相关信息。
10月5号的最新版A1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.