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

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

Merge "Logging getPasswordComplexity events with the calling app package name"

parents 0c573ea5 4e2fd163
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4765,6 +4765,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
    @Override
    @PasswordComplexity
    public int getPasswordComplexity() {
        DevicePolicyEventLogger
                .createEvent(DevicePolicyEnums.GET_USER_PASSWORD_COMPLEXITY_LEVEL)
                .setStrings(mInjector.getPackageManager()
                        .getPackagesForUid(mInjector.binderGetCallingUid()))
                .write();
        final int callingUserId = mInjector.userHandleGetCallingUserId();
        enforceUserUnlocked(callingUserId);
        mContext.enforceCallingOrSelfPermission(