~nuclearbob/ubuntu-test-cases/bootspeed-nfss

« back to all changes in this revision

Viewing changes to scripts/get-adb-id

MergedĀ upstreamĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
3
3
import sys
4
 
from device_info import get_serial
 
4
from device_info import get_device
5
5
 
6
6
if __name__ == '__main__':
7
7
    name = sys.argv[1]
8
8
 
9
9
    try:
10
 
        print(get_serial(name))
 
10
        device = get_device(name)
 
11
        print(device.get_serial())
11
12
    except:
12
13
        print("Unknown device name: '%s'" % name)
13
14
        sys.exit(-1)