Closed Bug 1353714 Opened 7 years ago Closed 7 years ago

Crash @ java.lang.NoClassDefFoundError: android.app.ActivityManager$TaskDescription at org.mozilla.gecko.webapps.WebAppActivity.loadManifest(WebAppActivity.java)

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect, P1)

55 Branch
ARM
Android
defect

Tracking

(firefox55 verified)

VERIFIED FIXED
Firefox 55
Tracking Status
firefox55 --- verified

People

(Reporter: ohorvath, Assigned: daleharvey)

References

Details

Attachments

(1 file)

Build: Nightly 55.0a1 (2017-04-05);
Devices: 
- Lenovo A536 (Android 4.4.2);
- Lenovo Yoga Tablet 2 (Android 4.4.2)

Steps to reproduce:
Install and open a standalone web app on an Android 4 device.

Expected result:
The pwa should open.

Actual result:
Nightly and the web app crash every time you try to open an installed web app.
Crash report: https://crash-stats.mozilla.com/report/index/4c724be7-c2c1-4878-82cf-3e3512170405

Notes:
Reproduces 100% on Android 4. I didn't get the same crash ID on other devices, but still got crashes like Bug 1351169 & Bug 1325021.
Blocks: 1285858
TaskDescription API is 21+ only.
Priority: -- → P1
Assignee: nobody → dale
Attachment #8855475 - Flags: review?(jh+bugzilla)
Comment on attachment 8855475 [details] [diff] [review]
Only setTaskDescription on supported android

Review of attachment 8855475 [details] [diff] [review]:
-----------------------------------------------------------------

Seems fine, although since loadManifest now doesn't do anything useful on preLollipop at all (updateStatusBarColor is guarded by an API version check as well), maybe for older device we should skip file parsing completely for now? If you go down that route, just add a comment above ActivityManager.TaskDescription taskDescription mentioning that this is API 21+ only (although I wonder why Android Studio didn't automatically pick up on this?).
Attachment #8855475 - Flags: review?(jh+bugzilla) → review+
Pushed by dharvey@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2c72b26390de
Only setTaskDescription on supported android. r=janh
Thanks good catch, I changed it to early return and added the comment
https://hg.mozilla.org/mozilla-central/rev/2c72b26390de
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Verified as fixed on Nightly 55.0a1 (2017-04-10). Web apps can be installed on Android 4 devices.
Devices: 
- Lenovo A536 (Android 4.4.2);
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: