diff options
author | Chandan Nath <nathch@google.com> | 2019-02-13 14:51:17 +0000 |
---|---|---|
committer | Chandan Nath <nathch@google.com> | 2019-02-14 13:19:05 +0000 |
commit | 953682187e376383945bb7b99e3914f206540543 (patch) | |
tree | dcf1cf2aff948452fd780af23b5d7f274cf5d14f /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 06363e342c5bb83c158100dc70d7ca63949def8b (diff) |
[Multi-user]: R backwards compatibility in activating/deactivating the service
Bug: 123347794
In Q, backup is OFF by default for non-system users. In R, we will change that to ON
unless backup was explicitly deactivated with a (permissioned) call to
setBackupServiceActive.
Therefore, remember this for use in R. Basically the default in R will be
rememberFile.exists() ? rememberFile.value() : ON
Note that this has to be done right after the permission checks and before any other
action since we need to remember that a permissioned call was made irrespective of
whether the call changes the state or not.
Test: 1. atest $(find frameworks/base/services/tests/servicestests/src/com/android/server/backup -name '\''*Test.java'\'')'
2. atest RunBackupFrameworksServicesRoboTests
3. atest CtsBackupTestCases CtsBackupHostTestCases GtsBackupTestCases GtsBackupHostTestCases
Change-Id: I0897d6f9f8d8d8a9fc3c0faabfc9045b416dd25f
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions