Merge cherrypicks of ['googleplex-android-review.googlesource.com/21219300'] into tm-qpr2-release.

Change-Id: Iba513e117f9749ea342aa573120c758f4a14ba68
diff --git a/whitechapel/vendor/google/hal_usb_gadget_impl.te b/whitechapel/vendor/google/hal_usb_gadget_impl.te
index 7eb0f63..31216c9 100644
--- a/whitechapel/vendor/google/hal_usb_gadget_impl.te
+++ b/whitechapel/vendor/google/hal_usb_gadget_impl.te
@@ -19,3 +19,6 @@
 # change irq to other cores
 allow hal_usb_gadget_impl proc_irq:dir r_dir_perms;
 allow hal_usb_gadget_impl proc_irq:file w_file_perms;
+
+# allow gadget hal to access extcon node
+allow hal_usb_gadget_impl sysfs_extcon:file r_file_perms;