Closed Bug 1774565 Opened 2 years ago Closed 2 years ago

ExampleCrashHandler crashes on API 31+

Categories

(GeckoView :: General, defect, P3)

ARM
All

Tracking

(firefox-esr91 unaffected, firefox-esr102 wontfix, firefox101 wontfix, firefox102 wontfix, firefox103 fixed)

RESOLVED FIXED
103 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- wontfix
firefox101 --- wontfix
firefox102 --- wontfix
firefox103 --- fixed

People

(Reporter: petru, Assigned: agi)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Can be tested on an API31 device with accessing about:crashparent.
Result:

java.lang.RuntimeException: Unable to start service org.mozilla.geckoview_example.ExampleCrashHandler@24789bf with Intent { act=org.mozilla.gecko.ACTION_CRASHED cmp=org.mozilla.geckoview_example/.ExampleCrashHandler (has extras) }: java.lang.IllegalArgumentException: org.mozilla.geckoview_example: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

 

This happens probably because of - https://developer.android.com/about/versions/12/behavior-changes-12

If your app targets Android 12, you must specify the mutability of each PendingIntent object that your app creates. This additional requirement improves your app's security.

 

Fenix/Focus/AC had to do similar updates related to the immutability flags (eg - https://github.com/mozilla-mobile/android-components/issues/10641)

Set release status flags based on info from the regressing bug 1743469

:agi, since you are the author of the regressor, bug 1743469, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(agi)
Assignee: nobody → agi
Status: NEW → ASSIGNED
Flags: needinfo?(agi)
Severity: -- → S3
Component: General → GeckoViewExample
Priority: -- → P3
Pushed by asferro@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/062e66ba89e4
Pass FLAG_IMMUTABLE in pendingIntents. r=calu
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch

Set release status flags based on info from the regressing bug 1743469

See Also: → 1776525
Component: GeckoViewExample → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: