Trying to catch missing argument error (ref: #211)

This commit is contained in:
Nex 2022-01-21 12:20:22 +01:00
parent e4e1716729
commit 1b4f99a31d
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ class Packages(AndroidExtraction):
self._adb_connect()
packages = self._adb_command("pm list packages -U -u -i -f")
if packages.strip() == "Error: Unknown option: -U":
packages = self._adb_command("pm list packages -u -i -f")
for line in packages.split("\n"):
line = line.strip()
if not line.startswith("package:"):