Back to build
Raw log | Switch to full mode | Login

import subprocess import sys adb_path = sys.argv[1] for device in sys.argv[2:]: print 'Attempting to root device %s ...' % (device) subprocess.check_call([adb_path, '-s', device, 'root']) subprocess.check_call([adb_path, '-s', device, 'wait-for-device']) print 'Finished rooting device %s' % (device)