-
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.
1. 本次更新合并了40+个commit 2. 新增:ssanalysis分析器,监测system_server过渡动画,减少页面切换掉帧和滞后感 3. 新增:重构sfanalysis状态跟踪,即使app/sf的偏移量不同也能准确跟踪,减少卡顿 4. 新增:hint状态机使用数据驱动,未来版本开放配置文件自定义 5. 新增:UxAffinity=2在掉帧发生前动态迁移主线程到超大核,减少掉帧 6. 新增:三星exynos982x定制频率范围knob,修复睡死问题,感谢Saumer7(github)的思路 7. 新增:初始化过程日志存放在/sdcard/Android/log_uperf_initsvc.log,便于诊断 8. 修复:由于loadmonitor渲染检测误报率上升,使得滑动等hint提前退出,导致卡顿 9. 修复:原有perfhal配置文件内容错误使得服务报错,导致软重启 10. 修复:移除高通HMP平台不存在的负载迁移knob 11. 修复:系统界面主线程被错误固定到小核执行超时,导致ANR 12. 修复:开心消消乐主线程被错误固定到小核,导致卡顿 13. 修复:android.bg可能会阻塞binder,此线程被错误固定到小核,导致卡顿 14. 修复:surfaceflinger/app错误固定到小核,MIUI过渡动画中此线程执行超时,导致卡顿 15. 修复:由于不正确的mask设置使得cnss驱动启动网卡执行超时,导致偶见WiFi无法启用 16. 改进:使用uperf限制foreground不上prime,同时排除pinned中例外的桌面,减少耗电 17. 改进:heavyload动作任务放置能力,负载能够立即放置到超大核并按需调频 18. 改进:白名单优先级设置不高于音频类线程,减少音频卡顿 19. 改进:线程分类器使用表驱动,改进代码可读性 20. 改进:默认使用busybox for android ndk或者magisk的busybox 21. 改进:安装脚本机型信息提示,减少误解 Signed-off-by: Matt Yang <yccy@outlook.com>
- Loading branch information
Showing
17 changed files
with
448 additions
and
170 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
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
File renamed without changes.
File renamed without changes.
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
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
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
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,63 @@ | ||
#!/system/bin/sh | ||
# Injector Library | ||
# https://github.com/yc9559/ | ||
# Author: Matt Yang | ||
# Version: 20210212 | ||
|
||
BASEDIR="$(dirname "$0")" | ||
. $BASEDIR/pathinfo.sh | ||
. $BASEDIR/libcommon.sh | ||
|
||
############################### | ||
# PATHs | ||
############################### | ||
|
||
INJ_REL="$BIN_DIR" | ||
INJ_NAME="injector" | ||
|
||
############################### | ||
# Injector tool functions | ||
############################### | ||
|
||
# $1:process $2:dynamiclib $3:alog_tag | ||
inj_do_inject() | ||
{ | ||
log "[begin] injecting $2 to $1" | ||
|
||
"$MODULE_PATH/$INJ_REL/$INJ_NAME" "$1" "$2" >> "$LOG_FILE" | ||
if [ "$?" != "0" ]; then | ||
setenforce 0 | ||
log "Set SELinux to permissive, retry..." | ||
"$MODULE_PATH/$INJ_REL/$INJ_NAME" "$1" "$2" >> "$LOG_FILE" | ||
fi | ||
|
||
sleep 1 | ||
logcat -d | grep -i "$3" >> "$LOG_FILE" | ||
|
||
log "[end] injecting $2 to $1" | ||
} | ||
|
||
inj_start() | ||
{ | ||
# raise inotify limit | ||
lock_val "131072" /proc/sys/fs/inotify/max_queued_events | ||
lock_val "131072" /proc/sys/fs/inotify/max_user_watches | ||
lock_val "1024" /proc/sys/fs/inotify/max_user_instances | ||
|
||
local lib_path | ||
if [ "$(is_aarch64)" == "true" ]; then | ||
lib_path="/system/lib64" | ||
else | ||
lib_path="/system/lib" | ||
fi | ||
|
||
# fallback to standlone mode | ||
[ ! -e "$lib_path" ] && lib_path="$MODULE_PATH/$lib_path" | ||
|
||
log "$(date '+%Y-%m-%d %H:%M:%S')" | ||
inj_do_inject "/system/bin/surfaceflinger" "$lib_path/libsfanalysis.so" "SfAnalysis" | ||
inj_do_inject "system_server" "$lib_path/libssanalysis.so" "SsAnalysis" | ||
} | ||
|
||
clear_log | ||
[ -f "$MODULE_PATH/enable_injector" ] && inj_start |
Oops, something went wrong.