How to make android device always in wake mode?

后端 未结 7 1408
名媛妹妹
名媛妹妹 2021-02-07 04:46

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

7条回答
  •  轮回少年
    2021-02-07 05:13

    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:

    1. The system file you are looking for is available in jar format not in text or any other form.
    2. If somehow you will locate that file and start playing with that then you would end up breaking the compiled version of Android framework and your phone may misbehave after that.

    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. :)

提交回复
热议问题