Skip to content

Commit

Permalink
Added -A option to ps to list all processes. Fixes [#102565](home-ass…
Browse files Browse the repository at this point in the history
  • Loading branch information
mano3m committed Jan 7, 2024
1 parent 7aa7c6a commit 86a27ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion androidtv/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class DeviceEnum(IntEnum):
CMD_RUNNING_APPS_ANDROIDTV = "ps -A | grep u0_a"

#: Get the running apps for a Fire TV device
CMD_RUNNING_APPS_FIRETV = "ps | grep u0_a"
CMD_RUNNING_APPS_FIRETV = "ps -A | grep u0_a"

#: Get installed apps
CMD_INSTALLED_APPS = "pm list packages"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def test_constants(self):
self.assertCommand(constants.CMD_RUNNING_APPS_ANDROIDTV, r"ps -A | grep u0_a")

# CMD_RUNNING_APPS_FIRETV
self.assertCommand(constants.CMD_RUNNING_APPS_FIRETV, r"ps | grep u0_a")
self.assertCommand(constants.CMD_RUNNING_APPS_FIRETV, r"ps -A | grep u0_a")

# CMD_SCREEN_ON
self.assertCommand(
Expand Down

0 comments on commit 86a27ae

Please sign in to comment.