summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpProperty.h
Commit message (Collapse)AuthorAgeFilesLines
* MTP: add strict bounds checking for all incoming packetsMike Lockwood2014-11-121-7/+7
| | | | | | | | | | | Previously we did not sanity check incoming MTP packets, which could result in crashes due to reading off the edge of a packet. Now all MTP packet getter functions return a boolean result (true for OK, false for reading off the edge of the packet) and we now return errors for malformed packets. Bug: 18113092 Change-Id: Ic7623ee96f00652bdfb4f66acb16a93db5a1c105
* MTP: Improve MtpProperty logging supportMike Lockwood2010-12-071-0/+1
| | | | | Change-Id: I46800b99763edcc5e994d912941f9f5e9b1c94d2 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Use DateTime form in GetObjectPropDesc for date/time properties.Mike Lockwood2010-11-231-0/+2
| | | | | Change-Id: I5a3c0b07a9f2958b86947256606e6a824dbe93a6 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add support for range and enum forms in MTP ObjectPropDescsMike Lockwood2010-11-101-0/+3
| | | | | Change-Id: I70809401e37a1cfb82f5dbf86947be7d9500ccf1 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Include current property value in GetDevicePropDescMike Lockwood2010-09-251-0/+20
| | | | | Change-Id: I05125c79ad58b6f75734fcedcc8af9b689fa9ff3 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Implement support for getting/setting device propertiesMike Lockwood2010-09-021-2/+8
| | | | | | | | Added support for the "device friendly name" and "synchonization partner" properties, which are required by Microsoft. Change-Id: Ic0443333d75f7d98a2d902a790b9d505a56d4eef Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Fix reading and writing property descriptorsMike Lockwood2010-08-091-0/+2
| | | | | | | We were missing support for the group code, resulting in an off by 4 bytes problem. Change-Id: I4a640c67b8d36e1bd658b6185178a71966d4b0b6 Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: Implement GetObjectPropDescMike Lockwood2010-06-301-1/+10
| | | | | Change-Id: I283651257254fc9cd9d93eab4605c5e33d3db93e Signed-off-by: Mike Lockwood <lockwood@android.com>
* MTP: host support for retrieving device property descriptorsMike Lockwood2010-06-071-0/+71
Signed-off-by: Mike Lockwood <lockwood@android.com>