11 Commits

Author SHA1 Message Date
Daichi Hirono
01e236b984 Update an icon for MtpDocumentsProvider.
BUG=27135431

Change-Id: Ic8619a533bdf2426fdf0d3691a883606fa027fb1
2016-03-23 11:07:29 +09:00
Daichi Hirono
fda7474c5f Open MTP device on demand.
Previously MtpDocumentsProvider opens a device just after device is
connected to Android. But MtpDocumentsProvider should open MTP device on
demand so that other applications can open device if user starts to use
the application before using MtpDocumentsProvider.

BUG=26625708

Change-Id: I6083b8c7cef49ee6e9fb0d15ca4adc129734f3eb
2016-02-04 12:45:58 +09:00
Daichi Hirono
163e4b6ae8 Add launch notification for MTP devices.
The CL adds launch notification that are shown after MTP/PTP device is
connected to Android device. By tapping the notification, Users can
launch an applicaiton that can handle USB_DEVICE_ATTACHED intent of MTP
device.

BUG=26611224

Change-Id: I6fd179ccd436531dfff6ff9a50dc2b754c20f190
2016-02-01 13:28:01 +09:00
Daichi Hirono
dc89e079ce Merge "Grant USB device permission by using system permission." 2015-12-09 04:04:47 +00:00
Daichi Hirono
b863990a01 Enable MtpDocumentsProvider by default.
BUG=20274999

Change-Id: I35941df66fea4ab703f8f1de3c69b6f4dd2be9a0
2015-12-09 11:18:32 +09:00
Daichi Hirono
4751880a4d Grant USB device permission by using system permission.
Previously it skips the device permission check by referring package
name. The CL removes the special case and use general MANAGE_USB
system-only permission to skip USB device permission dialog.

BUG=26048722

Change-Id: I3702393a50696209499d1e5f6549dab9fb2cefe4
2015-12-09 11:15:25 +09:00
Daichi Hirono
a57d9ed090 Turn MtpDocumentsService foreground when devices are opend.
BUG=26047393

Change-Id: I70f69c5ddec500ed61d1a76fb9e2e296813b2a4e
2015-12-08 17:27:04 +09:00
Daichi Hirono
df3f2e6fdd Add ReceiverActivity to MtpDocumentsProvider.
To show the application chooser for the UsbManager.ACTION_USB_DEVICE_ATTACHED
intent, the intent should be received by activity. The activity has NoDisplay
theme and immediately terminate after routing intent to MtpDocumentsService.

BUG=20274999

Change-Id: I2080ea433b1657dd68640681664adbf92d1d30e9
2015-07-28 13:06:17 +09:00
Daichi Hirono
2efe4cac49 Add MtpDocumentsService.
BUG=20274999

Change-Id: I1d60ebcf100767136ac7f78e619021776c6be02f
2015-07-28 12:49:11 +09:00
Daichi Hirono
9a05d6b87a Add test package for MTPDocumentsProvider.
BUG=20274999

Change-Id: I179692d3b14392a0634d4c0ace21a9d96a2d0d6a
2015-07-09 15:39:22 +09:00
Daichi Hirono
c00d5d4d82 Create package directory for MtpDocumentProvider.
BUG=20274999

Change-Id: I7e0727e28b8e0ef2909d86f7ba6eddc2bec8911d
2015-06-11 17:35:14 +09:00