Skip to content

Commit

Permalink
Scene3 典藏版
Browse files Browse the repository at this point in the history
  • Loading branch information
helloklf committed Mar 24, 2021
1 parent 0dbe767 commit 418dba8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ android {
version "3.10.2"
}
}
ndkVersion '22.0.7026061'
ndkVersion '21.0.6113669'
}

dependencies {
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/assets/powercfg/kona/active.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ if [[ ! "$gpu_governor" = "msm-adreno-tz" ]]; then
echo 'msm-adreno-tz' > /sys/class/kgsl/kgsl-3d0/devfreq/governor
fi

echo $gpu_max_freq > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
# echo $gpu_max_freq > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
echo $gpu_min_freq > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq
echo $gpu_min_pl > /sys/class/kgsl/kgsl-3d0/min_pwrlevel
echo $gpu_max_pl > /sys/class/kgsl/kgsl-3d0/max_pwrlevel
Expand Down Expand Up @@ -214,9 +214,9 @@ if [[ "$action" = "powersave" ]]; then
echo 0-2 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus

sched_config "85 85" "96 96" "160" "260"
sched_config "85 85" "96 96" "150" "400"

sched_limit 0 0 0 5000 0 5000
sched_limit 0 0 0 10000 0 1000

exit 0
fi
Expand All @@ -239,7 +239,7 @@ if [[ "$action" = "balance" ]]; then
echo 0-2 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus

sched_config "78 85" "89 96" "120" "200"
sched_config "78 85" "89 96" "150" "400"

sched_limit 0 0 0 500 0 500

Expand All @@ -264,7 +264,7 @@ if [[ "$action" = "performance" ]]; then
echo 0-1 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus

sched_config "62 78" "72 85" "85" "100"
sched_config "62 78" "72 85" "150" "400"

sched_limit 0 0 0 0 0 0

Expand All @@ -289,7 +289,7 @@ if [[ "$action" = "fast" ]]; then
echo 0 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus

sched_config "55 75" "68 82" "85" "100"
sched_config "55 75" "68 82" "150" "400"

sched_limit 5000 0 2000 0 2000 0

Expand Down
14 changes: 7 additions & 7 deletions app/src/main/assets/powercfg/kona/conservative.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ if [[ ! "$gpu_governor" = "msm-adreno-tz" ]]; then
echo 'msm-adreno-tz' > /sys/class/kgsl/kgsl-3d0/devfreq/governor
fi

echo $gpu_max_freq > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
# echo $gpu_max_freq > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
echo $gpu_min_freq > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq
echo $gpu_min_pl > /sys/class/kgsl/kgsl-3d0/min_pwrlevel
echo $gpu_max_pl > /sys/class/kgsl/kgsl-3d0/max_pwrlevel
Expand Down Expand Up @@ -229,9 +229,9 @@ if [[ "$action" = "powersave" ]]; then
echo 0-2 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus

sched_config "85 85" "96 96" "160" "260"
sched_config "85 85" "96 96" "150" "400"

sched_limit 0 0 0 5000 0 5000
sched_limit 0 0 0 10000 0 1000

exit 0
fi
Expand All @@ -254,7 +254,7 @@ if [[ "$action" = "balance" ]]; then
echo 0-2 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus

sched_config "78 85" "89 96" "120" "200"
sched_config "78 85" "89 96" "150" "400"

sched_limit 0 0 0 500 0 500

Expand All @@ -279,7 +279,7 @@ if [[ "$action" = "performance" ]]; then
echo 0-1 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus

sched_config "65 78" "75 88" "85" "100"
sched_config "65 78" "75 88" "150" "400"

sched_limit 0 0 0 0 0 0

Expand All @@ -299,12 +299,12 @@ if [[ "$action" = "fast" ]]; then
echo 1862400 > /sys/devices/system/cpu/cpufreq/policy7/schedutil/hispeed_freq

echo `expr $gpu_min_pl - 2` > /sys/class/kgsl/kgsl-3d0/min_pwrlevel
echo 1 > /proc/sys/kernel/sched_boost
echo 0 > /proc/sys/kernel/sched_boost

echo 0 > /dev/cpuset/background/cpus
echo 0-3 > /dev/cpuset/system-background/cpus

sched_config "62 78" "72 85" "85" "100"
sched_config "62 78" "72 85" "150" "400"

sched_limit 5000 0 2000 0 2000 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,15 @@ class ActivityMain : ActivityBase() {
override fun onResume() {
super.onResume()

/*
// 典藏版 不检查更新
// 如果距离上次检查更新超过 24 小时
if (globalSPF.getLong(SpfConfig.GLOBAL_SPF_LAST_UPDATE, 0) + (3600 * 24 * 1000) < System.currentTimeMillis()) {
Update().checkUpdate(this)
globalSPF.edit().putLong(SpfConfig.GLOBAL_SPF_LAST_UPDATE, System.currentTimeMillis()).apply()
}
*/
}

private fun setHomePage() {
Expand Down

0 comments on commit 418dba8

Please sign in to comment.