-
Notifications
You must be signed in to change notification settings - Fork 710
Focus nightly crashes on startup with FLAG_IMMUTABLE or FLAG_MUTABLE in PendingIntent #6244
Comments
Since Android 12 we need to set PendingIntent mutability explicitly This additional requirement improves your app's security. All pending intents are updated to contain also the flag FLAG_IMMUTABLE when the version of Android SDK is bigger than 30 FLAG_IMMUTABLE -> Flag indicating that the created PendingIntent should be immutable.
Paired with Ionut on this, seems like even after setting the right flags in Focus the app will still crash because of an older version of Seems like Fenix will also crash in these conditions once being set to target 31 so AC needs to be updated before that. |
Since Android 12 we need to set PendingIntent mutability explicitly, but Android 6 can be the minimum version This additional requirement improves your app's security. All pending intents are updated to contain also the flag FLAG_IMMUTABLE when the version of Android SDK is bigger than 30 FLAG_IMMUTABLE -> Flag indicating that the created PendingIntent should be immutable.
…sion At this moment WorkManager 2.4.0 doesn't have support for Android 12 so we are constrained to force import a newer version(2.7.0) This is a temporary solution until the version of WorkManager will be updated from AC
Since Android 12 we need to set PendingIntent mutability explicitly, but Android 6 can be the minimum version This additional requirement improves your app's security. All pending intents are updated to contain also the flag FLAG_IMMUTABLE when the version of Android SDK is bigger than 30 FLAG_IMMUTABLE -> Flag indicating that the created PendingIntent should be immutable. Entire IntentUtils code was unused so it was removed
…sion At this moment WorkManager 2.4.0 doesn't have support for Android 12 so we are constrained to force import a newer version(2.7.0) This is a temporary solution until the version of WorkManager will be updated from AC
Then, I think we should update version AC too |
For context, this was originally backed out. See: mozilla-mobile/android-components#11541 |
"Circular dependency hell" 🤣 |
Since Android 12 we need to set PendingIntent mutability explicitly, but Android 6 can be the minimum version This additional requirement improves your app's security. All pending intents are updated to contain also the flag FLAG_IMMUTABLE when the version of Android SDK is bigger than 30 FLAG_IMMUTABLE -> Flag indicating that the created PendingIntent should be immutable.
…sion At this moment WorkManager 2.4.0 doesn't have support for Android 12 so we are constrained to force import a newer version(2.7.0) This is a temporary solution until the version of WorkManager will be updated from AC
Since Android 12 we need to set PendingIntent mutability explicitly, but Android 6 can be the minimum version This additional requirement improves your app's security. All pending intents are updated to contain also the flag FLAG_IMMUTABLE when the version of Android SDK is bigger than 30 FLAG_IMMUTABLE -> Flag indicating that the created PendingIntent should be immutable.
…sion At this moment WorkManager 2.4.0 doesn't have support for Android 12 so we are constrained to force import a newer version(2.7.0) This is a temporary solution until the version of WorkManager will be updated from AC
😆 |
I think we can put the WM upgrade back in now that we have Focus on 31. I'll put up a PR for that and try it out in Focus. |
Since Android 12 we need to set PendingIntent mutability explicitly, but Android 6 can be the minimum version This additional requirement improves your app's security. All pending intents are updated to contain also the flag FLAG_IMMUTABLE when the version of Android SDK is bigger than 30 FLAG_IMMUTABLE -> Flag indicating that the created PendingIntent should be immutable.
…sion At this moment WorkManager 2.4.0 doesn't have support for Android 12 so we are constrained to force import a newer version(2.7.0) This is a temporary solution until the version of WorkManager will be updated from AC
Since Android 12 we need to set PendingIntent mutability explicitly, but Android 6 can be the minimum version This additional requirement improves your app's security. All pending intents are updated to contain also the flag FLAG_IMMUTABLE when the version of Android SDK is bigger than 30 FLAG_IMMUTABLE -> Flag indicating that the created PendingIntent should be immutable.
At this moment WorkManager 2.4.0 doesn't have support for Android 12 so we are constrained to force import a newer version(2.7.0) This is a temporary solution until the version of WorkManager will be updated from AC
Also reproducible with Firefox Focus Nightly 98.0 (🦎 98.0a1-20220119093435) on Google Pixel 5 (Android 12). Note: Not reproducible on Samsung Galaxy S8 (Android 9) with the same build. |
Tested on Firefox Focus Nightly 98.0 (Build 360310515 🦎 98.0a1-20220130093554) with Google Pixel 6 (Android 12). |
Focus Nightly after #6223 landed crash on startup.
I and others were only able to reproduce this crash from installing the app through GPS. Building locally with debug or release didn't see to trigger the crash. See conversation on Matrix.
Related AC: mozilla-mobile/android-components#11563
The text was updated successfully, but these errors were encountered: