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

Commit d29e0032 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[audio] Improve NPC logging for unknown uid" into main

parents 82c85f95 e7933192
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -145,9 +145,10 @@ BinderResult<bool> NativePermissionController::validateUidPackagePair(
    }
    const auto cursor = package_map_.find(uid);
    if (cursor == package_map_.end()) {
        return unexpectedExceptionCode(
                Status::EX_ILLEGAL_ARGUMENT,
                "NPC::validatedUidPackagePair: unknown uid");
        return unexpectedExceptionCode(Status::EX_ILLEGAL_ARGUMENT,
                                      ("NPC::validateUidPackagePair: uid not found: " +
                                        std::to_string(uid) + " for package " + packageName)
                                               .c_str());
    }
    return (std::find(cursor->second.begin(), cursor->second.end(), packageName) !=
            cursor->second.end());