I am in process of porting Android Kitkat 4.4.2 on Freescale iMX6 based custom board. Android is working properly now but it have a requirement to keep the screen ON permanently regardless of whatever application is running.
I am browsing the AOSP code to find out which function to comment out to disable the screen timeout functionality but no success so far. Can you guys point out to the right file/function ?
So far I have tried to comment out the code inside goToSleepInternal() function in frameworks/base/services/java/com/android/server/power/PowerManagerService.java but it is not disabling the screen timeout.