Closed Bug 842668 Opened 12 years ago Closed 12 years ago

Should always use dd instead of cp in devicemanagerADB

Categories

(Testing :: Mozbase, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla22

People

(Reporter: wlach, Assigned: wlach)

References

Details

Attachments

(2 files)

It was brought up in bug 841969 (https://bugzilla.mozilla.org/show_bug.cgi?id=841969#c3) that supporting both "dd" and "cp" for copying around files on Android is a bit silly -- dd does everything we need and is available on all platforms. We should just use that instead all the time.
On investigation, it looks like all this "dd" stuff has to do with our run-as support in dmADB, which I was never sure was a good idea. But we can cross that bridge later, for now this seems like a nice simplification to me.
Assignee: nobody → wlachance
Attachment #715712 - Flags: review?(gbrown)
Some code in m-c relies on the _useDDCopy variable. We should fix that in this bug too: http://mxr.mozilla.org/mozilla-central/search?string=useDDCopy (we don't need for the mozdevice changes to land before doing that -- since all b2g devices have dd available)
(In reply to William Lachance (:wlach) from comment #3) > Created attachment 716072 [details] [diff] [review] > Patch to always use dd copy from b2g unit/ref tests Did a try run to go along with this one: https://tbpl.mozilla.org/?tree=Try&rev=dcb49022a43f
Comment on attachment 716072 [details] [diff] [review] Patch to always use dd copy from b2g unit/ref tests Review of attachment 716072 [details] [diff] [review]: ----------------------------------------------------------------- lgtm!
Attachment #716072 - Flags: review?(ahalberstadt) → review+
Attachment #715712 - Flags: review?(gbrown) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: