Skip to content
Snippets Groups Projects
Commit 90a9ecb1 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 0317003d: am 0b8c20e7: Allow apps to use the USB Accessory functionality

* commit '0317003d':
  Allow apps to use the USB Accessory functionality
parents a77a2f70 0317003d
No related branches found
No related tags found
No related merge requests found
...@@ -115,6 +115,14 @@ allow appdomain self:netlink_route_socket { ...@@ -115,6 +115,14 @@ allow appdomain self:netlink_route_socket {
# /system/bin/ping, for example. # /system/bin/ping, for example.
allow appdomain self:rawip_socket create_socket_perms; allow appdomain self:rawip_socket create_socket_perms;
# Allow apps to use the USB Accessory interface.
# http://developer.android.com/guide/topics/connectivity/usb/accessory.html
#
# USB devices are first opened by the system server (USBDeviceManagerService)
# and the file descriptor is passed to the right Activity via binder.
allow appdomain usb_device:chr_file { read write getattr ioctl };
allow appdomain usbaccessory_device:chr_file { read write getattr };
### ###
### Neverallow rules ### Neverallow rules
### ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment