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

Issue 1316803004: [Android] Set permission when installing apks. (Closed)

Created:
5 years, 3 months ago by rnephew (Reviews Here)
Modified:
5 years, 3 months ago
Reviewers:
perezju, jbudorick
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, 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

[Android] Set permission when installing apks. To support M testing, we need to explicilty grant permissions to apps when we install them. BUG= Committed: https://crrev.com/de468d72d9eeeb86b439e6a7c877de0ebb349fca Cr-Commit-Position: refs/heads/master@{#347787}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : add tests #

Total comments: 3

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : Rebase and changes #

Total comments: 10

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Total comments: 8

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -34 lines) Patch
M build/android/devil/android/apk_helper.py View 1 chunk +7 lines, -0 lines 0 comments Download
M build/android/devil/android/device_utils.py View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +59 lines, -25 lines 0 comments Download
M build/android/devil/android/device_utils_test.py View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +71 lines, -5 lines 0 comments Download
M build/android/pylib/gtest/gtest_test_instance.py View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/local_device_gtest_run.py View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M build/android/pylib/gtest/test_runner.py View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M build/android/pylib/instrumentation/instrumentation_test_instance.py View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -0 lines 0 comments Download
M build/android/pylib/instrumentation/test_package.py View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M build/android/pylib/local/device/local_device_instrumentation_test_run.py View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (2 generated)
rnephew (Reviews Here)
Tested locally using: Gtest, platform mode: ./test_runner.py gtest -s media_unittests --gtest-filter *MediaCodecPlayerTest* --device $NEXUS6 --enable-platform-mode ...
5 years, 3 months ago (2015-09-03 15:15:28 UTC) #2
jbudorick
https://codereview.chromium.org/1316803004/diff/80001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/80001/build/android/devil/android/device_utils.py#newcode557 build/android/devil/android/device_utils.py:557: if set_permissions: I'm concerned about the performance of doing ...
5 years, 3 months ago (2015-09-03 15:20:49 UTC) #3
jbudorick
https://codereview.chromium.org/1316803004/diff/80001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/80001/build/android/devil/android/device_utils.py#newcode557 build/android/devil/android/device_utils.py:557: if set_permissions: On 2015/09/03 at 15:20:49, jbudorick wrote: > ...
5 years, 3 months ago (2015-09-03 15:24:52 UTC) #4
rnephew (Reviews Here)
https://codereview.chromium.org/1316803004/diff/80001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/80001/build/android/devil/android/device_utils.py#newcode557 build/android/devil/android/device_utils.py:557: if set_permissions: On 2015/09/03 15:24:52, jbudorick wrote: > On ...
5 years, 3 months ago (2015-09-03 17:37:33 UTC) #5
jbudorick
https://codereview.chromium.org/1316803004/diff/100001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/100001/build/android/devil/android/device_utils.py#newcode1935 build/android/devil/android/device_utils.py:1935: with device_temp_file.DeviceTempFile(self.adb, suffix='.sh') as script: You should just be ...
5 years, 3 months ago (2015-09-03 17:39:00 UTC) #6
rnephew (Reviews Here)
https://codereview.chromium.org/1316803004/diff/100001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/100001/build/android/devil/android/device_utils.py#newcode1935 build/android/devil/android/device_utils.py:1935: with device_temp_file.DeviceTempFile(self.adb, suffix='.sh') as script: On 2015/09/03 17:39:00, jbudorick ...
5 years, 3 months ago (2015-09-03 19:48:12 UTC) #7
jbudorick
https://codereview.chromium.org/1316803004/diff/140001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/140001/build/android/devil/android/device_utils.py#newcode69 build/android/devil/android/device_utils.py:69: 'com.google.android.apps.chrome.permission.C2D_MESSAGE', sort these alphabetically. https://codereview.chromium.org/1316803004/diff/140001/build/android/devil/android/device_utils.py#newcode1953 build/android/devil/android/device_utils.py:1953: # Permissions only ...
5 years, 3 months ago (2015-09-03 20:55:45 UTC) #8
rnephew (Reviews Here)
https://codereview.chromium.org/1316803004/diff/140001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/140001/build/android/devil/android/device_utils.py#newcode69 build/android/devil/android/device_utils.py:69: 'com.google.android.apps.chrome.permission.C2D_MESSAGE', On 2015/09/03 20:55:45, jbudorick wrote: > sort these ...
5 years, 3 months ago (2015-09-03 21:05:09 UTC) #9
jbudorick
https://codereview.chromium.org/1316803004/diff/160001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/160001/build/android/devil/android/device_utils.py#newcode1970 build/android/devil/android/device_utils.py:1970: logging.info('Possible problem when granting permissions. Blacklist may' This should ...
5 years, 3 months ago (2015-09-03 21:36:24 UTC) #10
rnephew (Reviews Here)
https://codereview.chromium.org/1316803004/diff/160001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/160001/build/android/devil/android/device_utils.py#newcode1970 build/android/devil/android/device_utils.py:1970: logging.info('Possible problem when granting permissions. Blacklist may' On 2015/09/03 ...
5 years, 3 months ago (2015-09-03 21:52:19 UTC) #11
perezju
looks good, just a comment and a small nit https://codereview.chromium.org/1316803004/diff/180001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/180001/build/android/devil/android/device_utils.py#newcode524 build/android/devil/android/device_utils.py:524: ...
5 years, 3 months ago (2015-09-04 09:11:21 UTC) #12
rnephew (Reviews Here)
https://codereview.chromium.org/1316803004/diff/180001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/180001/build/android/devil/android/device_utils.py#newcode524 build/android/devil/android/device_utils.py:524: def Install(self, apk_path, permissions=None, reinstall=False, timeout=None, On 2015/09/04 09:11:21, ...
5 years, 3 months ago (2015-09-04 15:08:15 UTC) #13
jbudorick
https://codereview.chromium.org/1316803004/diff/200001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/200001/build/android/devil/android/device_utils.py#newcode568 build/android/devil/android/device_utils.py:568: permissions = helper.GetPermissions() nit: just permissions = apk_helper.ApkHelper(apk_path).GetPermissions() https://codereview.chromium.org/1316803004/diff/200001/build/android/devil/android/device_utils.py#newcode1954 ...
5 years, 3 months ago (2015-09-08 18:30:48 UTC) #14
rnephew (Reviews Here)
https://codereview.chromium.org/1316803004/diff/200001/build/android/devil/android/device_utils.py File build/android/devil/android/device_utils.py (right): https://codereview.chromium.org/1316803004/diff/200001/build/android/devil/android/device_utils.py#newcode568 build/android/devil/android/device_utils.py:568: permissions = helper.GetPermissions() On 2015/09/08 18:30:48, jbudorick wrote: > ...
5 years, 3 months ago (2015-09-08 19:36:01 UTC) #15
jbudorick
lgtm
5 years, 3 months ago (2015-09-08 19:39:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316803004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316803004/220001
5 years, 3 months ago (2015-09-08 19:40:00 UTC) #18
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 3 months ago (2015-09-08 21:03:11 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 21:03:48 UTC) #20
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/de468d72d9eeeb86b439e6a7c877de0ebb349fca
Cr-Commit-Position: refs/heads/master@{#347787}

Powered by Google App Engine
This is Rietveld 408576698