I've used many apps that show the speed in MHz on my phone, but where are they getting the information from? I am trying to get the minimum and maximum frequencies of my processor, but am stuck. I've tried reading from:
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
but, the only folders under cpufreq are "power", "subsystem", "uevent", and "topology".
/sys/devices/system/cpu/cpufreq/
Also has no files.
/proc/cpuinfo
Has a lot of information, but it only shows BogoMIPS instead of both.
Is there elsewhere should be looking or is there some special equation that I need to use in order to calculate it from the data that I do have?
For me,this code works:
String cpuMaxFreq = "";
RandomAccessFile reader = new RandomAccessFile("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", "r");
cpuMaxFreq = reader.readLine();
reader.close();