Closed Bug 1681439 Opened 3 years ago Closed 3 years ago

[mozdevice] Supported unrooted devices with undebuggable apps for Android 8 and lower.

Categories

(Testing :: Mozbase, enhancement)

Default
enhancement

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(3 files)

mozdevice should place the test root on the sdcard in the case where the device is not rooted and the app is not debuggable but only if scoped storage restriction is not in effect.

We should probably quickly throw an unrecoverable error if the device and app do not meet the minimum requirements.

See Also: → 1680407

This patch forces geckoview_example and geckoview_example.test to be undebuggable for use in testing only. Doesn't pass linting etc etc.

aerickson: Can you help test with unrooted devices? Testing the actual patch and then testing with both the actual patch and the patch to make geckoview_* undebuggable or testing with Fenix would be awesome.

Flags: needinfo?(aerickson)
Blocks: 1578424
Component: Mozbase → Mozbase Rust
Pushed by jmaher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f2b16ab33e6c
[mozdevice] Supported unrooted devices with undebuggable apps. r=jmaher,gbrown
No longer blocks: 1578424
Component: Mozbase Rust → Mozbase
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

:bc, Sorry I didn't get around to testing before landing.

What tests can I run on Fenix? Just browsertime? Here's output from my unrooted P3 on Android 11. It seems to fail to launch the app (do I need to build locally or does it fetch a prebuilt Fenix for this?). Will try with the patch to make geckoview undebuggable.

Flags: needinfo?(aerickson)

There are problems with browsertime/geckodriver currently and with regard to Fenix, I don't know what tests it can run in tree. I used the patch attached above to make geckoview_example and geckoview.test be undebuggable and then ran the normal set of tests using that script I showed you. I never could get Fenix to do much of anything using our normal tests.

I see 22:06:51 INFO - raptor-browsertime Info: Browser failed to start, trying 2 more time(s): adb error: couldn't create file: Permission denied in your output but unfortunately raptor hides the actual file which can not be created. You can probably see it in logcat though.

I would use the undebuggable patch and run tests using geckoview_example/geckoview.test and see if they work. Good luck.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: