Add back the throwIfParentInstance checking in getAffiliationIds
Fix: 37887947 Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.ParentProfileTest#testParentProfileApiDisabled Change-Id: I05944c7a2447998d3ea948195fb25b09ab9735fc
This commit is contained in:
@@ -7636,6 +7636,7 @@ public class DevicePolicyManager {
|
||||
* empty set if none have been set.
|
||||
*/
|
||||
public @NonNull Set<String> getAffiliationIds(@NonNull ComponentName admin) {
|
||||
throwIfParentInstance("getAffiliationIds");
|
||||
try {
|
||||
return new ArraySet<>(mService.getAffiliationIds(admin));
|
||||
} catch (RemoteException e) {
|
||||
|
||||
Reference in New Issue
Block a user