如何在Android设备上读取CPU频率
16lz
2021-01-22
Is there any Java API for that? How can I read this information.
那有没有Java API?我该如何阅读这些信息。
3 个解决方案
#1
40
To have frequency on Android, just read these special files in /sys directory:
要在Android上拥有频率,只需在/ sys目录中阅读这些特殊文件:
#cat "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq"
#cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq"
#cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq"
You will have current, min and max Frequency allowed.
您将获得当前,最小和最大频率。
更多相关文章
- 744.寻找比目标字母大的最小字母(Find Smallest Letter Greater
- 蓝桥杯 ALGO-53 算法训练 最小乘积(基本型)
- 如何在2D阵列中找到局部最小值?
- 剑指Offer(六)旋转数组的最小数字(Java版 )