Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 51cdedd

Browse files
committed
temporarily filter droidlookup devices
1 parent ceb745d commit 51cdedd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bbarchivist/scripts/droidlookup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,21 @@ def grab_args():
6464
help="Only scan one OS build",
6565
action="store_true",
6666
default=False)
67+
parser.add_argument(
68+
"-a",
69+
"--all-devices",
70+
dest="alldevices",
71+
help="Scan all devices, not just known ones",
72+
action="store_true",
73+
default=False)
6774
args = parser.parse_args(sys.argv[1:])
6875
parser.set_defaults()
6976
if args.single:
7077
args.ceil = args.floor # range(x, x+1) == x
7178
if args.device is None:
7279
famlist = jsonutils.load_json("droidfamilies")
80+
if not args.alldevices:
81+
famlist = famlist[:3] # Priv/DTEKx0, but not Keyone/Aurora
7382
droidlookup_main(famlist, args.branch, args.floor, args.ceil, args.type)
7483
else:
7584
droidlookup_main(args.device, args.branch, args.floor, args.ceil, args.type)

0 commit comments

Comments
 (0)