summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorAnnie Meng <anniemeng@google.com>2019-01-22 15:32:25 +0000
committerAnnie Meng <anniemeng@google.com>2019-01-24 15:14:09 +0000
commitbdb8848abe9999fbd302d71f2c0ce62b9a09fd8a (patch)
treeb2c8d96aeb9ee6e07dc9434cabe619c8857b50da /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent25b54058c0e3bb7e0630650f750092f7ccd2289f (diff)
[Multi-user] Disable backup by default in non-system users
Key changes in this CL: - Backup is now disabled by default in non-system users unless DPM activates backup for this user AND the system user is activated. This provides gating for the multi-user B&R feature. - Activation is done via an 'activate' file that is per-user (but lives in the system user directory to account for locked users). - isBackupServiceActive() handles both locked and unlocked users. - Added a bmgr command to expose isBackupServiceActive() for testing purposes and enforce appropriate permissions. Future CLs: - Handle future migration to backup on by default for non-system users - Change CTS tests to use the new bmgr command Bug: 121306407 Test: 1) atest TrampolineTest 2) Start system user -> service started; run backup and restore successfully 3) Start non-system user -> ignored; 4) adb shell bmgr --user 0 activate true -> security exception; adb shell bmgr --user 10 activate true -> security exception (work profile); adb shell bmgr --user 11 activate true/false -> creates/deletes activate file and starts/stops the service Change-Id: Ic77db9b8b2e5170dcf89bef863dac4713730797a
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions