A Room migration or a missing R8 keep rule can put an Android app in a crash loop before Remote Config loads. A flag can't reach that code, so tests and a startup guard have to.
"...once an app has the bad configuration it will continue to crash before it's able to successfully fetch the corrected configuration."
Lyft's engineers wrote that in 2022 about feature flags that crashed their app at launch. Turning the flag off remotely didn't help, and they usually had to ship a hotfix. Their answer was Safe Mode, which locks the flags read before a launch crash to their local defaults for the rest of the session. The post's list of future work ends on a question: what other things cause crash loops on launch?
My release gate piece ended its checklist with one line about the code no flag can reach: startup code, database migrations, manifest changes and R8 keep rules.…