Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read cpu frequency on android device [closed]

Tags:

Is there any Java API for that? How can I read this information.

like image 487
michael Avatar asked Jun 11 '10 07:06

michael


People also ask

How do I check my CPU MHz?

If you're wondering how to check your clock speed, click the Start menu (or click the Windows* key) and type “System Information.” Your CPU's model name and clock speed will be listed under “Processor”.

What is CPU frequency in mobile?

Today's fastest mobile processors have clock speeds ranging from 1.8 GHz to 2.2 GHz, though anything above 1 GHz should be acceptable.


1 Answers

To have frequency on Android, just read these special files in /sys directory:

#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.

like image 83
Ellis Avatar answered Dec 01 '22 22:12

Ellis