diff --git a/app/build.gradle b/app/build.gradle index da1cacc81..2c2c2d9f6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -65,7 +65,7 @@ android { version "3.10.2" } } - ndkVersion '22.0.7026061' + ndkVersion '21.0.6113669' } dependencies { diff --git a/app/src/main/assets/powercfg/kona/active.sh b/app/src/main/assets/powercfg/kona/active.sh index 0f5124820..dba5bf276 100644 --- a/app/src/main/assets/powercfg/kona/active.sh +++ b/app/src/main/assets/powercfg/kona/active.sh @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/app/src/main/assets/powercfg/kona/conservative.sh b/app/src/main/assets/powercfg/kona/conservative.sh index 74415837d..b1e29bb8a 100644 --- a/app/src/main/assets/powercfg/kona/conservative.sh +++ b/app/src/main/assets/powercfg/kona/conservative.sh @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/app/src/main/java/com/omarea/vtools/activities/ActivityMain.kt b/app/src/main/java/com/omarea/vtools/activities/ActivityMain.kt index e9af4d2f6..4506b3061 100644 --- a/app/src/main/java/com/omarea/vtools/activities/ActivityMain.kt +++ b/app/src/main/java/com/omarea/vtools/activities/ActivityMain.kt @@ -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() {