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

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

Merge "Mark set/getProtectedPackages APIs as non-parent aware."

parents e77f98e2 f5639d2d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -11468,6 +11468,7 @@ public class DevicePolicyManager {
     * @throws SecurityException if {@code admin} is not a device owner.
     */
    public void setProtectedPackages(@NonNull ComponentName admin, @NonNull List<String> packages) {
        throwIfParentInstance("setProtectedPackages");
        if (mService != null) {
            try {
                mService.setProtectedPackages(admin, packages);
@@ -11484,6 +11485,7 @@ public class DevicePolicyManager {
     * @throws SecurityException if {@code admin} is not a device owner.
     */
    public @NonNull List<String> getProtectedPackages(@NonNull ComponentName admin) {
        throwIfParentInstance("getProtectedPackages");
        if (mService != null) {
            try {
                return mService.getProtectedPackages(admin);