FLAG_IMMUTABLE

Please post anything related to the Hollywood APK Compiler here
Post Reply
User avatar
jayctheriot
Posts: 3
Joined: Wed Jun 03, 2020 12:04 pm
Location: https://www.google.com/maps/place/Texas ... ata=!3m1!4
Contact:

FLAG_IMMUTABLE

Post by jayctheriot »

Under "Pre-launch report details" the "Crashes and ANRs" Google Play Console throws the following error:
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.
I believe the flag must be declared somewhere in the compiler, but where?

My research has shown that API 30 and above requires declaration of either FLAG_IMMUTABLE or FLAG_MUTABLE to run on the latest Android 12 or 13 devices.

The app runs fine on Android 11 devices but won't even start on 12 or 13 devices.

Any pointers would be greatly appreciated so I can hunt this problem to its root.

Thanks in advance,
Jazzy J
Jazzy J
Technology Outreach Missionary
https://jayctheriot.com
https://jayscafe.net
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: FLAG_IMMUTABLE

Post by airsoftsoftwair »

Yep, that's a bug in APK Compiler 4.2. Luckily, APK Compiler 4.3 has just been released and fixes the issue. See here.
User avatar
jayctheriot
Posts: 3
Joined: Wed Jun 03, 2020 12:04 pm
Location: https://www.google.com/maps/place/Texas ... ata=!3m1!4
Contact:

Re: FLAG_IMMUTABLE

Post by jayctheriot »

Working!!

Thanks again,
Jazzy J
Jazzy J
Technology Outreach Missionary
https://jayctheriot.com
https://jayscafe.net
User avatar
jayctheriot
Posts: 3
Joined: Wed Jun 03, 2020 12:04 pm
Location: https://www.google.com/maps/place/Texas ... ata=!3m1!4
Contact:

Re: FLAG_IMMUTABLE

Post by jayctheriot »

Now, the work really begins.
Jazzy J
Technology Outreach Missionary
https://jayctheriot.com
https://jayscafe.net
Post Reply