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

Commit 76c2dd58 authored by Raj Yengisetty's avatar Raj Yengisetty Committed by Rajesh Yengisetty
Browse files

ProtectedApps: setComponentProtectedSetting check null ComponentName

Change-Id: Ibf01560c9d9d1ec88285a115f15625b83e2da615
parent c101881b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -12852,6 +12852,11 @@ public class PackageManagerService extends IPackageManager.Stub {
            int userId) {
        enforceCrossUserPermission(Binder.getCallingUid(), userId, false, "set protected");
        if (componentName == null) {
            throw new IllegalArgumentException(
                    "Must define component: " + componentName);
        }
        String packageName = componentName.getPackageName();
        String className = componentName.getClassName();