applications
Returns all applications using the am stack list command.
am: The activity manager stack: The application stack list: List of all applications in the stack
Key = Package (String) Value = Visibility (Boolean)
Return
Map of all packages and their visibility
Parameters
ui Automation
The automation instance used for automated testing