I'm a new to software development on Android.
I want to make an application like SetCPU that can manipulate CPU frequency in Android.
But I couldn't find some related APIs or materials.
I want to know following two things sincerely.
- Are there APIs to change the CPU frequency in Android?
- If not, are there some APIs in Linux?
There is no Java API to change the frequency of an Android device. The only way to do this is to get your hands dirty with the Kernel.
Some commands in ADB
Set Governor:
Set Frequency in KHz:
Get current CPU Frequency:
Show availables governors:
Disable service that overwrite cpu online file:
It's necessary to do this before enabling or disabling core. mp decision is restarted if the system is restarted.
Disable core:
If that doesn't work:
Looks like you need to root your device
http://www.pokedev.com/setcpu/