mirror of
https://github.com/mvt-project/mvt.git
synced 2026-10-11 02:08:53 +02:00
Trying to catch missing argument error (ref: #211)
This commit is contained in:
1 parent
e4e1716729
commit
1b4f99a31d
1 file changed
+3
@@ -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:"):
|
||||
|
||||
Reference in new issue
Block a user