summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Will <wleshner@google.com> 2022-03-04 15:20:06 -0800
committer Will <wleshner@google.com> 2022-04-06 14:20:02 -0700
commit789f05202755254d591fca488048209765d7bd23 (patch)
treeea7be13ca6011777f0f529b26af98d05496d3f2e /libs/androidfw/StringPool.cpp
parent9e7f234b10b441f0ae50813a7e1bb56c392b1237 (diff)
Add the ability to restrict dreams to the system user.
By default, this functionality is disabled. Which means that all users should continue to be able to start dreams. Bug: 213906883 Test: Manually with the following steps: Step 0: Have 2 or more users on the device. Enable screen saver in display settings. Optionally set the screen timeout to 15 seconds for faster dreaming. Step 1: With the system user (the first user created) as the selected user, allow the device to fall into a dream. Make sure the dream appears. Switch to a different user. Allow the device to fall into a dream. Verify that the device behaves the same way it would without this change (depending on other configuration settings, it may or may not dream, but this change itself does not prevent any user from dreaming). Step 2: To verify that this change does prevent non-system users from dreaming, set the config_dreamsOnlyEnabledForSystemUser config value to true in core/res/res/values/config.xml and push the change to a device. Switch to a non-system user and allow the device to fall into a dream. The device should not display a dream (and instead, should just display a black screen). Change-Id: I2fa7a16ee7c6250a7a3ac49e82bb4c8085451391
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions