Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b59c503 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't require MANAGE_ROLE_HOLDERS when removing CDM associatons"

parents 70d592c9 7e378832
Loading
Loading
Loading
Loading
+19 −14
Original line number Diff line number Diff line
@@ -612,6 +612,8 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
                        + " for " + association
                        + " - profile still present in " + otherAssociationWithDeviceProfile);
            } else {
                long identity = Binder.clearCallingIdentity();
                try {
                    mRoleManager.removeRoleHolderAsUser(
                            association.getDeviceProfile(),
                            association.getPackageName(),
@@ -626,6 +628,9 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
                                            + " for user " + association.getUserId());
                                }
                            });
                } finally {
                    Binder.restoreCallingIdentity(identity);
                }
            }
        }
    }