mirror of https://github.com/mvt-project/mvt.git
Trying to catch missing argument error (ref: #211)
This commit is contained in:
parent
e4e1716729
commit
1b4f99a31d
|
@ -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:"):
|
||||
|
|
Loading…
Reference in New Issue