Using FLAG_SHOW_WHEN_LOCKED with disableKeyguard() in secured Android lock screen

后端 未结 5 1681
轻奢々
轻奢々 2021-01-30 11:33

The Context

Recently, I have been looking for reliable ways to control a secured Android Keyguard. Mainly to display a custom lock screen. I know that Google had state

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-30 11:52

    If AOSP is in your control then you need to set the simple flag and keyguard() is gone for good. Here is the details to do that, get into the file "overlay/frameworks/base/packages/SystemUI/res/values/config.xml" and search for "config_enableKeyguardService" then set the flag to false.

    NO MORE keyGuard, pheww

提交回复
热议问题