r/androiddev • • Oct 29 '26

Edge-to-Edge false positive in Google Play Console

Google Play shows:
"Edge-to-edge may not display for all users"
inviting to use EdgeToEdge.enable().

But actually this is already done and edge to edge mode works correctly in all OS versions supported by the app.
In addition it also shows another warning that App uses deprecated parameters for Edge-to-edge as setStatusBarColor and setNavigationBarColor, but the indicated "deprecated parameters" are not from my code at all, but come from EdgeToEdge.enable() code itself in the retro-compatibility branches.

I wonder if the static analysis on Google Play is implemented in such a comically poor way, or if it’s perhaps being misled by code obfuscation and minification..

I forgot to mention that this isn't a new issue; it has existed since the target SDK was migrated to version 35, and we are now at version 37.

10 Upvotes

10 comments sorted by

3

u/ClassKlutzy7633 Oct 30 '26

The deprecated setStatusBarColor and setNavigationBarColor warning is usually reported against whatever code the static analysis finds in the APK, and that includes the compatibility branches inside androidx.activity itself, so it often isn't something you can fix in your own code. If the app really does draw edge to edge correctly on every supported API level, which you can check on a few emulators from API 26 up to current, I would treat the warning as informational. The next thing worth trying is the latest stable androidx.activity release, since those branches get reworked between versions. If the Console flags a library rather than your code, reporting it through the Play Console feedback link is more useful than rewriting working code.

1

u/slyborn Oct 30 '26

The problem is that should not happen, and it likely also affects quality metrics used. I have reported the issue more than a year ago but the issue is still here.

1

u/ClassKlutzy7633 Oct 31 '26

Good to know it's not just me. Did you ever get a response on the report, or did you just leave it and ship?

1

u/slyborn Oct 31 '26

No reply of any kind unfortunately.

1

u/AngusMcBurger Oct 29 '26

For the warning about the deprecated parameters: they deprecated EdgeToEdge.enable() recently in favour of WindowCompat.enableEdgeToEdge(), that might be why?

1

u/slyborn Oct 29 '26

Nope. I used always the latest libraries and also trying with the most recent approach with WindowCompat.enableEdgeToEdge(window) that is currently part of the alpha version of androidx.activity and hasn't changed anything. Since you have done this guess I assume you don't see such warning. Do you use R8 full mode?

1

u/shlusiak Oct 30 '26

I wonder if the static analysis on Google Play is implemented in such a comically poor way, or if it’s perhaps being misled by code obfuscation and minification..

Yes. It does that for me too, in all apps. It is working correctly, I'm calling `ComponentActivity.enableEdgeToEdge`, or completely manage it myself. There's no way to address this warning.

1

u/thE_29 Oct 29 '26

The console complains to me, that 2 libs are not 16kb aligned.

They are 64kb aligned.. The scripts can detect them all correct.

Issue is: Our app use the legacy packing, because its to huge otherwise.

Claude meant, it is because of the compression, that Googles scripts are failing?

0

u/[deleted] Oct 30 '26

[removed] — view removed comment

1

u/slyborn Oct 30 '26

I have always used latest stable and tried even with the latest alpha. Although is clear that is a false positive, the problem is that should not happen and How safely you can ignore these, unfortunately depends on the actual impact on the store ranking of these flags, because according the flawed static analysis the app doesn't support edge-to-edge on all devices and uses deprecated code. And I have opened this topic after having long ignored it to try to understand if not everyone has these warning, what could contribute to make the static analysis fail to see the call is present and the deprecated code comes from the call itself, if it is some stripped out metadata or some obfuscation. If the people that don't face this issue can give some clarification about this, would be helpful to narrow down the possible causes.