ExampleCrashHandler crashes on API 31+
Categories
(GeckoView :: General, defect, P3)
Tracking
(firefox-esr91 unaffected, firefox-esr102 wontfix, firefox101 wontfix, firefox102 wontfix, firefox103 fixed)
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)
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Set release status flags based on info from the regressing bug 1743469
Comment 2•2 years ago
|
||
:agi, since you are the author of the regressor, bug 1743469, could you take a look?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 3•2 years ago
|
||
This is a requirement when targeting Android 31 and above:
https://developer.android.com/about/versions/12/behavior-changes-12.
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/062e66ba89e4 Pass FLAG_IMMUTABLE in pendingIntents. r=calu
Comment 5•2 years ago
|
||
bugherder |
Comment 6•2 years ago
|
||
Set release status flags based on info from the regressing bug 1743469
Updated•2 years ago
|
Updated•1 month ago
|
Description
•