-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
新增:1/2GB物理内存的参数配置 新增:adjshield和fscache-ctrl使用armv7a-linux-androideabi21-clang编译,兼容32位平台 新增:禁用高通在中低端平台使用的per-process-reclaim,它的回收可能偏激进 新增:添加Adjshield的SELinux规则,由Magisk提供支持 新增:迁移到Magisk 20.3模板,向下兼容到19.0 修复:加大获取FSCC固定缓存大小的延时,修复未等待FSCC加载完毕就读取的值偏小 修复:ps/swapon/swapoff参数在BusyBox v1.31.1的兼容性,优先使用Magisk的BusyBox,/system/bin兼容性差异性太大 修复:动态获取MODULE_PATH,不再使用hardcore值,改进在低Magisk版本的兼容性 改进:完善关闭一加memory_plus,无需用户关闭“RamBoost启动加速” 改进:回滚使用巨大的shrinker调用间隔,据测试似乎有助于改进流畅度和zram利用率 改进:去掉adj档位设置,新老平台采用的adj档位完全不同 改进:调高efk并对内核内存回收线程设置高CFS优先级代替prefer_idle,改进在新老平台的表现一致性 改进:增加mem_opt_main.sh可重入性 改进:同步libcommon更新 改进:移除libpowercfg.sh Signed-off-by: Matt Yang <yccy@outlook.com>
- Loading branch information
Showing
20 changed files
with
406 additions
and
467 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/sbin/sh | ||
|
||
# If you need even more customization and prefer to | ||
# do everything on your own, declare SKIPUNZIP=1 | ||
SKIPUNZIP=0 | ||
|
||
# List all directories you want to directly replace in the system | ||
# Construct your list in the following format | ||
# This is an example | ||
# REPLACE_EXAMPLE=" | ||
# /system/app/Youtube | ||
# /system/priv-app/SystemUI | ||
# /system/framework | ||
# " | ||
REPLACE="" | ||
|
||
# ! DO NOT use any Magisk internal paths as those are NOT public API. | ||
# ! DO NOT use other functions in util_functions.sh as they are NOT public API. | ||
# ! Non public APIs are not guranteed to maintain compatibility between releases. | ||
|
||
# Available variables: | ||
# MAGISK_VER (string): the version string of current installed Magisk | ||
# MAGISK_VER_CODE (int): the version code of current installed Magisk | ||
# BOOTMODE (bool): true if the module is currently installing in Magisk Manager | ||
# MODPATH (path): the path where your module files should be installed | ||
# TMPDIR (path): a place where you can temporarily store files | ||
# ZIPFILE (path): your module's installation zip | ||
# ARCH (string): the architecture of the device. Value is either arm, arm64, x86, or x64 | ||
# IS64BIT (bool): true if $ARCH is either arm64 or x64 | ||
# API (int): the API level (Android version) of the device | ||
|
||
# Availible functions: | ||
# ui_print <msg> | ||
# print <msg> to console | ||
# Avoid using 'echo' as it will not display in custom recovery's console | ||
# abort <msg> | ||
# print error message <msg> to console and terminate installation | ||
# Avoid using 'exit' as it will skip the termination cleanup steps | ||
# set_perm <platform_name> <owner> <group> <permission> [context] | ||
# if [context] is not set, the default is "u:object_r:system_file:s0" | ||
# this function is a shorthand for the following commands: | ||
# chown owner.group platform_name | ||
# chmod permission platform_name | ||
# chcon context platform_name | ||
# set_perm_recursive <directory> <owner> <group> <dirpermission> <filepermission> [context] | ||
# if [context] is not set, the default is "u:object_r:system_file:s0" | ||
# for all files in <directory>, it will call: | ||
# set_perm file owner group filepermission context | ||
# for all directories in <directory> (including itself), it will call: | ||
# set_perm dir owner group dirpermission context | ||
|
||
ui_print "" | ||
ui_print "* QTI memory optimization" | ||
ui_print "* https://github.com/yc9559/qti-mem-opt" | ||
ui_print "* Author: Matt Yang" | ||
ui_print "* Version: v6 (20200228)" | ||
ui_print "" | ||
|
||
# Only some special files require specific permissions | ||
# The default permissions should be good enough for most cases | ||
# set_perm_recursive $MODPATH/system/lib 0 0 0755 0644 | ||
# set_perm $MODPATH/system/bin/app_process32 0 2000 0755 u:object_r:zygote_exec:s0 | ||
# set_perm $MODPATH/system/bin/dex2oat 0 2000 0755 u:object_r:dex2oat_exec:s0 | ||
# set_perm $MODPATH/system/lib/libart.so 0 0 0644 | ||
|
||
# set binaries executable | ||
set_perm_recursive $MODPATH/bin 0 0 0755 0755 |
Oops, something went wrong.