-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wipev2:结果导出:更改导出json三档模式的对应性能评分 wipev2:配置文件:降低孤立卡顿权重,重点关注连续卡顿 配置文件生成器:下调9810 9820滑动时的最低频率 once:uperf限制在background cgroup once:修复默认模式设定滞后于uperf启动 安装脚本:去除伪装为system binary Signed-off-by: Matt Yang <[email protected]>
- Loading branch information
Showing
9 changed files
with
43 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#!/system/bin/sh | ||
# Please don't hardcode /magisk/modname/... ; instead, please use $MODDIR/... | ||
# This will make your scripts compatible even if Magisk change its mount point in the future | ||
MODDIR=${0%/*} | ||
|
||
sh $MODDIR/run_uperf.sh | ||
BASEDIR="$(dirname $(readlink -f "$0"))" | ||
SCRIPT_DIR="$BASEDIR/script" | ||
|
||
if [ "$(cat $SCRIPT_DIR/pathinfo.sh | grep "$PATH")" == "" ]; then | ||
echo "" >> $SCRIPT_DIR/pathinfo.sh | ||
echo "# prefer to use busybox provided by magisk" >> $SCRIPT_DIR/pathinfo.sh | ||
echo "PATH=$PATH" >> $SCRIPT_DIR/pathinfo.sh | ||
fi | ||
|
||
sh $BASEDIR/initsvc_uperf.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,19 @@ | ||
#!/vendor/bin/sh | ||
# Uperf Service Script | ||
# https://github.com/yc9559/ | ||
# Author: Matt Yang | ||
# Version: 20200401 | ||
|
||
BASEDIR="$(dirname $(readlink -f "$0"))" | ||
|
||
wait_until_login() | ||
{ | ||
# we doesn't have the permission to rw "/sdcard" before the user unlocks the screen | ||
while [ ! -d "/sdcard/Android" ]; do | ||
sleep 2 | ||
done | ||
} | ||
|
||
wait_until_login | ||
sleep 5 | ||
sh $BASEDIR/run_uperf.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
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 |
---|---|---|
|
@@ -226,4 +226,3 @@ lock_val "25" $LPM/bias_hyst | |
|
||
# start uperf once only | ||
uperf_start | ||
sleep 1 |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Uperf Setup | ||
# https://github.com/yc9559/ | ||
# Author: Matt Yang & cjybyjk ([email protected]) | ||
# Version: 20200416 | ||
# Version: 20200419 | ||
|
||
BASEDIR="$(dirname $(readlink -f "$0"))" | ||
|
||
|
@@ -239,7 +239,7 @@ uperf_print_banner() | |
echo "" | ||
echo "* Uperf https://github.com/yc9559/uperf/" | ||
echo "* Author: Matt Yang" | ||
echo "* Version: DEV 20200416" | ||
echo "* Version: DEV 20200419" | ||
echo "" | ||
} | ||
|
||
|
@@ -258,8 +258,8 @@ uperf_install() | |
if [ "$cfgname" != "unsupported" ]; then | ||
echo "- The platform name is $target. Use $cfgname.json" | ||
_setup_platform_file "$cfgname" | ||
_set_perm_recursive $BASEDIR 0 0 0755 0644 u:object_r:rootfs:s0 | ||
_set_perm_recursive $BASEDIR/bin 0 0 0755 0755 u:object_r:rootfs:s0 | ||
_set_perm_recursive $BASEDIR 0 0 0755 0644 | ||
_set_perm_recursive $BASEDIR/bin 0 0 0755 0755 | ||
# in case of set_perm_recursive is broken | ||
chmod 0755 $BASEDIR/bin/* | ||
else | ||
|