title: How to Set CPU frequency in Android?
body: <p>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 <a href="https://stackoverflow.com/questions/4238959/how-to-change-clock-frequency-in-android">this question</a> 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.</p>