Expose `mach adb` even if you don't have an android mozconfig set.
Categories
(Firefox Build System :: Mach Core, enhancement)
Tracking
(Not tracked)
People
(Reporter: mgaudet, Unassigned)
References
Details
mach adb
is nice, but it turns out that if you have a non-android build set it doesn't work. Which seems surprising to me; would be nice if it worked without that.
Comment 1•9 days ago
|
||
What behavior/error are you seeing?
This just worked for me on current central.
My steps:
- Bootstrap Android
- Ran configure
./mach adb
worked, as expected.- Re-ran bootstrap, selected Firefox for Desktop
- Ran configure
./mach adb
still worked, as desired.
ahochheiden@FCVYYF256K mozilla-unified % ./mach adb
0:00.24 /Users/ahochheiden/.mozbuild/android-sdk-macosx/platform-tools/adb
Android Debug Bridge version 1.0.41
Version 36.0.0-13206524
Installed as /Users/ahochheiden/.mozbuild/android-sdk-macosx/platform-tools/adb
Running on Darwin 23.6.0 (arm64)
I don't know how to use adb
, but mach
definitely still found it for me.
The code that ./mach adb
executes also looks robust enough to find it as long as it's in a default/expected location, maybe that's the difference here?
Comment 2•9 days ago
|
||
I was also confused since I was sure I used to have more trouble in the past. It turns out Matt indirectly fixed this in Bug 1946524, as part of Teach android_device.py about non-linux adb paths
. In a non-android build the subts
path isn't available and we would fall back to checking Android SDK, but that used to fail on Windows / Mac (which is where Matt and I would have each seen this).
Reporter | ||
Comment 3•9 days ago
|
||
Yeah, WFM too now.
Description
•