keymaster: Fix callback invocations

Fix a pair of sites where a HIDL callback is being invoked potentially
more than once, or invalid data is being after an error has already been
reported to the caller.

Bug: None
Test: None
Signed-off-by: Garret Kelly <gdk@google.com>
Change-Id: Ifd8e5d8c30705485a9a1ff191a80f1ae9c2d751a
1 file changed
tree: 2c4ea6f287be23d742aa74c73c6956a8efc043a0
  1. citadel/
  2. hals/
  3. manual_tests/
  4. .checkpatch.conf
  5. .clang-format
  6. Android.bp
  7. LICENSE
  8. METADATA
  9. MODULE_LICENSE_APACHE2
  10. NOTICE
  11. README.md
README.md

Android components for Nugget

Android communicates with Nugget apps in order to implement security related HALs. Currently, those HALs are Keymaster, Weaver and OemLock.

Services

Apps that define a protobuf service will have an app interface class autogenerated. These classes will wrap a NuggetClient. The generator can be found in the generator directory.

Asynchronous communication

Work in progress.

Currently, everything is synchronous and just exposes the call_application() function from the Nugget transport API. In future, asynchronous calls may be desired. Support for this could be added in:

  • Nugget transport API
  • NuggetClient on top of call_application()
  • Generated services

citadel

This directory contains the components to support Citadel connected to Android.