How do android “app lock” applications work?

后端 未结 2 434
温柔的废话
温柔的废话 2020-12-05 07:09

I\'ve tried googling, and looking on stackoverflow as well, but I can\'t seem to find any satisfying answer as to how the \"App lock\" applications(eg: ZDBox, App Lock, etc.

2条回答
  •  长情又很酷
    2020-12-05 07:33

    they are watching logcat output. whenever you start an activity, you can find specific logcat. like this,

    I/ActivityManager(  585): Starting activity: Intent { action=android.intent.action...}
    

    if this logcat printed by locked app, locker service starts password screen.

提交回复
热议问题