-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: - Removed temperature limit bypass for charging. - Fixed camera FPS to 60fps. - Refactored and cleaned up code. - Based on v3.0.5.
- Loading branch information
1 parent
a176aa0
commit 0fc415d
Showing
8 changed files
with
127 additions
and
105 deletions.
There are no files selected for viewing
Empty file.
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,3 +1,7 @@ | ||
{ | ||
"files.eol": "\n", | ||
"cSpell.words": [ | ||
"Magisk", | ||
"Realme" | ||
], | ||
} |
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 |
---|---|---|
@@ -1,69 +1,70 @@ | ||
lock_value() { | ||
if [[ -f $2 ]];then | ||
chmod 644 $2 | ||
echo $1 > $2 | ||
chmod 444 $2 | ||
fi | ||
} | ||
|
||
if [[ "$soc" == 'mt6891' ]] || [[ "$soc" == 'mt6893' ]] || [[ "$soc" == 'mt6889' ]]; then | ||
disable_core_ctl() { | ||
c0=/sys/devices/system/cpu/cpu0/core_ctl | ||
c1=/sys/devices/system/cpu/cpu4/core_ctl | ||
c2=/sys/devices/system/cpu/cpu7/core_ctl | ||
|
||
lock_value 4 $c0/max_cpus | ||
lock_value 4 $c0/min_cpus | ||
lock_value 0 $c0/enable | ||
|
||
lock_value 3 $c1/max_cpus | ||
lock_value 3 $c1/min_cpus | ||
lock_value 0 $c1/enable | ||
|
||
lock_value 1 $c2/max_cpus | ||
lock_value 1 $c2/min_cpus | ||
lock_value 0 $c2/enable | ||
|
||
lock_value -1 /sys/kernel/fpsgo/fbt/thrm_limit_cpu | ||
lock_value -1 /sys/kernel/fpsgo/fbt/thrm_sub_cpu | ||
} | ||
sched_isolation_disable() { | ||
for i in 0 1 2 3 4 5 6 7; do | ||
echo $i > /sys/devices/system/cpu/sched/set_sched_deisolation | ||
done | ||
chmod 000 /sys/devices/system/cpu/sched/set_sched_isolation | ||
disable_core_ctl | ||
} | ||
|
||
for i in 3 4 5 6; do | ||
echo $i 0 0 > /proc/gpufreq/gpufreq_limit_table | ||
done | ||
for i in 'hard_userlimit_cpu_freq' 'hard_userlimit_freq_limit_by_others'; do | ||
echo 0 -1 > /proc/ppm/policy/$i | ||
echo 1 -1 > /proc/ppm/policy/$i | ||
chmod 444 /proc/ppm/policy/$i | ||
# cat /proc/ppm/policy/$i | ||
done | ||
for i in 3 4 5 6; do | ||
echo $i 0 0 > /proc/gpufreq/gpufreq_limit_table | ||
done | ||
|
||
# PPM | ||
echo 1 > /proc/ppm/enabled | ||
cat /proc/ppm/policy_status | grep -e '\[.*\]' | while read row | ||
do | ||
case "$row" in | ||
*"PPM_POLICY_HARD_USER_LIMIT"*) | ||
v=1 | ||
;; | ||
*) | ||
v=0 | ||
;; | ||
esac | ||
echo ${row:1:1} $v > /proc/ppm/policy_status | ||
done | ||
lock_value 100 /sys/kernel/fpsgo/fbt/thrm_temp_th | ||
lock_value -1 /sys/kernel/fpsgo/fbt/thrm_limit_cpu | ||
lock_value -1 /sys/kernel/fpsgo/fbt/thrm_sub_cpu | ||
sched_isolation_disable | ||
fi | ||
#!/bin/sh | ||
lock_value() { | ||
if [[ -f $2 ]];then | ||
chmod 644 $2 | ||
echo $1 > $2 | ||
chmod 444 $2 | ||
fi | ||
} | ||
|
||
if [[ "$soc" == 'mt6891' ]] || [[ "$soc" == 'mt6893' ]] || [[ "$soc" == 'mt6889' ]]; then | ||
disable_core_ctl() { | ||
c0=/sys/devices/system/cpu/cpu0/core_ctl | ||
c1=/sys/devices/system/cpu/cpu4/core_ctl | ||
c2=/sys/devices/system/cpu/cpu7/core_ctl | ||
|
||
lock_value 4 $c0/max_cpus | ||
lock_value 4 $c0/min_cpus | ||
lock_value 0 $c0/enable | ||
|
||
lock_value 3 $c1/max_cpus | ||
lock_value 3 $c1/min_cpus | ||
lock_value 0 $c1/enable | ||
|
||
lock_value 1 $c2/max_cpus | ||
lock_value 1 $c2/min_cpus | ||
lock_value 0 $c2/enable | ||
|
||
lock_value -1 /sys/kernel/fpsgo/fbt/thrm_limit_cpu | ||
lock_value -1 /sys/kernel/fpsgo/fbt/thrm_sub_cpu | ||
} | ||
sched_isolation_disable() { | ||
for i in 0 1 2 3 4 5 6 7; do | ||
echo $i > /sys/devices/system/cpu/sched/set_sched_deisolation | ||
done | ||
chmod 000 /sys/devices/system/cpu/sched/set_sched_isolation | ||
disable_core_ctl | ||
} | ||
|
||
for i in 3 4 5 6; do | ||
echo $i 0 0 > /proc/gpufreq/gpufreq_limit_table | ||
done | ||
for i in 'hard_userlimit_cpu_freq' 'hard_userlimit_freq_limit_by_others'; do | ||
echo 0 -1 > /proc/ppm/policy/$i | ||
echo 1 -1 > /proc/ppm/policy/$i | ||
chmod 444 /proc/ppm/policy/$i | ||
# cat /proc/ppm/policy/$i | ||
done | ||
for i in 3 4 5 6; do | ||
echo $i 0 0 > /proc/gpufreq/gpufreq_limit_table | ||
done | ||
|
||
# PPM | ||
echo 1 > /proc/ppm/enabled | ||
cat /proc/ppm/policy_status | grep -e '\[.*\]' | while read row | ||
do | ||
case "$row" in | ||
*"PPM_POLICY_HARD_USER_LIMIT"*) | ||
v=1 | ||
;; | ||
*) | ||
v=0 | ||
;; | ||
esac | ||
echo ${row:1:1} $v > /proc/ppm/policy_status | ||
done | ||
lock_value 100 /sys/kernel/fpsgo/fbt/thrm_temp_th | ||
lock_value -1 /sys/kernel/fpsgo/fbt/thrm_limit_cpu | ||
lock_value -1 /sys/kernel/fpsgo/fbt/thrm_sub_cpu | ||
sched_isolation_disable | ||
fi |
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,7 +1,7 @@ | ||
id=extreme_gt | ||
name=Extreme GT | ||
version=3.0.7 | ||
version=3.0.7 (fixed camera fps, base 3.0.5) | ||
versionCode=3007 | ||
author=嘟嘟ski & SCENE | ||
author=嘟嘟ski & SCENE (camera fps fix by amirulandalib) | ||
description=本模块由SCENE生成,用于去除OPPO、Realme、OnePlus机型的锁帧和部分温控限制 | ||
minMagisk=17000 |
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,3 +1,4 @@ | ||
#!/bin/sh | ||
if [[ "$KSU" == "true" ]]; then | ||
exit 0 | ||
fi | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id=extreme_gt | ||
name=Extreme GT | ||
version=3.0.7 | ||
version=3.0.7 (fixed camera fps, base 3.0.5) | ||
versionCode=3007 | ||
author=嘟嘟ski & SCENE | ||
author=嘟嘟ski & SCENE (camera fps fix by amirulandalib) | ||
description=本模块由SCENE生成,用于去除OPPO、Realme、OnePlus机型的锁帧和部分温控限制 | ||
minMagisk=17000 |