Merge changes I00d6980a,I814221b4,Id88603a5
* changes: CameraBrowser: Launch itself when a camera is attached to USB. Send Intents when PTP compatible devices are connected/disconnected to USB Give system server permission to access USB.
This commit is contained in:
committed by
Android (Google) Code Review
commit
03a545e5ed
@@ -55,6 +55,24 @@ public class Usb {
|
||||
public static final String ACTION_USB_STATE =
|
||||
"android.hardware.action.USB_STATE";
|
||||
|
||||
/**
|
||||
* Broadcast Action: A broadcast for USB camera attached event.
|
||||
*
|
||||
* This intent is sent when a USB device supporting PTP is attached to the host USB bus.
|
||||
* The intent's data contains a Uri for the device in the MTP provider.
|
||||
*/
|
||||
public static final String ACTION_USB_CAMERA_ATTACHED =
|
||||
"android.hardware.action.USB_CAMERA_ATTACHED";
|
||||
|
||||
/**
|
||||
* Broadcast Action: A broadcast for USB camera detached event.
|
||||
*
|
||||
* This intent is sent when a USB device supporting PTP is detached from the host USB bus.
|
||||
* The intent's data contains a Uri for the device in the MTP provider.
|
||||
*/
|
||||
public static final String ACTION_USB_CAMERA_DETACHED =
|
||||
"android.hardware.action.USB_CAMERA_DETACHED";
|
||||
|
||||
/**
|
||||
* Boolean extra indicating whether USB is connected or disconnected.
|
||||
* Used in extras for the {@link #ACTION_USB_STATE} broadcast.
|
||||
|
||||
@@ -523,7 +523,7 @@ public class ZygoteInit {
|
||||
String args[] = {
|
||||
"--setuid=1000",
|
||||
"--setgid=1000",
|
||||
"--setgroups=1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,3001,3002,3003",
|
||||
"--setgroups=1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1018,3001,3002,3003",
|
||||
"--capabilities=130104352,130104352",
|
||||
"--runtime-init",
|
||||
"--nice-name=system_server",
|
||||
|
||||
Reference in New Issue
Block a user