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

Issue 1165753002: Fix adb_chrome_public_command_line for Android M & refactor into a helper .sh (Closed)

Created:
5 years, 6 months ago by agrieve
Modified:
5 years, 4 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, newt (away), yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix adb_chrome_public_command_line for Android M & refactor into a helper .sh BUG=493878 Committed: https://crrev.com/c481d6771df7cfd731ab174b561388fca8596ce1 Cr-Commit-Position: refs/heads/master@{#332263}

Patch Set 1 #

Patch Set 2 : Don't show error when reading flags file and it doesn't exist #

Total comments: 7

Patch Set 3 : Use sdklevel rather than feature detection for su style #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -81 lines) Patch
M build/android/adb_android_webview_command_line View 1 chunk +3 lines, -20 lines 0 comments Download
M build/android/adb_chrome_public_command_line View 1 chunk +3 lines, -21 lines 0 comments Download
M build/android/adb_chrome_shell_command_line View 1 chunk +3 lines, -20 lines 0 comments Download
A build/android/adb_command_line_functions.sh View 1 2 1 chunk +40 lines, -0 lines 1 comment Download
M build/android/adb_content_shell_command_line View 1 chunk +3 lines, -20 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
agrieve
5 years, 6 months ago (2015-06-01 15:26:22 UTC) #2
jbudorick
https://codereview.chromium.org/1165753002/diff/20001/build/android/adb_command_line_functions.sh File build/android/adb_command_line_functions.sh (right): https://codereview.chromium.org/1165753002/diff/20001/build/android/adb_command_line_functions.sh#newcode12 build/android/adb_command_line_functions.sh:12: if [[ "$REQUIRES_SU" = 1 ]]; then -eq ? ...
5 years, 6 months ago (2015-06-01 15:43:24 UTC) #3
agrieve
https://codereview.chromium.org/1165753002/diff/20001/build/android/adb_command_line_functions.sh File build/android/adb_command_line_functions.sh (right): https://codereview.chromium.org/1165753002/diff/20001/build/android/adb_command_line_functions.sh#newcode12 build/android/adb_command_line_functions.sh:12: if [[ "$REQUIRES_SU" = 1 ]]; then On 2015/06/01 ...
5 years, 6 months ago (2015-06-01 15:58:19 UTC) #4
jbudorick
https://codereview.chromium.org/1165753002/diff/20001/build/android/adb_command_line_functions.sh File build/android/adb_command_line_functions.sh (right): https://codereview.chromium.org/1165753002/diff/20001/build/android/adb_command_line_functions.sh#newcode14 build/android/adb_command_line_functions.sh:14: IS_OLD_STYLE=$(adb shell su -c echo 1 2>/dev/null) On 2015/06/01 ...
5 years, 6 months ago (2015-06-01 17:44:21 UTC) #5
agrieve
On 2015/06/01 17:44:21, jbudorick wrote: > https://codereview.chromium.org/1165753002/diff/20001/build/android/adb_command_line_functions.sh > File build/android/adb_command_line_functions.sh (right): > > https://codereview.chromium.org/1165753002/diff/20001/build/android/adb_command_line_functions.sh#newcode14 > ...
5 years, 6 months ago (2015-06-01 19:22:36 UTC) #6
jbudorick
lgtm
5 years, 6 months ago (2015-06-01 19:23:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1165753002/40001
5 years, 6 months ago (2015-06-01 20:23:18 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-01 20:52:53 UTC) #10
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c481d6771df7cfd731ab174b561388fca8596ce1 Cr-Commit-Position: refs/heads/master@{#332263}
5 years, 6 months ago (2015-06-01 20:53:47 UTC) #11
Dmitry Skiba
https://codereview.chromium.org/1165753002/diff/40001/build/android/adb_command_line_functions.sh File build/android/adb_command_line_functions.sh (right): https://codereview.chromium.org/1165753002/diff/40001/build/android/adb_command_line_functions.sh#newcode27 build/android/adb_command_line_functions.sh:27: adb shell "cat $CMD_LINE_FILE 2>/dev/null | cut -d ' ...
5 years, 6 months ago (2015-06-02 20:24:25 UTC) #13
agrieve
On 2015/06/02 20:24:25, dskiba wrote: > https://codereview.chromium.org/1165753002/diff/40001/build/android/adb_command_line_functions.sh > File build/android/adb_command_line_functions.sh (right): > > https://codereview.chromium.org/1165753002/diff/40001/build/android/adb_command_line_functions.sh#newcode27 > ...
5 years, 6 months ago (2015-06-03 00:19:24 UTC) #14
agrieve
On 2015/06/03 00:19:24, agrieve wrote: > On 2015/06/02 20:24:25, dskiba wrote: > > > https://codereview.chromium.org/1165753002/diff/40001/build/android/adb_command_line_functions.sh ...
5 years, 6 months ago (2015-06-03 00:20:00 UTC) #15
Nico
5 years, 4 months ago (2015-07-28 20:42:31 UTC) #17
Message was sent while issue was closed.
I happened to see this today. I think it's a bad idea to create shell helper
libraries. We shouldn't write any interesting scripts as bash scripts, as we
keep learning over and over (see e.g. crbug.com/330631 for a previous cleanup
effortr). All these scripts assume that adb is in the path instead of using
constants.GetAdbRoot() (
https://code.google.com/p/chromium/codesearch#chromium/src/build/android/pyli...
), not everyone speaks shell, not everyone uses bash, etc etc etc.

Powered by Google App Engine
This is Rietveld 408576698