summaryrefslogtreecommitdiffstats
path: root/services/usb
Commit message (Collapse)AuthorAgeFilesLines
...
* MidiManager bug fixing:Mike Lockwood2015-01-151-2/+7
| | | | | | | | | | - fix off by one error that caused failure handling one byte messages - poll thread now terminates properly in UsbMidiDevice - fix cleanup logic in MidiDeviceServer Change-Id: I0c13a98b6542cfb271b51678e81d1822c8da2985
* MidiManager updates:Mike Lockwood2015-01-143-43/+235
| | | | | | | | | | | | | | | | | MIDI ports are now implemented as file descriptors directly between the sender and receiver, so the MidiService is no longer in the message path. To facilitate the above, each port has its own file descriptor, rather than multiplexing all ports on a device through a single socket. Added a new class MidiDeviceServer, which is used by implementors of MIDI devices. This replaces the MidiVirtualDevice class (which only was included in changes that were reviewed but never submitted). The USB MIDI implementation has moved from the MIDI service to the USB service. The USB MIDI implementation uses MidiDeviceServer as its interface, so we now have a common interface for all MIDI device implementations. Change-Id: I8effd1583f344beb6c940c3a24dbf20b477a6436
* Support for simultaneous USB Audio Devices connect/disconnectPaul McLean2015-01-092-81/+229
| | | | | | | | | | | | | | Attach/Detach logic Decoupling card# and list index Modern loop constructs Consistent logging flags Add class/type flags to device "address" string. Factored UsbAudioDevice out of UsbAudioManager. Bug: 18399845 Bug: 18717784 Change-Id: I6f185e1c24091d4c0d21eb7e922a1496748d32c3
* Rename UsbAudioManager to UsbAlsaManagerMike Lockwood2014-12-192-10/+10
| | | | Change-Id: I53b084400ef3e0692415cc5af91c8b500ffd8346
* am 32ed193b: am f5e44c29: am c5c93edd: Merge "When switching to default USB ↵Zoltan Szatmary-Ban2014-12-091-7/+20
|\ | | | | | | | | | | | | function set, check restriction" into lmp-mr1-dev * commit '32ed193bb5396451401e62493f83664da9228729': When switching to default USB function set, check restriction
| * When switching to default USB function set, check restrictionZoltan Szatmary-Ban2014-12-051-7/+20
| | | | | | | | | | | | | | | | The user restriction DISALLOW_USB_FILE_TRANSFER has to be respected when switching USB function set. Bug: 18532487 Change-Id: I16fda6358027a659e3bfa0c5f3bf6b3918d0bced
* | MIDI Manager work in progressMike Lockwood2014-12-081-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | Still to do: Add MidiInputPort and MidiOutputPort classes Schedule sending MIDI events in the future Security/permissions Reconsider interface for virtual devices Look into performance optimizations Change-Id: I9b7d63b196996a04be0a830efa913043da1328a8
* | Remove polling for ALSA device files in USB audio device detection.Mike Lockwood2014-12-012-22/+150
|/ | | | Change-Id: I993fe41707fc02c9449800c7325aaf7270fb892e
* Setting ADB_ENABLED may result in a SecurityException.Geoffrey Borggaard2014-11-201-2/+7
| | | | | | | | | | If the restriction UserManager.DISALLOW_DEBUGGING_FEATURES is enforced, then any attempt to set ADB_ENABLED will result in a SecurityException. This can result in the device not being able to boot. Bug: 18433477 Change-Id: I21e4b406ad0fa89b7d4b678eac1baf212a3c7acd (cherry picked from commit ba45b96a378623e3392da65e81e67dabdf4f0678)
* fix crash on invalid base64 keyNick Kralevich2014-11-121-4/+18
| | | | | | | | | | | | | | | | | | | | An invalid adb public key can cause a system server crash. AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.fg AndroidRuntime: java.lang.IllegalArgumentException: bad base-64 AndroidRuntime: at android.util.Base64.decode(Base64.java:161) AndroidRuntime: at android.util.Base64.decode(Base64.java:136) AndroidRuntime: at com.android.server.usb.UsbDebuggingManager.getFingerprints(UsbDebuggingManager.java:235) AndroidRuntime: at com.android.server.usb.UsbDebuggingManager.access$500(UsbDebuggingManager.java:49) AndroidRuntime: at com.android.server.usb.UsbDebuggingManager$UsbDebuggingHandler.handleMessage(UsbDebuggingManager.java:210) AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) AndroidRuntime: at android.os.Looper.loop(Looper.java:135) AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61) AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:46) Process : Sending signal. PID: 824 SIG: 9 Bug: 17389885 Change-Id: Id20d7c0ee35229b14c800fd9e07716239179989c
* Fix USB audio disconnect logicMike Lockwood2014-10-312-136/+206
| | | | | | | | | | Previously, disconnecting any USB device would terminate USB audio playback. Also moved USB audio support to a separate class and did some prep work for multiple USB audio device support. Bug: 18203024 Change-Id: I49822c2c47428e658c853b2ec83c7313e626a1cb
* Move *_AUDIO_PLUG actions from Intent to android.media.AudioManagerJean-Michel Trivi2014-08-292-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | For ACTION_HEADSET_PLUG (already in SDK): - duplicated definition in AudioManager and moved javadoc there. Javadoc in Intent points to AudioManager. - the String value is not changed For ACTION_HDMI_AUDIO_PLUG (being added in SDK): - moved defintion from Intent to AudioManager - updated String value to reflect package name "android.media" instead of using "android.intent" - added definition of the extras, but removed "name". For ACTION_ANALOG_AUDIO_DOCK_PLUG, ACTION_DIGITAL_AUDIO_DOCK_PLUG, ACTION_USB_AUDIO_ACCESSORY_PLUG, ACTION_USB_AUDIO_DEVICE_PLUG, all hidden: - moved definition from Intent to AudioManager, - changed the value from "android.intent.*" to "android.media.*" Updated AudioService, UsbDeviceManager and UsbHostManager to refer to the actions in AudioManager, not Intent. Bug 17289385 Change-Id: I61dd73140022d2bb9a676a57f595092c8fa89dcc
* Added notification color to all system notificationsSelim Cinek2014-08-201-0/+4
| | | | | Bug: 17128331 Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
* Fix ALSA initialized wait for input-only USB Audio devicesPaul McLean2014-08-141-4/+12
| | | | | | Bug 17012266 Change-Id: I09427bb924f895bf66af9ef7ad4f0882746d03c4
* Restore user switching logic.Emily Bernier2014-07-141-2/+2
| | | | Change-Id: I859145efc8e7f426ca7f7ad915b082b7e8a2c516
* Prevent users from mounting USB, if restricted.Emily Bernier2014-07-092-1/+22
| | | | | | Bug: 13585295 Change-Id: I6b7905fad06bf2e1d4dd629a266280ddff9b3121
* UsbDebuggingManager: remove log spam when disconnecting USBMike Lockwood2014-06-051-4/+0
| | | | | Bug: 15112047 Change-Id: Ia07895ee166fa87c88d0443f0745bc9384dac10c
* Changed namespace of AlsaParser (and components) to correctly reflect their ↵Paul McLean2014-05-151-2/+2
| | | | | | | | place in the directory hierarchy. Change-Id: I33a5a34a31d5811cfb5167843dc185ba94d236fd
* Bump up priority of system receiving BOOT_COMPLETED.Dianne Hackborn2014-05-021-2/+3
| | | | Change-Id: I5166f88f11f781914312e867cb653c8ecbefa705
* am ee5d512d: am 4980996b: Merge "Allowed custom secure-adb confirmation via ↵Aaron Whyte2014-04-161-13/+53
|\ | | | | | | | | | | | | Activity or Service. It used to only be available via an Activity." into klp-modular-dev * commit 'ee5d512d624c15fa0c7e179ace24c7055a9f539d': Allowed custom secure-adb confirmation via Activity or Service. It used to only be available via an Activity.
| * am 4980996b: Merge "Allowed custom secure-adb confirmation via Activity or ↵Aaron Whyte2014-04-161-13/+53
| |\ | | | | | | | | | | | | | | | | | | Service. It used to only be available via an Activity." into klp-modular-dev * commit '4980996bcc4e8065cf5dff1cf989d73face38281': Allowed custom secure-adb confirmation via Activity or Service. It used to only be available via an Activity.
| | * Allowed custom secure-adb confirmation via Activity or Service.Aaron Whyte2014-04-161-13/+53
| | | | | | | | | | | | | | | | | | It used to only be available via an Activity. Change-Id: Id79a99a70e721f3b567e75d45ffeba779264ec1e
* | | Merge "Implement USB Audio across Nexus Devices Fix issues with connecting ↵Paul McLean2014-04-111-69/+128
|\ \ \ | | | | | | | | | | | | non-audio USB devices."
| * | | Implement USB Audio across Nexus DevicesPaul McLean2014-04-111-69/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issues with connecting non-audio USB devices. https://b.corp.google.com/issue?id=13745966 https://b.corp.google.com/issue?id=8281454 https://b.corp.google.com/issue?id=13751080 https://b.corp.google.com/issue?id=4643412 Change-Id: I1186f69a6c5f50279a1225a77fb5d4f7a8eda3cb
* | | | Merge "Revert "Revert "Initial implementation of USB Audio output."""Paul McLean2014-04-111-1/+93
|\ \ \ \ | |/ / /
| * | | Revert "Revert "Initial implementation of USB Audio output.""Paul McLean2014-04-091-1/+93
| | | | | | | | | | | | | | | | This reverts commit f2f80c09b668176b3b1e619457ae628432636507.
* | | | am 5b7dccc4: am 90e2301e: am d2a11d97: Merge "Add explicit close of Scanner ↵Elliott Hughes2014-04-111-1/+6
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | input" * commit '5b7dccc4f9cc1d07650cd7d1f499c3c11ba3ede2': Add explicit close of Scanner input
| * | am 90e2301e: am d2a11d97: Merge "Add explicit close of Scanner input"Elliott Hughes2014-04-111-1/+6
| |/ | | | | | | | | * commit '90e2301e23532c92dd4c24394b7407e243389e9f': Add explicit close of Scanner input
* | Revert "Initial implementation of USB Audio output."Eric Laurent2014-04-071-93/+1
| | | | | | | | | | | | | | This reverts commit 3af0fe0c9df2fc1e0a4d6bcd827a4d7aa28dbdeb while investigating issues 13751080 and 13883978. Bug: 13751080.
* | Merge "Initial implementation of USB Audio output."Paul McLean2014-04-011-1/+93
|\ \
| * | Initial implementation of USB Audio output.Paul McLean2014-03-311-1/+93
| | | | | | | | | | | | Change-Id: I7fbbe421285d628fa49591c6469ac50efec77ccf
* | | am 23fd13de: am f10d0399: Made secure-adb\'s new-public-key activity ↵Aaron Whyte2014-03-281-8/+13
|\ \ \ | |/ / |/| / | |/ | | | | | | configurable. Some devices do not have lockscreens themselves, so the plan is to have them do RPCs to companion devices that can have lockscreens, for allowing or rejecting unwhitelisted adb public k * commit '23fd13de62762e98c32f2b7525f01f0bcdf416fd': Made secure-adb's new-public-key activity configurable. Some devices do not have lockscreens themselves, so the plan is to have them do RPCs to companion devices that can have lockscreens, for allowing or rejecting unwhitelisted adb public keys.
| * Made secure-adb's new-public-key activity configurable.Aaron Whyte2014-03-281-8/+13
| | | | | | | | | | | | | | | | Some devices do not have lockscreens themselves, so the plan is to have them do RPCs to companion devices that can have lockscreens, for allowing or rejecting unwhitelisted adb public keys. Change-Id: I6f7504313074e6748c0bd467a29ac3a311036f4d
* | am 7a07f4d4: am a5853b17: am 1fe28b20: am 71060db6: am dffdf107: Merge ↵Mike Lockwood2014-03-211-1/+0
|\ \ | |/ | | | | | | | | | | "UsbDeviceManager: A better fix for race condition when starting USB accessory mode" into klp-dev * commit '7a07f4d4ad1f2f4893223693aece62f095ce004e': UsbDeviceManager: A better fix for race condition when starting USB accessory mode
| * am 71060db6: am dffdf107: Merge "UsbDeviceManager: A better fix for race ↵Mike Lockwood2014-03-211-1/+0
| | | | | | | | | | | | | | condition when starting USB accessory mode" into klp-dev * commit '71060db65e0e1c903b429c932cd6e27beec10a3e': UsbDeviceManager: A better fix for race condition when starting USB accessory mode
* | am e920322f: am 86119603: am aa7e396f: am 935d417b: am afc3a5d3: Merge ↵Mike Lockwood2014-03-211-25/+2
|\ \ | |/ | | | | | | | | | | "Revert "UsbDeviceManager: Fix race condition between accessory start and USB configured uevents"" into klp-dev * commit 'e920322ff0c67cdd9e9682fd7c7df5221a6fb13e': Revert "UsbDeviceManager: Fix race condition between accessory start and USB configured uevents"
| * am 935d417b: am afc3a5d3: Merge "Revert "UsbDeviceManager: Fix race ↵Mike Lockwood2014-03-211-25/+2
| | | | | | | | | | | | | | condition between accessory start and USB configured uevents"" into klp-dev * commit '935d417b5615a62bc521a8eb58c35de1b4fdf841': Revert "UsbDeviceManager: Fix race condition between accessory start and USB configured uevents"
* | am c5353ce3: am 685831bf: am f9b90434: am ff64f5ed: am 381374b3: Merge ↵Mike Lockwood2014-03-141-2/+25
|\ \ | |/ | | | | | | | | | | "UsbDeviceManager: Fix race condition between accessory start and USB configured uevents" into klp-dev * commit 'c5353ce373f02b549ed9e63aa23f94ca1a726f7e': UsbDeviceManager: Fix race condition between accessory start and USB configured uevents
| * am ff64f5ed: am 381374b3: Merge "UsbDeviceManager: Fix race condition ↵Mike Lockwood2014-03-141-2/+25
| | | | | | | | | | | | | | between accessory start and USB configured uevents" into klp-dev * commit 'ff64f5ed7c2b55878d149d546092e029cba15465': UsbDeviceManager: Fix race condition between accessory start and USB configured uevents
* | USB: Add support for disabling USB permission dialogs.Mike Lockwood2014-03-131-2/+15
| | | | | | | | | | | | | | | | | | | | | | Setting scom.android.internal.R.bool.config_disableUsbPermissionDialogs to true will disable all USB permission dialogs, allowing apps access to USB devices and accessories by default. For prototyping purposes only. This should not be used in real devices. Bug: 13437578 Change-Id: Ie7bf83882943930b15e5f1edb3044a4a52034273
* | Add support for USB devices with multiple configurations and alternate ↵Mike Lockwood2014-02-271-49/+92
| | | | | | | | | | | | | | | | | | | | | | | | interfaces Added UsbConfiguration class, as well as accessors to UsbDevice to get configuration list Added methods to UsbDeviceConnection to select configurations and alternate interfaces. Also added accessors for USB descriptor name strings and fixed some memory leaks in the JNI code. Bug: 12425052 Change-Id: Idb990f4d5c054a8cb997eb3f440f6da9f83bce05
* | am f2d07694: am 6eff9949: am 0fc59cd9: am da2bbaf2: am 2c7b913e: am ↵Mike Lockwood2014-02-251-6/+26
|\ \ | |/ | | | | | | | | | | 5daec5b5: Merge "UsbDeviceManager: Fix race condition entering USB accessory mode" into klp-dev * commit 'f2d07694d05240b039bd02cf3982941c0435c33d': UsbDeviceManager: Fix race condition entering USB accessory mode
| * am da2bbaf2: am 2c7b913e: am 5daec5b5: Merge "UsbDeviceManager: Fix race ↵Mike Lockwood2014-02-251-6/+26
| | | | | | | | | | | | | | condition entering USB accessory mode" into klp-dev * commit 'da2bbaf219117f7507c5c0015c41347a9cc27507': UsbDeviceManager: Fix race condition entering USB accessory mode
* | am 13c83996: am 1c532c2e: am 4b07b26e: Merge "Make UsbService optional" into ↵Adam Lesinski2014-02-191-6/+4
|/ | | | | | | klp-modular-dev * commit '13c839962e246517a7a95326610ea30c529d79dc': Make UsbService optional
* Make UsbService optionalAdam Lesinski2014-02-186-0/+2987
Tweaked the services Android.mk to build dependencies when building with mm[m]. Change-Id: I6dad511c652bcacc085f27ede5f8f22a6982c6bd