Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Set CPU frequency in Android?

Tags:

android

I'm a research student and I'm trying to build a android application which sets a specific CPU frequency. Similar to SetCPU, but my application is going to be automatic based on my own algorithm. I have referred to this question but that doesn't give any clue about where to start. I'm ready to work on kernal or OS level as my project is just a demo one and will not be released for users. Please provide any suggestions to where I can start or any sample code which I can refer to get started. Thanks.

like image 472
Leo Lion Avatar asked Jan 22 '26 06:01

Leo Lion


1 Answers

There is an open source application called Performance Control which requires root access and android 4.0+. You can do a lot of stuff including changing the CPU frequency with it. You can see the complete feature list in the official thread here and refer to the soucre code on github for the code to change CPU freq programitically.

Hope this helps :)

like image 122
Shantanu Avatar answered Jan 23 '26 21:01

Shantanu