libbrillo: stop using HexEncode(ptr, size)

Switch the libbrillo callers to the public span/string_view-based
HexEncode APIs so they no longer depend on the compatibility patch
exposing the pointer-based overload.

BUG=b:497207816
TEST=CQ

Change-Id: I97e5ab26ca7c17381b1c51e3ea7f1ae55707ee56
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/7707038
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
Commit-Queue: Di Wu <diwux@google.com>
Tested-by: Di Wu <diwux@google.com>
NOKEYCHECK=True
GitOrigin-RevId: 0a5495544c6ba4ea509aba7fb9510108cfcc10dc
6 files changed
tree: e3213d95a4adba84deba43550b1766277ed6fa14
  1. brillo/
  2. install_attributes/
  3. policy/
  4. testdata/
  5. BUILD.gn
  6. libpolicy.ver
  7. OWNERS
  8. README.md
  9. testrunner.cc
README.md

libbrillo: platform utility library

libbrillo is a shared library meant to hold common utility code that we deem useful for platform projects. It supplements the functionality provided by libbase/libchrome since that project, by design, only holds functionality that Chromium (the browser) needs. As a result, this tends to be more OS-centric code.

AOSP Usage

This project is also used by Update Engine which is maintained in AOSP. However, AOSP doesn't use this codebase directly, it maintains its own libbrillo fork.

To help keep the projects in sync, we have a gsubtree set up on our GoB: https://chromium.googlesource.com/chromiumos/platform2/libbrillo/

This allows AOSP to cherry pick or merge changes directly back into their fork.