diff options
| author | Felipe Leme <felipeal@google.com> | 2021-01-05 17:53:32 -0800 |
|---|---|---|
| committer | Felipe Leme <felipeal@google.com> | 2021-01-22 04:43:22 +0000 |
| commit | 6ad393d8960d03ba560e7cca09ceba8a0dd6860a (patch) | |
| tree | 8d9a02d763dc00af383dd506738a7af9b3901773 /docs/html/sdk/api_diff/12/changes | |
| parent | 596a4ea492eda8e7f12a24aeab6a6e9abf2843d0 (diff) | |
Added evenWhenDisallowed param to removeUserOrSetEphemeral().
UserManager.removeUserOrSetEphemeral() was added primarily to
be used by CarDevicePolicyManager, in which case it should ignore
the no_remove_user restriction. But as it's also used in other
places, it needs a new parameter to define this behavior.
Test: atest FrameworksServicesTests:com.android.server.pm.UserManagerTest#testRemoveUserOrSetEphemeral_evenWhenRestricted
Test: atest FrameworksServicesTests:com.android.server.pm.UserManagerTest # to make sure it didn't break anything
Test: atest android.car.apitest.CarDevicePolicyManagerTest#testRemoveUser_whenDisallowed # on automotive
Bug: 170887769
Change-Id: If797ace64c0fa0262116f649212bbcb1d61e2046
Diffstat (limited to 'docs/html/sdk/api_diff/12/changes')
0 files changed, 0 insertions, 0 deletions
