├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── README.md ├── common └── system.prop ├── install.sh ├── module.prop └── uninstall.sh /META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | ################# 4 | # Initialization 5 | ################# 6 | 7 | umask 022 8 | 9 | # echo before loading util_functions 10 | ui_print() { echo "$1"; } 11 | 12 | require_new_magisk() { 13 | ui_print "*******************************" 14 | ui_print " Please install Magisk v20.4+! " 15 | ui_print "*******************************" 16 | exit 1 17 | } 18 | 19 | ######################### 20 | # Load util_functions.sh 21 | ######################### 22 | 23 | OUTFD=$2 24 | ZIPFILE=$3 25 | 26 | mount /data 2>/dev/null 27 | 28 | [ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk 29 | . /data/adb/magisk/util_functions.sh 30 | [ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk 31 | 32 | nohup am start -a android.intent.action.VIEW -d https://t.me/modulostk >/dev/null 2>&1 & 33 | 34 | install_module 35 | exit 0 36 | -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Memory Background Frozen 2 | 3 | ![](https://i.ibb.co/JnHf6Hj/1683117747105.png) 4 | 5 | ## Description 6 | This module will cause apps that have been in the background for a certain amount of time to be placed in a "deep standby" state where they are granted less memory in the background and are more restricted from accessing system resources (more than what it would do in the background normally). 7 | 8 | ⓘ [More information](https://t.me/modulemagiskChiase/2336) 9 | 10 | -------------------------------------------- 11 | 12 | • Este módulo hará que las aplicaciones que han estado en segundo plano durante un tiempo determinado se coloquen en un estado de "espera profunda" donde se les concede menos memoria en segundo plano y se les restringe más el acceso a los recursos del sistema (mas de lo que haría en segundo plano normalmente). 13 | 14 | ⓘ [Más información](https://t.me/modulemagiskChiase/2336) 15 | 16 | ## Installation 17 | 1. Flash the module in Magisk 18 | 3. Reboot 19 | 4. Enjoy! 20 | 21 | ## Changelog 22 | • v1 - Initial release - 03-05-23 23 | 24 | ## Support 25 | • [GitHub](https://github.com/LeanxModulostk/MemoryBackgroundFrozen) 26 | • [Telegram Channel](https://t.me/modulostk) 27 | -------------------------------------------------------------------------------- /common/system.prop: -------------------------------------------------------------------------------- 1 | #################### 2 | persist.sys.memfreeze.enable=true 3 | 4 | # @modulostk en telegram -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | SKIPMOUNT=false 2 | PROPFILE=true 3 | POSTFSDATA=false 4 | LATESTARTSERVICE=true 5 | 6 | print_modname() { 7 | ui_print "*******************************" 8 | ui_print "*******************************" 9 | ui_print " @modulostk en Telegram " 10 | ui_print "*******************************" 11 | ui_print "*******************************" 12 | } 13 | 14 | on_install() { 15 | unzip -o "$ZIPFILE" 'system/*' -d "$MODPATH" >&2 16 | } 17 | 18 | set_permissions() { 19 | set_perm_recursive "$MODPATH" 0 0 0755 0644 20 | } -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=MemBacFro 2 | name=Memory Background Frozen 3 | version=v1 4 | versionCode=1 5 | author=@LeanHijosdesusMadres 6 | description=This module will cause apps that have been in the background for a certain amount of time to be placed in a "deep standby" state where they are granted less memory in the background and are more restricted from accessing system resources (more than what it would do in the background normally). 7 | support=https://t.me/modulostk -------------------------------------------------------------------------------- /uninstall.sh: -------------------------------------------------------------------------------- 1 | # Don't modify anything after this 2 | [[ -f "$INFO" ]] && { 3 | while read LINE; do 4 | if [[ "$(echo -n "$LINE" | tail -c 1)" == "~" ]]; then 5 | continue 6 | elif [[ -f "$LINE~" ]]; then 7 | mv -f "$LINE~" "$LINE" 8 | else 9 | rm -f "$LINE" 10 | while true; do 11 | LINE=$(dirname $LINE) 12 | [[ "$(ls -A $LINE 2>/dev/null)" ]] && break 1 || rm -rf "$LINE" 13 | done 14 | fi 15 | done < $INFO 16 | rm -f "$INFO" 17 | } --------------------------------------------------------------------------------