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

Unified Diff: build/android/pylib/gtest/local_device_gtest_run.py

Issue 1316803004: [Android] Set permission when installing apks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/gtest/gtest_test_instance.py ('k') | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/gtest/local_device_gtest_run.py
diff --git a/build/android/pylib/gtest/local_device_gtest_run.py b/build/android/pylib/gtest/local_device_gtest_run.py
index e7f6a121b47215d0967b816dee0ee1d2c38d1307..d3085f3596a3f7a6e279949446aace376d19b590 100644
--- a/build/android/pylib/gtest/local_device_gtest_run.py
+++ b/build/android/pylib/gtest/local_device_gtest_run.py
@@ -56,12 +56,13 @@ class _ApkDelegate(object):
self._apk = test_instance.apk
self._package = test_instance.package
self._runner = test_instance.runner
+ self._permissions = test_instance.permissions
self._component = '%s/%s' % (self._package, self._runner)
self._extras = test_instance.extras
def Install(self, device):
- device.Install(self._apk)
+ device.Install(self._apk, permissions=self._permissions)
def Run(self, test, device, flags=None, **kwargs):
extras = dict(self._extras)
« no previous file with comments | « build/android/pylib/gtest/gtest_test_instance.py ('k') | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698