Is there a way to get the currently running application (package) for all available OS?

I know there are too many questions already addressed in this topic, but which are not supported in all OS / devices

Question

  • Is there a way to get the current running application (package) for all available OS ?
  • How does AppLock work (how does it detect application launch)?

What I tried (but failed)

What I want

+4
1

2 , , , , .

1) "launcher". , . , , .

2) "" . . "", , , . - , .., ( , , " ", , , ( ).

!

+1

Source: https://habr.com/ru/post/1691611/


All Articles