Loading
Bind to MTP service on USB state change
Currently MTP service is started by MtpReceiver based on USB state change broadcasts. But in some cases activity manager freezes the process resulting in MTP not working. To resolve this we will be binding to MtpService from UsbService on USB function changes. Test: Manually verified that MTP and PTP works. Also verified that the process android.process.media is not being frozen Bug: 332256525 Flag: com.android.server.usb.flags.enable_bind_to_mtp_service Change-Id: I886de2d9527651eaa46e9893e62b08a4b377ba0f