Disable background restricted profiles on all TVs
Devices can override this to get background restricted profiles back
in case the advantages of keeping a user sitting in memory are worth it
(these benefits being 2s faster switch time and higher chance of
returning to the same place in restricted apps).
Bug: 71626497
Test: to follow in //platform/vendor/xts/3491171
Change-Id: I896e5d5942c518a15db0bf4579ba9e2f0461953b
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 8a44d85..ce98c0f 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -88,4 +88,10 @@
<item>com.google.android.inputmethod.pinyin</item>
</string-array>
+ <!-- Whether to keep background restricted profiles running after exiting. If set to false,
+ restricted profiles may be put into stopped state as soon as the switch back to primary
+ happens.
+ Can be overridden with android.provider.Settings.Global.KEEP_PROFILE_IN_BACKGROUND. -->
+ <bool name="config_keepRestrictedProfilesInBackground">false</bool>
+
</resources>