Skip to content

Commit

Permalink
辅助服务微调
Browse files Browse the repository at this point in the history
  • Loading branch information
helloklf committed Jun 25, 2021
1 parent f5115fc commit 7d2b0b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions app/src/main/assets/powercfg/lahaina/powercfg-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ setprop vtools.powercfg_hint "$hint_mode"
# GPU频率表
gpu_freqs=`cat /sys/class/kgsl/kgsl-3d0/devfreq/available_frequencies`
# GPU最大频率
gpu_max_freq='585000000'
gpu_max_freq='840000000'
# GPU最小频率
gpu_min_freq='257000000'
gpu_min_freq='315000000'
# GPU最小 power level
gpu_min_pl=5
# GPU最大 power level
Expand Down Expand Up @@ -178,6 +178,10 @@ devfreq_performance () {
fi
done
fi
echo 12191 > /sys/class/devfreq/soc:qcom,cpu-llcc-ddr-bw/min_freq
echo 12191 > /sys/class/devfreq/soc:qcom,cpu-llcc-ddr-bw/max_freq
echo 15258 > /sys/class/devfreq/soc:qcom,cpu-cpu-llcc-bw/min_freq
echo 15258 > /sys/class/devfreq/soc:qcom,cpu-cpu-llcc-bw/max_freq
}

devfreq_restore () {
Expand All @@ -192,6 +196,8 @@ devfreq_restore () {
fi
done < $devfreq_backup
fi
echo 2288 > /sys/class/devfreq/soc:qcom,cpu-cpu-llcc-bw/min_freq
echo 762 > /sys/class/devfreq/soc:qcom,cpu-llcc-ddr-bw/min_freq
}

set_value() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public class AccessibilityScenceMode : AccessibilityService() {
}
}
logs?.append("\n")
if (lastWindow != null && lastWindow.isFocused) {
if (lastWindow != null) {
val eventWindowId = event?.windowId
val lastWindowId = lastWindow.id

Expand Down

0 comments on commit 7d2b0b0

Please sign in to comment.