-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 增加 系统动画主动探针 - 增加 CPU采样器负载预测 - 增加 与系统用户态性能控制器协同调度 - 增加 桌面启动器自动识别 - 增加 适配谷歌tensor/天玑810 - 改进 提高手势操作跟手性 - 改进 减少SfAnalysis误报 - 修复 识别上下文的任务调度器规则匹配错误 - 修复 联发科PPM接口适配 - 修复 破音问题 - 修复 部分平台功耗模型 - ...合计163个commit Signed-off-by: Matt Yang <yccy@outlook.com>
- Loading branch information
Showing
27 changed files
with
358 additions
and
950 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# 更新日志 | ||
|
||
## DEV 22.04.23 | ||
|
||
- 增加 系统动画主动探针 | ||
- 增加 CPU采样器负载预测 | ||
- 增加 与系统用户态性能控制器协同调度 | ||
- 增加 桌面启动器自动识别 | ||
- 增加 适配谷歌tensor/天玑810 | ||
- 改进 提高手势操作跟手性 | ||
- 改进 减少SfAnalysis误报 | ||
- 修复 识别上下文的任务调度器规则匹配错误 | ||
- 修复 联发科PPM接口适配 | ||
- 修复 破音问题 | ||
- 修复 部分平台功耗模型 | ||
|
||
## DEV 22.04.09 | ||
|
||
- 增加大量平台初步适配 | ||
- 改进Unity游戏和吃鸡游戏抖动 | ||
- 改进弹幕2倍速视频流畅度 | ||
- 更新部分平台功耗模型 | ||
- 日志后缀名更换为txt | ||
|
||
## DEV 22.04.04 | ||
|
||
- 插件式软件架构 | ||
- 使用C++重新开发 | ||
- 功能模块解耦,易扩展 | ||
- 感知能耗的CPU调频器 | ||
- 用户态使能全平台统一体验 | ||
- 单核高性能,多核高能效 | ||
- 20-100hz基础采样率,快响应低开销 | ||
- 识别上下文的任务调度器 | ||
- UI放大核,非关键放小核 | ||
- 全数据驱动,正则匹配 | ||
- 花费50%开发时间调试的默认规则 | ||
- 动态sysfs写入 | ||
- 用户态性能控制器基石功能 | ||
- 实现更加简约高效 | ||
- SfAnalysis | ||
- 预测掉帧并在发生前拉升CPU | ||
- 改进的帧反馈以及模糊匹配 | ||
- patch方式无需更改SELinux状态 | ||
- 独立选装,但是强烈推荐 | ||
- SsAnalysis | ||
- 跟系统线程放置器斗智斗勇 | ||
- 独立选装,但是强烈推荐 |
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 |
---|---|---|
@@ -1,33 +1,151 @@ | ||
#!/sbin/sh | ||
|
||
################# | ||
# Initialization | ||
################# | ||
TMPDIR=/dev/tmp | ||
MOUNTPATH=/dev/magisk_img | ||
|
||
# Default permissions | ||
umask 022 | ||
|
||
# Initial cleanup | ||
rm -rf $TMPDIR 2>/dev/null | ||
mkdir -p $TMPDIR | ||
|
||
# echo before loading util_functions | ||
ui_print() { echo "$1"; } | ||
|
||
require_new_magisk() { | ||
ui_print "*******************************" | ||
ui_print " Please install Magisk v20.4+! " | ||
ui_print "*******************************" | ||
ui_print "***********************************" | ||
ui_print " Please install the latest Magisk! " | ||
ui_print "***********************************" | ||
exit 1 | ||
} | ||
|
||
######################### | ||
# Load util_functions.sh | ||
######################### | ||
imageless_magisk() { | ||
[ $MAGISK_VER_CODE -gt 18100 ] | ||
return $? | ||
} | ||
|
||
########################################################################################## | ||
# Environment | ||
########################################################################################## | ||
|
||
OUTFD=$2 | ||
ZIPFILE=$3 | ||
|
||
mount /data 2>/dev/null | ||
|
||
[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk | ||
. /data/adb/magisk/util_functions.sh | ||
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk | ||
# Load utility functions | ||
if [ -f /data/adb/magisk/util_functions.sh ]; then | ||
. /data/adb/magisk/util_functions.sh | ||
NVBASE=/data/adb | ||
else | ||
require_new_magisk | ||
fi | ||
|
||
# Preperation for flashable zips | ||
setup_flashable | ||
|
||
# Mount partitions | ||
mount_partitions | ||
|
||
# Detect version and architecture | ||
api_level_arch_detect | ||
|
||
# Setup busybox and binaries | ||
$BOOTMODE && boot_actions || recovery_actions | ||
|
||
########################################################################################## | ||
# Preparation | ||
########################################################################################## | ||
|
||
# Extract common files | ||
unzip -oj "$ZIPFILE" module.prop install.sh uninstall.sh 'common/*' -d $TMPDIR >&2 | ||
|
||
[ ! -f $TMPDIR/install.sh ] && abort "! Unable to extract zip file!" | ||
# Load install script | ||
. $TMPDIR/install.sh | ||
|
||
if imageless_magisk; then | ||
$BOOTMODE && MODDIRNAME=modules_update || MODDIRNAME=modules | ||
MODULEROOT=$NVBASE/$MODDIRNAME | ||
else | ||
$BOOTMODE && IMGNAME=magisk_merge.img || IMGNAME=magisk.img | ||
IMG=$NVBASE/$IMGNAME | ||
request_zip_size_check "$ZIPFILE" | ||
mount_magisk_img | ||
MODULEROOT=$MOUNTPATH | ||
fi | ||
|
||
MODID=`grep_prop id $TMPDIR/module.prop` | ||
MODPATH=$MODULEROOT/$MODID | ||
|
||
print_modname | ||
|
||
ui_print "******************************" | ||
ui_print "Powered by Magisk (@topjohnwu)" | ||
ui_print "******************************" | ||
|
||
########################################################################################## | ||
# Install | ||
########################################################################################## | ||
|
||
# Create mod paths | ||
rm -rf $MODPATH 2>/dev/null | ||
mkdir -p $MODPATH | ||
|
||
on_install | ||
|
||
# Remove placeholder | ||
rm -f $MODPATH/system/placeholder 2>/dev/null | ||
|
||
# Custom uninstaller | ||
[ -f $TMPDIR/uninstall.sh ] && cp -af $TMPDIR/uninstall.sh $MODPATH/uninstall.sh | ||
|
||
# Auto Mount | ||
if imageless_magisk; then | ||
$SKIPMOUNT && touch $MODPATH/skip_mount | ||
else | ||
$SKIPMOUNT || touch $MODPATH/auto_mount | ||
fi | ||
|
||
# prop files | ||
$PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop | ||
|
||
# Module info | ||
cp -af $TMPDIR/module.prop $MODPATH/module.prop | ||
if $BOOTMODE; then | ||
# Update info for Magisk Manager | ||
if imageless_magisk; then | ||
mktouch $NVBASE/modules/$MODID/update | ||
cp -af $TMPDIR/module.prop $NVBASE/modules/$MODID/module.prop | ||
else | ||
mktouch /sbin/.magisk/img/$MODID/update | ||
cp -af $TMPDIR/module.prop /sbin/.magisk/img/$MODID/module.prop | ||
fi | ||
fi | ||
|
||
# post-fs-data mode scripts | ||
$POSTFSDATA && cp -af $TMPDIR/post-fs-data.sh $MODPATH/post-fs-data.sh | ||
|
||
# service mode scripts | ||
$LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh | ||
|
||
# Handle replace folders | ||
for TARGET in $REPLACE; do | ||
mktouch $MODPATH$TARGET/.replace | ||
done | ||
|
||
ui_print "- Setting permissions" | ||
set_permissions | ||
|
||
########################################################################################## | ||
# Finalizing | ||
########################################################################################## | ||
|
||
cd / | ||
imageless_magisk || unmount_magisk_img | ||
$BOOTMODE || recovery_cleanup | ||
rm -rf $TMPDIR $MOUNTPATH | ||
|
||
install_module | ||
ui_print "- Done" | ||
exit 0 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
#MAGISK | ||
#MAGISK |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,4 @@ crash_recuser() { | |
} | ||
|
||
(crash_recuser &) | ||
|
||
sh $BASEDIR/script/initsvc.sh |
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,7 @@ | ||
# This file will be read by resetprop | ||
# Example: Change dpi | ||
# ro.sf.lcd_density=320 | ||
|
||
# headroom for GC | ||
dalvik.vm.heapminfree=8m | ||
dalvik.vm.heapmaxfree=12m |
Oops, something went wrong.