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

Unified Diff: build/android/provision_devices.py

Issue 1960363002: Change provision_devices.py to disable verity for remove webview on M (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/provision_devices.py
diff --git a/build/android/provision_devices.py b/build/android/provision_devices.py
index 8c21f97ef200987db3d3432e4f26da2b67004d19..71575b5eec5d745d727febfc0cfb2d4ce56bb45e 100755
--- a/build/android/provision_devices.py
+++ b/build/android/provision_devices.py
@@ -296,6 +296,12 @@ def SetProperties(device, options):
if options.remove_system_webview:
if device.HasRoot():
+ # Disabled Marshmallow's Verity security feature
+ if device.build_version_sdk >= version_codes.MARSHMALLOW:
+ device.adb.DisableVerity()
+ device.Reboot()
jbudorick 2016/05/09 21:07:33 I'm not crazy about introducing yet another reboot
Yoland Yan(Google) 2016/05/09 22:49:36 hmm, I don't think there is a good place to includ
+ device.adb.WaitForDevice()
jbudorick 2016/05/09 21:07:33 If we keep this, this should change to device.Wait
Yoland Yan(Google) 2016/05/09 22:49:36 Done.
+ device.EnableRoot()
# This is required, e.g., to replace the system webview on a device.
device.adb.Remount()
device.RunShellCommand(['stop'], check_return=True)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698