Closed Bug 1947348 Opened 1 month ago Closed 1 month ago

`mach run --debug --no-install --no-attach` has trouble with unrooted phones

Categories

(Testing :: Mozbase, defect)

defect

Tracking

(firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

Details

Attachments

(1 file)

./mach run --app=org.mozilla.fenix.debug --debug --no-install --no-attach doesn't work for my on physical Pixel 3 / 7 phones due to /sdcard permissions.

The root of this is here: https://searchfox.org/mozilla-central/rev/3166120f85161b7fe84565135b04c685da1dd34f/testing/mozbase/mozdevice/mozdevice/adb.py#2562

In other scenarios we have been supporting modern unrooted phones by using the /data/local/tmp directory as a scratch space that is owned by adb shell user and can easily be shared to applications.

In a related manner, the enable_run_as mechanism doesn't work here because we don't set the app in the lldb install code path.

Use the /data/local/tmp folder as a bounce directory instead of /sdcard since
that isn't generally accessible after Android 10 (2020). Also ensure that the
app name is recorded as the run-as app in more code paths.

Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7f447bf68c6 Better support `mach run --debug` on unrooted Android devices r=owlish
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: