libbrillo: Add method to retrieve Directory API ID

This will be used by the new allowlisting flow for the
Integrated U2F function.

BUG=b:135412897
TEST=unit tests, manual check of returned value on enterprise-enrolled DUT

Change-Id: I3568aa027792bca0ccea7dc5a610e5dd0aa362e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/1857281
Tested-by: Louis Collard <louiscollard@chromium.org>
Commit-Queue: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Cr-Mirrored-From: https://chromium.googlesource.com/chromiumos/platform2
Cr-Mirrored-Commit: 2cd6c6d4c90f7297b56255ee3b00a161575a6487
5 files changed
tree: 4a7c2949b62868dc5bc046504908a98d3119a782
  1. brillo/
  2. install_attributes/
  3. policy/
  4. BUILD.gn
  5. libpolicy.ver
  6. OWNERS
  7. PRESUBMIT.cfg
  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.