├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── README.md ├── customize.sh ├── module.prop └── service.sh /META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | 2 | #!/sbin/sh 3 | 4 | ################# 5 | # Initialization 6 | ################# 7 | 8 | umask 022 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 | ######################### 21 | # Load util_functions.sh 22 | ######################### 23 | 24 | OUTFD=$2 25 | ZIPFILE=$3 26 | 27 | 28 | mount /data 2>/dev/null 29 | 30 | [ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk 31 | . /data/adb/magisk/util_functions.sh 32 | [ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk 33 | 34 | nohup am start -a android.intent.action.VIEW -d https://t.me/modulostk >/dev/null 2>&1 & 35 | 36 | install_module 37 | exit 0 -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Display Overclocking 2 | 3 | ## Description 4 | This module helps in reducing screen display lag, improves frame rate and greatly improves the overall interactive experience of the mobile phone. It will feel as smooth as iOS. 5 | 6 | ▸ Details: 7 | 1. Tested on Adreno devices only 8 | 2. For screens from 60 to 120 hz 9 | 3. Better support for Android 11 to 14 10 | 11 | ## Installation 12 | 1. Flash the module in Magisk 13 | 2. Reboot 14 | 3. Enjoy! 15 | 4. For future updates you must uninstall the previous version. 16 | 17 | ## Soport 18 | - [GitHub](https://github.com/LeanxModulostk/DisplayOverclocking) 19 | - [Telegram Channel](https://t.me/modulostk) 20 | 21 | ## Special Thanks 22 | 23 | • yexCm for the great work 24 | 25 | • [Zackptg5](https://github.com/Zackptg5) for the MMT-Ex template 26 | 27 | • [Topjohnwu](https://github.com/topjohnwu) for making Magisk -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | ########################################################################################## 2 | # 3 | # Magisk模块安装脚本 4 | # 5 | ########################################################################################## 6 | ########################################################################################## 7 | # 8 | # 使用说明: 9 | # 10 | # 1. 将文件放入系统文件夹(删除placeholder文件) 11 | # 2. 在module.prop中填写您的模块信息 12 | # 3. 在此文件中配置和调整 13 | # 4. 如果需要开机执行脚本,请将其添加到post-fs-data.sh或service.sh 14 | # 5. 将其他或修改的系统属性添加到system.prop 15 | # 16 | ########################################################################################## 17 | ########################################################################################## 18 | # 19 | # 安装框架将导出一些变量和函数。 20 | # 您应该使用这些变量和函数来进行安装。 21 | # 22 | # !请不要使用任何Magisk的内部路径,因为它们不是公共API。 23 | # !请不要在util_functions.sh中使用其他函数,因为它们也不是公共API。 24 | # !不能保证非公共API在版本之间保持兼容性。 25 | # 26 | # 可用变量: 27 | # 28 | # MAGISK_VER (string):当前已安装Magisk的版本的字符串(字符串形式的Magisk版本) 29 | # MAGISK_VER_CODE (int):当前已安装Magisk的版本的代码(整型变量形式的Magisk版本) 30 | # BOOTMODE (bool):如果模块当前安装在Magisk Manager中,则为true。 31 | # MODPATH (path):你的模块应该被安装到的路径 32 | # TMPDIR (path):一个你可以临时存储文件的路径 33 | # ZIPFILE (path):模块的安装包(zip)的路径 34 | # ARCH (string): 设备的体系结构。其值为arm、arm64、x86、x64之一 35 | # IS64BIT (bool):如果$ARCH(上方的ARCH变量)为arm64或x64,则为true。 36 | # API (int):设备的API级别(Android版本) 37 | # 38 | # 可用函数: 39 | # 40 | # ui_print 41 | # 打印(print)到控制台 42 | # 避免使用'echo',因为它不会显示在定制recovery的控制台中。 43 | # 44 | # abort 45 | # 打印错误信息到控制台并终止安装 46 | # 避免使用'exit',因为它会跳过终止的清理步骤 47 | # 48 | ########################################################################################## 49 | 50 | ########################################################################################## 51 | # SKIPUNZIP 52 | ########################################################################################## 53 | 54 | # 如果您需要更多的自定义,并且希望自己做所有事情 55 | # 请在custom.sh中标注SKIPUNZIP=1 56 | # 以跳过提取操作并应用默认权限/上下文上下文步骤。 57 | # 请注意,这样做后,您的custom.sh将负责自行安装所有内容。 58 | SKIPUNZIP=0 59 | 60 | ########################################################################################## 61 | # 替换列表 62 | ########################################################################################## 63 | 64 | # 列出你想在系统中直接替换的所有目录 65 | # 查看文档,了解更多关于Magic Mount如何工作的信息,以及你为什么需要它 66 | 67 | 68 | # 按照以下格式构建列表 69 | # 这是一个示例 70 | REPLACE_EXAMPLE=" 71 | /system/app/Youtube 72 | /system/priv-app/SystemUI 73 | /system/priv-app/Settings 74 | /system/framework 75 | " 76 | 77 | # 在这里建立您自己的清单 78 | REPLACE=" 79 | " 80 | ########################################################################################## 81 | # 安装设置 82 | ########################################################################################## 83 | 84 | # 如果SKIPUNZIP=1您将会需要使用以下代码 85 | # 当然,你也可以自定义安装脚本 86 | # 需要时请删除# 87 | # 将 $ZIPFILE 提取到 $MODPATH 88 | # ui_print "- 解压模块文件" 89 | # unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2 90 | # 删除多余文件 91 | # rm -rf \ 92 | # $MODPATH/system/placeholder $MODPATH/customize.sh \ 93 | # $MODPATH/*.md $MODPATH/.git* $MODPATH/LICENSE 2>/dev/null 94 | 95 | TMPDIR=$NVBASE/low_screen_touch_delay 96 | [ -d $TMPDIR ] && rm -rf $TMPDIR 97 | mkdir -p $TMPDIR 98 | 99 | unzip -o "$ZIPFILE" module.prop -d $TMPDIR >&2 100 | chmod -R 777 $TMPDIR 101 | 102 | MODID=`grep_prop id $TMPDIR/module.prop` 103 | MODAUTHOR=`grep_prop author $TMPDIR/module.prop` 104 | MODNAME=`grep_prop name $TMPDIR/module.prop` 105 | MODVERSION=`grep_prop version $TMPDIR/module.prop` 106 | rm -rf $TMPDIR 107 | 108 | vendorprop_systemlib64() { 109 | mkdir -p $NVBASE/modules_update/$MODID/system/ 110 | mkdir -p $NVBASE/modules_update/$MODID/system/vendor/ 111 | mkdir -p $NVBASE/modules_update/$MODID/system/lib64 112 | cp /vendor/build.prop $NVBASE/modules_update/$MODID/system/vendor/ 113 | cp /system/etc/permissions/privapp-permissions-platform.xml$NVBASE/modules_update/$MODID/system/etc/permissions 114 | 115 | sleep 1 116 | sed -i "/offset/d" $NVBASE/modules_update/$MODID/system/vendor/build.prop 117 | sed -i "/keystore/d" $NVBASE/modules_update/$MODID/system/vendor/build.prop 118 | sleep 0.2 119 | echo "" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 120 | echo "" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 121 | sleep 0.2 122 | echo "" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 123 | sleep 0.2 124 | echo "debug.sf.use_phase_offsets_as_durations=1" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 125 | sleep 0.2 126 | echo "debug.sf.late.sf.duration=10500000" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 127 | sleep 0.2 128 | echo "debug.sf.late.app.duration=16600000" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 129 | sleep 0.2 130 | echo "debug.sf.treat_170m_as_sRGB=1" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 131 | sleep 0.2 132 | echo "" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 133 | sleep 0.2 134 | echo "" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 135 | sleep 0.2 136 | echo "debug.sf.earlyGl.app.duration=16600000" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 137 | sleep 0.2 138 | echo "debug.sf.frame_rate_multiple_threshold=120" >> $NVBASE/modules_update/$MODID/system/vendor/build.prop 139 | sleep 0.2 140 | 141 | } 142 | print_modname() { 143 | ui_print "*******************" 144 | ui_print " Module Name ""$MODNAME" 145 | ui_print " Version ""$MODVERSION" 146 | ui_print " Author :""$MODAUTHOR " 147 | ui_print "*******************" 148 | } 149 | print_modname 150 | vendorprop_systemlib64 151 | rm -rf $TMPDIR 152 | 153 | echo "Installation complete" 154 | 155 | ########################################################################################## 156 | # 权限设置 157 | ########################################################################################## 158 | 159 | #如果添加到此功能,请将其删除 160 | 161 | # 请注意,magisk模块目录中的所有文件/文件夹都有$MODPATH前缀-在所有文件/文件夹中保留此前缀 162 | # 一些例子: 163 | 164 | # 对于目录(包括文件): 165 | # set_perm_recursive <目录> <所有者> <用户组> <目录权限> <文件权限> <上下文> (默认值是: u:object_r:system_file:s0) 166 | 167 | # set_perm_recursive $MODPATH/system/lib 0 0 0755 0644 168 | # set_perm_recursive $MODPATH/system/vendor/lib/soundfx 0 0 0755 0644 169 | 170 | # 对于文件(不包括文件所在目录) 171 | # set_perm <文件名> <所有者> <用户组> <文件权限> <上下文> (默认值是: u:object_r:system_file:s0) 172 | 173 | # set_perm $MODPATH/system/lib/libart.so 0 0 0644 174 | # set_perm /data/local/tmp/file.txt 0 0 644 175 | 176 | # 默认权限请勿删除 177 | set_perm_recursive $MODPATH 0 0 0777 0777 178 | 179 | -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=adrenodisplay 2 | name=Display Overclocking [Touch iOS] 3 | version=6.99.1 4 | versionCode=2 5 | author=yexCm × @LeanHijosdesusMadres [telegram] 6 | description=This module helps in reducing screen display lag, improves frame rate and greatly improves the overall interactive experience of the mobile phone. It will feel as smooth as iOS. [Android 11 - 14] [60 -120 hz] @modulostk -------------------------------------------------------------------------------- /service.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | MODDIR=${0%/*} 3 | 4 | # Execute script by tytydraco and his project ktweak, thanks! 5 | write() { 6 | # Bail out if file does not exist 7 | [[ ! -f "$1" ]] && return 1 8 | 9 | # Make file writable in case it is not already 10 | chmod +w "$1" 2> /dev/null 11 | 12 | # Write the new value and bail if there's an error 13 | if ! echo "$2" > "$1" 2> /dev/null 14 | then 15 | echo "Failed: $1 → $2" 16 | return 1 17 | fi 18 | } 19 | 20 | sleep 10 21 | set start vsync 22 | 23 | # Exit 24 | exit 0 25 | --------------------------------------------------------------------------------