Bug 1340175 - Remove WRITE_CONTACTS permission from Android mozrunner; r=sebastian
authorGeoff Brown <gbrown@mozilla.com>
Thu, 16 Feb 2017 15:31:22 -0700
changeset 343330 84757ceb6dec
parent 343329 0cd8df20768f
child 343331 82f925709dd1
push id87104
push usergbrown@mozilla.com
push dateThu, 16 Feb 2017 22:31:36 +0000
treeherdermozilla-inbound@82f925709dd1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian
bugs1340175
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1340175 - Remove WRITE_CONTACTS permission from Android mozrunner; r=sebastian
testing/mozbase/mozrunner/mozrunner/devices/android_device.py
--- a/testing/mozbase/mozrunner/mozrunner/devices/android_device.py
+++ b/testing/mozbase/mozrunner/mozrunner/devices/android_device.py
@@ -281,17 +281,16 @@ def grant_runtime_permissions(build_obj)
     try:
         sdk_level = dm.shellCheckOutput(['getprop', 'ro.build.version.sdk'])
         if sdk_level and int(sdk_level) >= 23:
             _log_info("Granting important runtime permissions to %s" % app)
             dm.shellCheckOutput(['pm', 'grant', app, 'android.permission.WRITE_EXTERNAL_STORAGE'])
             dm.shellCheckOutput(['pm', 'grant', app, 'android.permission.READ_EXTERNAL_STORAGE'])
             dm.shellCheckOutput(['pm', 'grant', app, 'android.permission.ACCESS_FINE_LOCATION'])
             dm.shellCheckOutput(['pm', 'grant', app, 'android.permission.CAMERA'])
-            dm.shellCheckOutput(['pm', 'grant', app, 'android.permission.WRITE_CONTACTS'])
     except DMError:
         _log_warning("Unable to grant runtime permissions to %s" % app)
 
 
 class AndroidEmulator(object):
 
     """
         Support running the Android emulator with an AVD from Mozilla