diff options
Diffstat (limited to 'aidl/android/gsi/IImageService.aidl')
-rw-r--r-- | aidl/android/gsi/IImageService.aidl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/aidl/android/gsi/IImageService.aidl b/aidl/android/gsi/IImageService.aidl index 5d9002f..c8c5a9d 100644 --- a/aidl/android/gsi/IImageService.aidl +++ b/aidl/android/gsi/IImageService.aidl @@ -16,6 +16,7 @@ package android.gsi; +import android.gsi.AvbPublicKey; import android.gsi.MappedImage; import android.gsi.IProgressCallback; @@ -26,6 +27,11 @@ interface IImageService { const int CREATE_IMAGE_READONLY = 0x1; const int CREATE_IMAGE_ZERO_FILL = 0x2; + /* Successfully returned */ + const int IMAGE_OK = 0; + /* Generic error code */ + const int IMAGE_ERROR = 1; + /** * Create an image that can be mapped as a block device. * @@ -87,6 +93,18 @@ interface IImageService { boolean isImageMapped(@utf8InCpp String name); /** + * Retrieve AVB public key from an image. + * If the image is already mapped then it works the same as + * IGsiService::getAvbPublicKey(). Otherwise this will attempt to + * map / unmap the partition image upon enter / return. + * + * @param name Image name as passed to createBackingImage(). + * @param dst Output of the AVB public key. + * @return 0 on success, an error code on failure. + */ + int getAvbPublicKey(@utf8InCpp String name, out AvbPublicKey dst); + + /** * Get all installed backing image names * * @return list of installed backing image names |