Modify setDefaultSmsApplication API
* Introduced new logic that allows the profile owner of an organization-owned device (COPE PO) to set the default SMS application in the personal profile. * Modified the API to be callable on the parent profile instance if called by the COPE PO. * When called by the COPE PO, the package provided must be a system package, otherwise an IllegalArgument Exception is thrown. Bug: 148060194 Test: atest android.admin.cts.DevicePolicyManagerTest#testSetDefaultSmsApplication_failIfNotDeviceOwner Change-Id: I5b86b10a13064f4ec852631e19f89a80a104dc2b
Loading
Please register or sign in to comment