Closed Bug 1482843 Opened 6 years ago Closed 6 years ago

Mozregression is unable to start application on unrooted devices on Android

Categories

(Testing :: mozregression, defect)

Version 2
x86_64
Windows 10
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bsurd, Assigned: wlach)

References

Details

Attachments

(3 files)

Attached image mozregression.jpg
Mozregression version:
2.3.30

Operating system:
Windows 10 (x64)

STR:
 1. Connect a device with usb debugging enabled to the PC.
 2. Run any regression on the device. (eg. mozregression --app fennec --good 2018-07-12)

Expected results:
 Mozregression works without any problems.

Actual results:
 Mozregression encounters an error returning "Unable to start the application".
Attached file debug.txt
Flags: needinfo?(wlachance)
Looks like it's failing to find a writeable area on the device to write a temporary profile. Does installing an Android .apk manually work? Can you find a writeable area/directory on the device? What device is it?
Flags: needinfo?(wlachance) → needinfo?(bogdan.surd)
Devices:
 - Nexus 5 (Android 6.0.1)
 - Huawei Honor 8 (Android 7.0)
 - Nexus 6P (Android 8.1.0)

Hello,

Installing a build manually from the device or using ADB works without any issues. A working path would be /storage/emulated/0 (for the Nexus 5). A folder called tests is created in that directory.

The app fails when trying to start fennec as mozregression uninstalls(if needed)/installs nightly without any issue on all of the mentioned devices.

Note:
Mozregression worked with these devices in the past without any kind of issue, the issue started after updating mozregression. (the previous version was 2.3.25 if I recall correctly)
Flags: needinfo?(bogdan.surd) → needinfo?(wlachance)
Ah, it's probably the upgrade of mozdevice that broke us then. It looks like they added some code to require root in bug 1440714.

Probably our best option is to revert mozdevice versions for now, until we can switch away from it altogether.
Blocks: 1440714
Depends on: 1482898
No longer blocks: 1440714
See Also: → 1478502
Hey, I just released a new version of mozregression (v2.3.31) which should not have the rooting requirement. Unfortunately I can't seem to get my pixel 2 working with usb debugging to test (I think it's just a bad cable). Could one of you give it a try and report back here?
Assignee: nobody → wlachance
Flags: needinfo?(wlachance)
Flags: needinfo?(miket)
Flags: needinfo?(bogdan.surd)
Flags: needinfo?(agashlin)
Summary: Mozregression is unable to start application → Mozregression is unable to start application on unrooted devices on Android
Attached file debugger.txt
Devices:
 - Samsung Galaxy Note 8 (Android 8)
 - Nexus 9 (Android 6.0.1).

Verified with 2 devices, the Samsung works as expected without any issue.

On the Nexus 9, on the other hand, it's unable to install the application. Installing via ADB works without any issue.

It seems to give a [INSTALL_FAILED_ALREADY_EXISTS], I do not have any Firefox installed on the device when trying to run mozregression. Installing a build results in the same error.
Flags: needinfo?(bogdan.surd)
Flags: needinfo?(miket)
Flags: needinfo?(agashlin)
(In reply to Bogdan Surd, QA [:BogdanS, NI | PTO 08.15 - 08.19] from comment #7)
> Created attachment 8999977 [details]
> debugger.txt
> 
> Devices:
>  - Samsung Galaxy Note 8 (Android 8)
>  - Nexus 9 (Android 6.0.1).
> 
> Verified with 2 devices, the Samsung works as expected without any issue.
> 
> On the Nexus 9, on the other hand, it's unable to install the application.
> Installing via ADB works without any issue.
> 
> It seems to give a [INSTALL_FAILED_ALREADY_EXISTS], I do not have any
> Firefox installed on the device when trying to run mozregression. Installing
> a build results in the same error.

Thanks for testing. I think the problem you're seeing on the nexus 9 is a different problem. Could you file a bug for that?
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
(In reply to William Lachance (:wlach) (use needinfo!) from comment #6)
> Hey, I just released a new version of mozregression (v2.3.31) which should
> not have the rooting requirement. Unfortunately I can't seem to get my pixel
> 2 working with usb debugging to test (I think it's just a bad cable). Could
> one of you give it a try and report back here?

Working for me on my Pixel, thanks!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: