diff options
author | Badhri Jagan Sridharan <Badhri@google.com> | 2017-01-24 12:44:40 -0800 |
---|---|---|
committer | Badhri Jagan Sridharan <Badhri@google.com> | 2017-01-24 12:45:40 -0800 |
commit | 8cebfc2a4fd3d1dc69164dbc0dd4d44195109908 (patch) | |
tree | 6bbeb9994f4076c53bcce8a178a733d8d7717e8a /init.bullhead.usb.rc | |
parent | 1d239e05355e4f863e8722daff9ddd30ee4499a9 (diff) | |
download | bullhead-8cebfc2a4fd3d1dc69164dbc0dd4d44195109908.tar.gz |
bullhead: change type-c node ownership/permissions
With UsbHAL, init is no longer used to enable role switching.
Change permission and ownership of the type-c node to
system_server.
This change was initially part of the default hal implementation.
But, not all the devices support PD commands. So, moving this to
device specific usb init files.
BUG: 31015010
Test: Manually tested on bullhead for type-c role switches.
Change-Id: Ia063e2a8546dc6c570a5f867cf7715c184aa6f59
Diffstat (limited to 'init.bullhead.usb.rc')
-rw-r--r-- | init.bullhead.usb.rc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/init.bullhead.usb.rc b/init.bullhead.usb.rc index 2c69c65..dafd5aa 100644 --- a/init.bullhead.usb.rc +++ b/init.bullhead.usb.rc @@ -22,6 +22,9 @@ on boot write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} write /sys/class/android_usb/android0/iProduct ${ro.product.model} + chown root system /sys/class/dual_role_usb/otg_default/mode + chmod 664 /sys/class/dual_role_usb/otg_default/mode + on post-fs mkdir /dev/usb-ffs 0775 shell shell mkdir /dev/usb-ffs/adb 0770 shell shell |