How do android “app lock” applications work?

后端 未结 2 430
温柔的废话
温柔的废话 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.

    0 讨论(0)
  • 2020-12-05 07:46

    there is a service running in the background to read the activity stack. if find new activity, will start the passwordActivity

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