I work on an Android app that expects empty default shared preferences in certain contexts. On my Samsung Galaxy A13 running Android 14, that never happens. There is always a bg_startup_tracing
key with value false
. I programmatically remove it using PreferenceManager.getDefaultSharedPreferences(context).edit().clear().apply()
, verify that the preferences are empty, relaunch the app, and it’s always back. This does not happen with an emulator.
What is this key and what is setting it in my app’s shared preferences?
I see a reference to it in the Chromium Android app’s source. I also see that sometimes other users have it for apps they use.