This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Try the followings:
Change the value of def_screen_off_timeout in frameworks/base/packages/SettingsProvider/res/values/defaults.xml from 60000 to -1
Change default value of mExternallyEnabled from true to false in frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewMediator.java