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

Issue 1291793007: GN(android): Add scripts & runtime logic for installing _managed apks (Closed)

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

Description

GN(android): Add scripts & runtime logic for installing _incremental apks Currently only .so files are side-loaded (no .dex side-loading yet). Does not require a rooted device. Usage: ninja -C out/Debug chrome_apk_incremental out/Debug/bin/install_incremental_chrome_app_apk BUG=520082 Committed: https://crrev.com/ae65db8da9a27bea569869f4b5a86de4b4857260 Cr-Commit-Position: refs/heads/master@{#346583}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added --uninstall to script #

Total comments: 6

Patch Set 3 : javadoc & faster managed_install.py when --device specified #

Total comments: 20

Patch Set 4 : review comments #

Total comments: 15

Patch Set 5 : review comments #

Total comments: 3

Patch Set 6 : rebase #

Patch Set 7 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -17 lines) Patch
M base/BUILD.gn View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A base/android/java/debug_src/org/chromium/base/IncrementalInstall.java View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A base/android/java/debug_src/org/chromium/base/Reflect.java View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
A base/android/java/release_src/org/chromium/base/IncrementalInstall.java View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M base/android/java/src/org/chromium/base/BaseChromiumApplication.java View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
A build/android/gn/create_incremental_install_script.py View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
M build/android/gyp/util/build_utils.py View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
A build/android/incremental_install.py View 1 2 3 4 1 chunk +91 lines, -0 lines 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 2 chunks +13 lines, -11 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 2 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (10 generated)
agrieve
nyquist@chromium.org: Please review changes in /base jbudorick@chromium.org: Please review changes in /build Note: not sure ...
5 years, 4 months ago (2015-08-19 14:06:16 UTC) #2
nyquist
I personally like small and to-the-point targets, and like having a conditional DEPS better than ...
5 years, 4 months ago (2015-08-19 17:13:15 UTC) #3
agrieve
I think having it in its own target will probably be the way to go, ...
5 years, 4 months ago (2015-08-20 01:35:07 UTC) #4
agrieve
thestig@chromium.org: Please review changes in base/BUILD.gn, base/base.gyp
5 years, 4 months ago (2015-08-20 01:37:30 UTC) #6
Lei Zhang
https://codereview.chromium.org/1291793007/diff/40001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1291793007/diff/40001/base/BUILD.gn#newcode1595 base/BUILD.gn:1595: [ "android/java/release_src/org/chromium/base/ManagedInstall.java" ] Can this be: java_files = [ ...
5 years, 4 months ago (2015-08-20 02:01:48 UTC) #7
agrieve
https://codereview.chromium.org/1291793007/diff/40001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1291793007/diff/40001/base/BUILD.gn#newcode1595 base/BUILD.gn:1595: [ "android/java/release_src/org/chromium/base/ManagedInstall.java" ] On 2015/08/20 02:01:48, Lei Zhang wrote: ...
5 years, 4 months ago (2015-08-20 02:11:05 UTC) #8
Lei Zhang
Well, I'm happy if the Android reviewers are happy. https://codereview.chromium.org/1291793007/diff/40001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1291793007/diff/40001/base/BUILD.gn#newcode1595 base/BUILD.gn:1595: ...
5 years, 4 months ago (2015-08-20 02:14:25 UTC) #9
jbudorick
https://codereview.chromium.org/1291793007/diff/1/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/1291793007/diff/1/build/android/gyp/util/build_utils.py#newcode326 build/android/gyp/util/build_utils.py:326: # Support both argparse and optparse. TODO to get ...
5 years, 4 months ago (2015-08-23 02:01:28 UTC) #10
agrieve
https://codereview.chromium.org/1291793007/diff/1/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/1291793007/diff/1/build/android/gyp/util/build_utils.py#newcode326 build/android/gyp/util/build_utils.py:326: # Support both argparse and optparse. On 2015/08/23 02:01:28, ...
5 years, 4 months ago (2015-08-26 00:22:40 UTC) #11
nyquist
base lgtm https://codereview.chromium.org/1291793007/diff/60001/base/android/java/debug_src/org/chromium/base/IncrementalInstall.java File base/android/java/debug_src/org/chromium/base/IncrementalInstall.java (right): https://codereview.chromium.org/1291793007/diff/60001/base/android/java/debug_src/org/chromium/base/IncrementalInstall.java#newcode31 base/android/java/debug_src/org/chromium/base/IncrementalInstall.java:31: if (currentDirs instanceof List) { Optional nit: ...
5 years, 4 months ago (2015-08-26 05:23:55 UTC) #12
Lei Zhang
lgtm stamp https://codereview.chromium.org/1291793007/diff/60001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1291793007/diff/60001/base/BUILD.gn#newcode1605 base/BUILD.gn:1605: java_files = [ "android/java/release_src/org/chromium/base/IncrementalInstall.java" ] nit: 80 ...
5 years, 3 months ago (2015-08-26 20:49:08 UTC) #13
jbudorick
https://codereview.chromium.org/1291793007/diff/60001/build/android/gn/create_incremental_install_script.py File build/android/gn/create_incremental_install_script.py (right): https://codereview.chromium.org/1291793007/diff/60001/build/android/gn/create_incremental_install_script.py#newcode1 build/android/gn/create_incremental_install_script.py:1: #!/usr/bin/env python build/android/gn...? I'd rather not have one build ...
5 years, 3 months ago (2015-08-27 00:37:38 UTC) #14
agrieve
https://codereview.chromium.org/1291793007/diff/60001/build/android/gn/create_incremental_install_script.py File build/android/gn/create_incremental_install_script.py (right): https://codereview.chromium.org/1291793007/diff/60001/build/android/gn/create_incremental_install_script.py#newcode1 build/android/gn/create_incremental_install_script.py:1: #!/usr/bin/env python On 2015/08/27 00:37:37, jbudorick wrote: > build/android/gn...? ...
5 years, 3 months ago (2015-08-27 03:20:00 UTC) #15
agrieve
https://codereview.chromium.org/1291793007/diff/60001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1291793007/diff/60001/base/BUILD.gn#newcode1605 base/BUILD.gn:1605: java_files = [ "android/java/release_src/org/chromium/base/IncrementalInstall.java" ] On 2015/08/26 20:49:07, Lei ...
5 years, 3 months ago (2015-08-27 03:21:19 UTC) #16
jbudorick
https://codereview.chromium.org/1291793007/diff/60001/build/android/gn/create_incremental_install_script.py File build/android/gn/create_incremental_install_script.py (right): https://codereview.chromium.org/1291793007/diff/60001/build/android/gn/create_incremental_install_script.py#newcode1 build/android/gn/create_incremental_install_script.py:1: #!/usr/bin/env python On 2015/08/27 at 03:19:59, agrieve wrote: > ...
5 years, 3 months ago (2015-08-27 03:24:09 UTC) #17
agrieve
https://codereview.chromium.org/1291793007/diff/80001/build/android/incremental_install.py File build/android/incremental_install.py (right): https://codereview.chromium.org/1291793007/diff/80001/build/android/incremental_install.py#newcode45 build/android/incremental_install.py:45: constants.SetBuildType('Debug') On 2015/08/27 03:24:09, jbudorick wrote: > Oh, I ...
5 years, 3 months ago (2015-08-27 04:11:13 UTC) #18
jbudorick
https://codereview.chromium.org/1291793007/diff/80001/build/android/incremental_install.py File build/android/incremental_install.py (right): https://codereview.chromium.org/1291793007/diff/80001/build/android/incremental_install.py#newcode45 build/android/incremental_install.py:45: constants.SetBuildType('Debug') On 2015/08/27 at 04:11:13, agrieve wrote: > On ...
5 years, 3 months ago (2015-08-27 13:49:29 UTC) #19
agrieve
On 2015/08/27 13:49:29, jbudorick wrote: > https://codereview.chromium.org/1291793007/diff/80001/build/android/incremental_install.py > File build/android/incremental_install.py (right): > > https://codereview.chromium.org/1291793007/diff/80001/build/android/incremental_install.py#newcode45 > ...
5 years, 3 months ago (2015-08-27 21:39:30 UTC) #20
jbudorick
On 2015/08/27 at 21:39:30, agrieve wrote: > On 2015/08/27 13:49:29, jbudorick wrote: > > https://codereview.chromium.org/1291793007/diff/80001/build/android/incremental_install.py ...
5 years, 3 months ago (2015-08-27 21:45:37 UTC) #21
jbudorick
lgtm
5 years, 3 months ago (2015-08-27 21:45:42 UTC) #22
Yaron
Why restrict to only debug? I still use gyp_managed_install when building for release. I guess ...
5 years, 3 months ago (2015-08-27 21:45:49 UTC) #23
chromium-reviews
That's my thinking. Although, if it is actually useful to have it in release mode ...
5 years, 3 months ago (2015-08-28 14:38:39 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291793007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291793007/80001
5 years, 3 months ago (2015-08-28 14:42:42 UTC) #27
agrieve
https://codereview.chromium.org/1291793007/diff/60001/base/android/java/debug_src/org/chromium/base/IncrementalInstall.java File base/android/java/debug_src/org/chromium/base/IncrementalInstall.java (right): https://codereview.chromium.org/1291793007/diff/60001/base/android/java/debug_src/org/chromium/base/IncrementalInstall.java#newcode31 base/android/java/debug_src/org/chromium/base/IncrementalInstall.java:31: if (currentDirs instanceof List) { On 2015/08/26 05:23:54, nyquist ...
5 years, 3 months ago (2015-08-28 14:43:29 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/90935) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-08-28 14:44:27 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291793007/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291793007/100001
5 years, 3 months ago (2015-08-31 17:12:06 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/126630)
5 years, 3 months ago (2015-08-31 17:24:51 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291793007/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291793007/120001
5 years, 3 months ago (2015-09-01 02:48:01 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 3 months ago (2015-09-01 07:03:56 UTC) #39
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 07:04:41 UTC) #40
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ae65db8da9a27bea569869f4b5a86de4b4857260
Cr-Commit-Position: refs/heads/master@{#346583}

Powered by Google App Engine
This is Rietveld 408576698