Closed Bug 1231683 Opened 9 years ago Closed 9 years ago

Android mach commands do not offer to start an emulator if a device is connected but not usable

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

$ adb devices
016e01dbcd98f851  no permissions
$ ./mach install
 0:00.22 /usr/bin/make -C . -j8 -s -w install
 0:00.30 make: Entering directory `/home/gbrown/objdirs/droid'
 0:00.30 No devices are connected.  Connect a device or start an emulator.
 0:00.30 make: *** [install] Error 1
 0:00.30 make: Leaving directory `/home/gbrown/objdirs/droid'


This may be okay, but I wonder if it could be more awesome. Improvements here might also help handle other device oddities better.
This feels more awesome:

$ adb devices
016e01dbcd98f851  no permissions
$ ./mach install
No Android devices connected. Start an emulator? (Y/n) y
Starting emulator running Android 4.3...
 2:16.70 /usr/bin/make -C . -j8 -s -w install
 2:16.80 make: Entering directory `/home/gbrown/objdirs/droid'
 2:27.35 3981 KB/s (42677208 bytes in 10.468s)
 2:28.12 	pkg: /data/local/tmp/fennec-45.0a1.en-US.android-arm.apk
 2:41.48 Success
 2:41.86 make: Leaving directory `/home/gbrown/objdirs/droid'
Attachment #8698038 - Flags: review?(jmaher)
Comment on attachment 8698038 [details] [diff] [review]
disregard devices not recognized by 'adb devices'

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

cool!
Attachment #8698038 - Flags: review?(jmaher) → review+
https://hg.mozilla.org/mozilla-central/rev/cd4bfd5bd43e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: