Closed Bug 1060235 Opened 10 years ago Closed 10 years ago

AdbController should recognize mtp as "usb in use"

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S5 (26sep)

People

(Reporter: dhylands, Assigned: dhylands)

Details

Attachments

(1 file)

Currently, AdbController (b2g/chrome/content/devtools/adb.js) detectes when USB Mass Storage or RNDIS are active and defers turning off adb until the usb service is no longer active.

It should also detect MTP as another reason to defer disabling adb.
Assignee: nobody → dhylands
Target Milestone: --- → 2.1 S5 (26sep)
Comment on attachment 8494802 [details] [diff] [review]
AdbController will now recognize MTP as "usb in use"

Review of attachment 8494802 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/system/gonk/MozMtpCommon.h
@@ +9,5 @@
>  
>  #include "mozilla/Types.h"
>  #include <android/log.h>
>  
> +#define USE_DEBUG 1

nit: revert this change before landing
Attachment #8494802 - Flags: review?(fabrice) → review+
https://hg.mozilla.org/mozilla-central/rev/11932755e492
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: