After successful root of device. Now, I need to make device always in wake state i.e. always visibility of UI and no black screen or any daydream screens. To do so I think I\'ve
Ok So after reading your question carefully, I found that you are not looking for any programmatic solution. You don't want to install an app to do that what you want is to modify the system file to achieve this functionality automatically.
Basically you want to modify the file who is exposing its methods to other apps by PowerManager class to control the sleep time and wake lock. Two things you need to know here:
Conclusion I understand you want to do something tricky by doing this but unfortunately it can't be done this way and even if you do so by playing with that file then all operations of your phone handled by PowerManager class will start playing with you. :)