Bug 1340175 - Remove WRITE_CONTACTS permission from Android mozrunner. r=sebastian, a=test-only
authorGeoff Brown <gbrown@mozilla.com>
Thu, 16 Feb 2017 15:31:22 -0700
changeset 359314 f68de4ebb25a
parent 359313 391c8637750f
child 359315 416f0ca5dda1
push id10762
push userryanvm@gmail.com
push dateSat, 18 Feb 2017 16:09:21 +0000
treeherdermozilla-aurora@2d8d146df0cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian, test-only
bugs1340175
milestone53.0a2
Bug 1340175 - Remove WRITE_CONTACTS permission from Android mozrunner. r=sebastian, a=test-only
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