Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Issue 949323003: Write adb public key to devices during provision. (Closed)

Created:
5 years, 10 months ago by navabi
Modified:
5 years, 9 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Write adb public key to devices during provision. Add a command-line argument for adb keys to be pushed onto the devices being provisioned. This can be used by bots to provide adb authentication. BUG= Committed: https://crrev.com/00c5fd30f5991deab5ba034d2f9829f0609342c7 Cr-Commit-Position: refs/heads/master@{#318325}

Patch Set 1 #

Patch Set 2 : Add adb_key file. #

Total comments: 4

Patch Set 3 : Change name of keys file to adbkeys.pub. #

Patch Set 4 : Write adb public keys from $HOME/.android/ #

Total comments: 5

Patch Set 5 : Write adb keys from $HOME/.android/ directory. #

Total comments: 4

Patch Set 6 : Make --adb-key-files an argument #

Total comments: 4

Patch Set 7 : Write adb keys passed as args and seperate out write adb keys function. #

Total comments: 11

Patch Set 8 : Use os.path.dirname and allow multiple keys in adb key files. #

Total comments: 4

Patch Set 9 : Use posixpath and nit fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M build/android/provision_devices.py View 1 2 3 4 5 6 7 8 5 chunks +20 lines, -7 lines 0 comments Download

Messages

Total messages: 33 (7 generated)
navabi
5 years, 10 months ago (2015-02-24 20:26:44 UTC) #2
jbudorick
Context?
5 years, 10 months ago (2015-02-24 20:28:44 UTC) #3
friedman1
https://codereview.chromium.org/949323003/diff/20001/build/android/pylib/adb_key File build/android/pylib/adb_key (right): https://codereview.chromium.org/949323003/diff/20001/build/android/pylib/adb_key#newcode1 build/android/pylib/adb_key:1: QAAAALMQ6qSF4WhrptFFI7/OGJHf77IBaXEyMKNSh0ih5KOP+rqDvjmWfvXqX/Za9nypQdBxddXhoeS7OAg7LJSXEF3iK5rRFpMq36b5Yhkd2O32WqalNUxGKAbUgOTXj/83D6YBT90qXw1Dz3CsbFRkByCTVdHjbkFF4TENPhwUFIu4G7wPmfqf/TO6g3gnyOenbGJx7Uc9KQu6VNK6jxhe7hbpBbpqlR6B2uuGH3w5U8qlwaYzf+dIt7KMAThNoglfL7CuLNDjOI+K8Beu9rncr6NfXVs2/6m9BRt84szYjhicpo6VWPFMyla7oUuMJANGYh6qj9uO3lPlcW7wu9v+JZaIEJbY9ffvgoKw4bIvrv7QIc32EBWijMOfIxsnm203z2YJVGzSOsJWrI0oTqQXfm0/WW+uKZ6fKv8lzovMzVqONV8FosYkK4OhGnWWrE7qXMr3sBqtJrAIpheyLP3qhrFFc0Fpf8IKjPc1d4RfSUVFCyEApCwvqdqniQZUriGfD00z08m+dMjR7551pKU24v1JZGRlr2jE+UsUDUfBw/k6QCc6e7lQl2A8ubf8S22RAWRuMi/NaPm1GHuKwThYwy9GHrJxrY8zxIaz9hIm6mB1E9Er6hVWs6fW3yxz1i8EX8dtwZLM/aR3ek/nOBqdseqpCCgDMhqFEpHQpHlRHwCEmmXIbQEAAQA= chrome-infrastructure-adb-key Rename this file adbkey.pub. https://codereview.chromium.org/949323003/diff/20001/build/android/pylib/constants.py File build/android/pylib/constants.py ...
5 years, 10 months ago (2015-02-24 20:47:11 UTC) #5
navabi
John, I updated the description to include more context. https://codereview.chromium.org/949323003/diff/20001/build/android/pylib/adb_key File build/android/pylib/adb_key (right): https://codereview.chromium.org/949323003/diff/20001/build/android/pylib/adb_key#newcode1 build/android/pylib/adb_key:1: ...
5 years, 10 months ago (2015-02-24 20:58:17 UTC) #7
jbudorick
I think this is the wrong approach to a good idea. If the private key ...
5 years, 10 months ago (2015-02-24 21:02:08 UTC) #8
navabi
PTAL. How about this approach? We don't check any public adb key into the chromium ...
5 years, 10 months ago (2015-02-24 23:32:52 UTC) #9
navabi
PTAL. How about this approach? We don't check any public adb key into the chromium ...
5 years, 10 months ago (2015-02-24 23:32:52 UTC) #10
navabi
PTAL. How about this approach? We don't check any public adb key into the chromium ...
5 years, 10 months ago (2015-02-24 23:32:53 UTC) #11
friedman1
https://codereview.chromium.org/949323003/diff/60001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/60001/build/android/provision_devices.py#newcode28 build/android/provision_devices.py:28: from sets import Set set is a python builtin ...
5 years, 10 months ago (2015-02-24 23:33:44 UTC) #13
jbudorick
https://codereview.chromium.org/949323003/diff/80001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/80001/build/android/provision_devices.py#newcode130 build/android/provision_devices.py:130: adb_dir_exists = device.FileExists(os.path.dirname(constants.ADB_KEYS_FILE)) I still think it'd be better ...
5 years, 10 months ago (2015-02-24 23:44:49 UTC) #14
navabi
PTAL. I made it an argument and updated the description. https://codereview.chromium.org/949323003/diff/60001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/60001/build/android/provision_devices.py#newcode28 ...
5 years, 10 months ago (2015-02-25 01:22:35 UTC) #15
jbudorick
https://codereview.chromium.org/949323003/diff/100001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/100001/build/android/provision_devices.py#newcode164 build/android/provision_devices.py:164: file_path = os.path.join(os.environ['HOME'], '.android', adb_key_file) to be clear: I ...
5 years, 10 months ago (2015-02-25 01:32:46 UTC) #16
navabi
https://codereview.chromium.org/949323003/diff/100001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/100001/build/android/provision_devices.py#newcode164 build/android/provision_devices.py:164: file_path = os.path.join(os.environ['HOME'], '.android', adb_key_file) On 2015/02/25 01:32:46, jbudorick ...
5 years, 10 months ago (2015-02-25 01:37:21 UTC) #17
navabi
PTAL. There is now an option --adb-keys-files <file1> <file2> ... WipeData still does the same ...
5 years, 10 months ago (2015-02-25 07:24:49 UTC) #18
perezju
This is looking good. Just adding a few comments. https://codereview.chromium.org/949323003/diff/120001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/120001/build/android/provision_devices.py#newcode118 build/android/provision_devices.py:118: ...
5 years, 10 months ago (2015-02-25 09:35:41 UTC) #19
jbudorick
https://codereview.chromium.org/949323003/diff/120001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/120001/build/android/provision_devices.py#newcode118 build/android/provision_devices.py:118: dir_path = '/'.join(path_list[:len(path_list)-1]) On 2015/02/25 09:35:41, perezju wrote: > ...
5 years, 9 months ago (2015-02-25 14:09:07 UTC) #20
navabi
Thanks for the reviews. https://codereview.chromium.org/949323003/diff/120001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/120001/build/android/provision_devices.py#newcode118 build/android/provision_devices.py:118: dir_path = '/'.join(path_list[:len(path_list)-1]) On 2015/02/25 ...
5 years, 9 months ago (2015-02-25 18:57:26 UTC) #21
navabi
PTAL
5 years, 9 months ago (2015-02-25 19:00:08 UTC) #22
jbudorick
https://codereview.chromium.org/949323003/diff/120001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/120001/build/android/provision_devices.py#newcode118 build/android/provision_devices.py:118: dir_path = '/'.join(path_list[:len(path_list)-1]) On 2015/02/25 18:57:25, navabi wrote: > ...
5 years, 9 months ago (2015-02-25 21:47:39 UTC) #23
navabi
PTAL https://codereview.chromium.org/949323003/diff/140001/build/android/provision_devices.py File build/android/provision_devices.py (right): https://codereview.chromium.org/949323003/diff/140001/build/android/provision_devices.py#newcode117 build/android/provision_devices.py:117: dir_path = os.path.dirname(constants.ADB_KEYS_FILE) On 2015/02/25 21:47:39, jbudorick wrote: ...
5 years, 9 months ago (2015-02-25 23:02:09 UTC) #24
jbudorick
lgtm
5 years, 9 months ago (2015-02-25 23:14:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/949323003/160001
5 years, 9 months ago (2015-02-26 00:41:19 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja_ng/builds/14720)
5 years, 9 months ago (2015-02-26 00:42:59 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/949323003/160001
5 years, 9 months ago (2015-02-26 21:56:36 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 9 months ago (2015-02-26 22:07:58 UTC) #32
commit-bot: I haz the power
5 years, 9 months ago (2015-02-26 22:11:01 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/00c5fd30f5991deab5ba034d2f9829f0609342c7
Cr-Commit-Position: refs/heads/master@{#318325}

Powered by Google App Engine
This is Rietveld 408576698