011f5c6ea5af27867a2ca339e2dfbcb6a7fcb65e
Historically, FRP behaviour was built on top of the application restrictions
infrastructure. This CL introduces new behaviour, as the profile owner of an
organization-owned device needs to be able to control FRP behaviour and
cannot set application restrictions on user 0.
- Introduced a new FactoryResetProtectionPolicy object
- Added it as a field to ActiveAdmin
- Created a default value
- Added setFactoryResetProtectionPolicy to DPM which is used to set a
factory reset protection policy. If the policy is null, the current
policy is cleared and set back to the default value.
- Added getFactoryResetProtectionPolicy to DPM to retrieve the current
factory reset protection policy. If this is the default value, then
no policy is set.
- Both these APIs are callable by the device owner or profile owner of
an organization-owned device.
Bug: 143517230
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
atest com.android.server.devicepolicy.FactoryResetProtectionPolicyTest
atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testFactoryResetProtectionPolicy
atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testFactoryResetProtectionPolicy
Change-Id: I72c4d06ec8a27741a1956d082969573077937726
…
Merge "Make KeyStoreCryptoOperationChunkedStreamer lazy." am:
c13f012cc5 am: bb8ecaef09 am: ecb9c6f041
…
…
Merge "Add audio description information to TvTrackInfo" am:
f04ee52d5a am: d0d2f7222f am: 4dd0da999b
…
…
…
Merge "Remove notification right after clicking on cancel" am:
00cf589f45 am: 08be4d3510 am: cb0b5bd957
…
…
…
Merge "Cleanup API docs for audio codecs and add intdef." am:
dff38f5610 am: 1aba8b3f6c am: 23f3bba5b5
Merge "[Mainline] Create getDataRegistrationState and expose as system api" am:
995d20337f am: 72cdeb7e07
…
…
Description
No description provided
Languages
Java
73.7%
Kotlin
14%
PowerBuilder
5.8%
C++
5.2%
AIDL
1%