Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: reigadegr/FeasArgSet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: module
Choose a base ref
...
head repository: reigadegr/FeasArgSet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Jul 8, 2023

  1. Copy the full SHA
    718294c View commit details
  2. 小幅度优化

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    9c04fec View commit details
  3. 小幅度优化

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    534d8ed View commit details
  4. 小幅度优化

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    94659fc View commit details
  5. 小幅度优化

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    7d2a184 View commit details
  6. 小幅度优化

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    a7f7641 View commit details
  7. 小幅度修改

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    6dd26f8 View commit details
  8. 小幅度修改

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    629bad2 View commit details
  9. 小幅度修改

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    f5259cd View commit details
  10. 小幅度修改

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    1305346 View commit details
  11. 小幅度修改

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    190b2da View commit details
  12. 小幅度修改

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    f2b6f17 View commit details
  13. 增加线程控制

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    ceac39b View commit details
  14. 增加线程控制

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    a9bcea3 View commit details
  15. auto push

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    fb87e37 View commit details
  16. auto push

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    311a3ba View commit details
  17. 推送测试

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    b0435e5 View commit details
  18. 推送测试

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    c3c9c90 View commit details
  19. 加了点注释

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    c04274b View commit details
  20. 加了点注释2

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    20e3b25 View commit details
  21. push

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    c2e3688 View commit details
  22. 修复小问题

    reigadegr committed Jul 8, 2023
    Copy the full SHA
    a6c20aa View commit details

Commits on Jul 9, 2023

  1. 砍掉几行代码

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    339443b View commit details
  2. 砍掉几行代码

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    ba23d45 View commit details
  3. 砍掉几行代码

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    522053e View commit details
  4. 小幅调整

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    542fde9 View commit details
  5. 模糊搜索包名

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    a66b7b3 View commit details
  6. 小幅度优化

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    bd91b90 View commit details
  7. 小幅度优化

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    d5ec6a3 View commit details
  8. 小幅度优化

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    5b86ab0 View commit details
  9. 格式化代码

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    d6735b6 View commit details
  10. 小幅修改

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    fa63f01 View commit details
  11. 小幅修改

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    9818140 View commit details
  12. 小幅修改

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    c995df1 View commit details
  13. 紧急推送 修复bug

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    ff4fe77 View commit details
  14. 小幅度调整

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    69b26d6 View commit details
  15. 小幅度调整

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    e8566e9 View commit details
  16. 小幅度调整

    reigadegr committed Jul 9, 2023
    Copy the full SHA
    5c47b5d View commit details
  17. Copy the full SHA
    04f89e7 View commit details

Commits on Jul 10, 2023

  1. 小幅度调整

    reigadegr committed Jul 10, 2023
    1
    Copy the full SHA
    57f5d26 View commit details
  2. 增加时间功能

    reigadegr committed Jul 10, 2023
    Copy the full SHA
    62ecf76 View commit details
  3. Copy the full SHA
    043d9fb View commit details
  4. 小幅度修复

    reigadegr committed Jul 10, 2023
    Copy the full SHA
    5cb385f View commit details
  5. 调整module

    reigadegr committed Jul 10, 2023
    Copy the full SHA
    9a70b92 View commit details
  6. 调整module

    reigadegr committed Jul 10, 2023
    Copy the full SHA
    6b792ce View commit details
  7. Copy the full SHA
    3a459e0 View commit details
  8. 日志优化

    reigadegr committed Jul 10, 2023
    Copy the full SHA
    aa10685 View commit details
  9. 小幅度修改

    reigadegr committed Jul 10, 2023
    Copy the full SHA
    adc17ae View commit details
  10. Copy the full SHA
    f3d4914 View commit details
  11. Copy the full SHA
    2b363d7 View commit details
9 changes: 9 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#this file from yc9559
BasedOnStyle: LLVM
IndentWidth: 4
AccessModifierOffset: -4
IndentCaseLabels: true
AlwaysBreakTemplateDeclarations: Yes
ConstructorInitializerAllOnOneLineOrOnePerLine: true
#ColumnLimit: 10
NamespaceIndentation: All
30 changes: 2 additions & 28 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,32 +1,6 @@
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
Module/FeasArgSet
Test/FeasArgSet
*.exe
*.out
*.app
13 changes: 0 additions & 13 deletions Build/build.sh

This file was deleted.

53 changes: 53 additions & 0 deletions Build/build_debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/sh

project_root=$(pwd)/..

remove_file() {
rm -rf $project_root/src/*.bak $project_root/src/include/*.bak $project_root/config/*.bak $project_root/*.bak
}

format_code() {
echo "当前时间:$(date +%Y)$(date +%m)$(date +%d)$(date +%H)$(date +%M)$(date +%S)"
code_file="
$project_root/src/*.cpp
$project_root/src/include/*.h
"

for i in $code_file; do
echo "开始格式化$(basename $i)"
/data/data/com.termux/files/usr/bin/clang-format -i $i
done
}
compile_line(){
rm $output
nohup /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang++ \
-Wall -fomit-frame-pointer -std=c++2b -stdlib=libc++ \
-fno-rtti -fvisibility=hidden \
-pthread \
$project_root/src/*.cpp -o $output >/dev/null 2>&1 &
}
compile_start() {
local output=$project_root/Module/FeasArgSet
local for_test=$project_root/Test/FeasArgSet

echo "当前时间:$(date +%Y)$(date +%m)$(date +%d)$(date +%H)$(date +%M)$(date +%S)"
echo "开始编译,大概10秒完成"
# this common from user : shadow3aaa
compile_line && echo "*编译完成*" || exit 1
until [ -f $output ]; do
ps -ef | grep clang | grep -v grep | awk '{print $4}'
echo '\n'
sleep 0.5
done
/data/data/com.termux/files/usr/bin/strip $output
# upx -9 project_root/FeasArgSet

cp -f $output $for_test
chmod +x $for_test

echo "当前时间:$(date +%Y)$(date +%m)$(date +%d)$(date +%H)$(date +%M)$(date +%S)"
}

format_code
compile_start
remove_file 2>/dev/null
69 changes: 69 additions & 0 deletions Build/build_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/bin/sh

project_root=$(pwd)/..

remove_file() {
rm -rf $project_root/src/*.bak $project_root/src/include/*.bak $project_root/config/*.bak $project_root/*.bak
}

format_code() {
echo "当前时间:$(date +%Y)$(date +%m)$(date +%d)$(date +%H)$(date +%M)$(date +%S)"
code_file="
$project_root/src/*.cpp
$project_root/src/include/*.h
"

for i in $code_file; do
echo "开始格式化$(basename $i)"
nohup /data/data/com.termux/files/usr/bin/clang-format -i $i >/dev/null 2>&1 &
done
}

compile_start() {
local output=$project_root/Module/FeasArgSet
local for_test=$project_root/Test/FeasArgSet

echo "当前时间:$(date +%Y)$(date +%m)$(date +%d)$(date +%H)$(date +%M)$(date +%S)"
echo "开始编译,大概10秒完成"
# this common from user : shadow3aaa
/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang++ \
-Wall -fomit-frame-pointer -std=c++23 -stdlib=libc++ -Os -flto \
-L/system/lib64 -lc++ -ldl -lc -lm \
-static-libgcc -static-libstdc++ \
-fno-rtti -fvisibility=hidden \
-fshort-enums -fmerge-all-constants -fno-exceptions \
-fno-unwind-tables -fno-asynchronous-unwind-tables \
-fuse-ld=lld -mtune=native -march=native -flto -pthread \
-Bsymbolic -fdata-sections -ffunction-sections -fno-stack-protector \
-Wl,-O3,--lto-O3,--gc-sections,--as-needed,--icf=all,-z,norelro,--pack-dyn-relocs=android+relr,-x,-s \
$project_root/src/*.cpp -o $output && echo "*编译完成*" || exit 1

/data/data/com.termux/files/usr/bin/strip $output
# upx -9 project_root/FeasArgSet
header_list2="
.gcc_except_table
.bss
.gnu.version
.note.android.ident
.preinit_array
.fini_array
.eh_frame_hdr
.eh_frame
.data
"
for i in $header_list2; do
echo "删除字节头: $i"
nohup /data/data/com.termux/files/usr/bin/objcopy --remove-section=$i $output >/dev/null 2>&1 &
done
cp -f $output $for_test
chmod +x $for_test
cp $for_test $(pwd)
echo "当前时间:$(date +%Y)$(date +%m)$(date +%d)$(date +%H)$(date +%M)$(date +%S)"
}

format_code
compile_start
remove_file 2>/dev/null
ldd /data/data/com.termux/files/home/FeasArgSet/Module/FeasArgSet


Empty file modified LICENSE
100644 → 100755
Empty file.
Binary file removed Module/FeasArgSet
Binary file not shown.
13 changes: 12 additions & 1 deletion Module/README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# FeasArgSet
一个可以自定义小米Feas配置的功能 需要设备本身支持小米feas功能 自己写自己设备的feas路径 (开关,fps,scaling a b 的节点) 配置文件位于本模块的config文件夹 path.conf写你的设备的路径 package.conf写需要开启feas的游戏包名,目标帧率等参数
一个可以自定义小米Feas配置的功能
注意,本模块不是强开feas节点
需要设备本身支持小米feas功能
自己写自己设备的feas路径
(开关,fps,scaling a b 的节点)
配置文件位于本模块的config文件夹
path.conf写你的设备的路径
package.conf写需要开启feas的游戏包名
以及目标帧率等参数
修改后需要重新执行service.sh以应用新配置
项目地址https://github.com/reigadegr/FeasArgSet
欢迎各位大佬给出指导意见!
17 changes: 17 additions & 0 deletions Module/Update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
20231014更新:
增加更多节点:
normal_frame_keep_count
min_freq_limit_level
max_freq_limit_level
强烈建议修改原版配置文件

20230901更新:
增加自动生成节点功能

20230814更新:
内置k40g bocchi节点

20230809更新:
内置mtk feas节点,
优先mtkPandora路径
高通可以自己写节点,也可以将节点反馈给作者
18 changes: 10 additions & 8 deletions Module/config/package.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#必须写齐四个参数
#包名必须写
#第一个参数为包名,第二个是目标fps
#第三个第四个分别是scaling_a,scaling_b,范围都是[-1000, 1000]
#bin.mt.plus 144 0 0
com.hypergryph.arknights 60 280 -40
com.miHoYo.Yuanshen 60 280 -40
com.miHoYo.hkrpg 60 280 -40
com.tencent.tmgp.speedmobile 120 280 -40
#com.omarea.vtools 120 250 0
#bin.mt.plus 90 0 0

com.hypergryph.arknights 60 280 -40 8 0 41
com.miHoYo.Yuanshen 60 400 -50 8 0 41
com.miHoYo.hkrpg 60 280 -40 8 0 41
com.tencent.tmgp.speedmobile 120 280 -40 8 0 42
com.tencent.tmgp.sgame 120 400 -50 8 0 41
#com.omarea.vtools 60 250 0 8 0 41
#'$'开头的是设置游戏中CPU中大核使用的调速器
#不写也可以,默认schedutil
$performance
#这里写默认全局的调速器
&schedutil
&schedutil
8 changes: 6 additions & 2 deletions Module/config/path.conf
Original file line number Diff line number Diff line change
@@ -3,5 +3,9 @@ Feas_switch_path /sys/module/mtk_fpsgo/parameters/perfmgr_enable
#目标fps
Fps_Path /sys/module/mtk_fpsgo/parameters/fixed_target_fps
#scaling a b
Scaling_a_path /sys/module/mtk_fpsgo/scaling_a
Scaling_b_path /sys/module/mtk_fpsgo/scaling_b
Scaling_a_path /sys/module/mtk_fpsgo/parameters/scaling_a
Scaling_b_path /sys/module/mtk_fpsgo/parameters/scaling_b
###新节点
normal_frame_keep_count /sys/module/mtk_fpsgo/parameters/normal_frame_keep_count
min_freq_limit_level /sys/module/mtk_fpsgo/parameters/min_freq_limit_level
max_freq_limit_level /sys/module/mtk_fpsgo/parameters/max_freq_limit_level
28 changes: 23 additions & 5 deletions Module/customize.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
SKIPUNZIP=0
MODDIR=${0%/*}
cat $MODDIR/README.md |
while read row; do
echo $row
sleep 0.15
done

if [ -d /data/adb/modules/FeasArgSetHelper ]; then
cp -rf /data/adb/modules/FeasArgSetHelper/config/* $MODPATH/config
cat $MODPATH/Update.md |
while read row; do
echo "$row"
sleep 0.1
done
else
cat $MODPATH/README.md |
while read row; do
echo "$row"
sleep 0.1
done

cat $MODPATH/Update.md |
while read row; do
echo "$row"
sleep 0.1
done
fi

rm $MODPATH/Update.md
10 changes: 5 additions & 5 deletions Module/module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=FeasArgSetHelper
name=FeasArgSetHelper
version=v1
versionCode=1
author=
description=自定义小米Feas相关参数(大部分通过抄袭shadow3大佬的feashelper实现)
name=小米Feas自定义参数
version=1.81
versionCode=20231014
author=酷安@灵聚神生 || github@reigadegr
description=自定义小米Feas相关参数。项目地址https://github.com/reigadegr/FeasArgSet
44 changes: 38 additions & 6 deletions Module/service.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# !/system/bin/sh
MODDIR=${0%/*}

#!/bin/sh
wait_until_login() {
# in case of /data encryption is disabled
while [ "$(getprop sys.boot_completed)" != "1" ]; do
@@ -13,6 +11,40 @@ wait_until_login() {
done
}
wait_until_login
chmod +x $MODDIR/FeasArgSet
killall -15 FeasArgSet
nohup $(dirname "$0")/FeasArgSet $(dirname "$0")/config/package.conf $(dirname "$0")/config/path.conf >/dev/null 2>&1 &

wait_until_login_pandora() {
# in case of /data encryption is disabled
if [ "$(uname -a | grep Pandora)" != "" ]; then
while true; do
if [ ! -f /sys/module/*/parameters/perfmgr_enable ]; then
sleep 1
else
break
fi
done
fi

# in case of the user unlocked the screen
while [ ! -d "/sdcard/Android" ]; do
sleep 1
done
}
wait_until_login_pandora

MODDIR=${0%/*}
FileName="FeasArgSet"

chown 0:0 $MODDIR/$FileName
chmod +x $MODDIR/$FileName

if [ -f $MODDIR/$FileName.log ]; then
mv -f $MODDIR/$FileName.log $MODDIR/$FileName.log.bak
fi
touch $MODDIR/$FileName.log

killall -15 $FileName
#ELF
nohup $MODDIR/$FileName \
$MODDIR/config/package.conf \
$MODDIR/config/path.conf \
>$MODDIR/$FileName.log 2>&1 &
3 changes: 0 additions & 3 deletions Module/uninstall.sh

This file was deleted.

9 changes: 9 additions & 0 deletions Push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

rm -rf $(dirname "$0")/*.bak

#通用推送模板
git gc --prune=all
git add .
git commit -m "$1"
git push -f origin main
14 changes: 14 additions & 0 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# FeasArgSet
## 说明
一个可以自定义小米Feas配置的功能 需要设备本身支持小米feas功能 自己写自己设备的feas路径 (开关,fps,scaling a b 的节点) 配置文件位于本模块的config文件夹 path.conf写你的设备的路径 package.conf写需要开启feas的游戏包名,目标帧率等参数
## 尝鲜最新版
建议git clone https://github.com/reigadegr/FeasArgSet 后,打包Module文件夹的全部文件为zip,使用magisk刷入以更新

## 编译
```bash
#环境构建(termux)
pkg install clang -y && pkg add ndk-multilib -y
#clone项目
git clone https://github.com/reigadegr/FeasArgSet --depth 1 -b main
cd $(pwd)/FeasArgSet/Build
sh build.sh
```
***完成***
Binary file added Test/FeasArgSet
Binary file not shown.
Loading