Android Listener for Wrong Lock-pattern

前端 未结 1 1354
执念已碎
执念已碎 2021-01-17 05:29

I\'m trying to find a way to receive a message every time the user inserts a wrong lock pattern on it\'s android device. Honestly, I don\'t have a clue on how to achieve thi

1条回答
  •  离开以前
    2021-01-17 05:50

    Apparently this is not supported by Android (if CommonsWare says it isn't supported... then chances are you're out of luck). Sorry!

    Alternatively, you could implement your own screen lock application that can log information like this for you. Obviously this isn't ideal, but it might be something to think about.


    Edit:

    The reason why you can't do this is because the screen lock app runs in it's own sandbox environment. A "sandbox" is a set of fine-grained controls that limits access to files, preferences, network resources, etc. For this reason, the information you require is inaccessible.

    0 讨论(0)
提交回复
热议问题