Lock screen operation simulated by rooted app
i searched a lot about this and didn't found an answer about this.
in default Android phone the OS disable a lot of things when it is in lock screen mod for example the "long press of home button" that usually lead to
show the "history application" / "running application" list.
i'm assuming that if the OS is doing some API calls we can do the same or if the OS is registered in some policy we could do an application that will have the same policy that the lockscreen mod uses.
so, I wanted to know how the OS manage to do this and disable those so i could build an application on rooted phone that will do the same ?