diff options
author | Yo Chiang <yochiang@google.com> | 2020-02-05 21:55:40 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-02-05 21:55:40 +0000 |
commit | 0679b298a71fff843b3a2afe673ff11eee871eb6 (patch) | |
tree | 6ed8cc44fa21c4071b399e8ea5d706d65a2057da /aidl/android/gsi/IGsiService.aidl | |
parent | 4a3bcc6b7a3f8453c295a32a230e6b18ca954f26 (diff) | |
parent | 53bed1c153304aa7af235dd69877231a5882e0ed (diff) | |
download | gsid-0679b298a71fff843b3a2afe673ff11eee871eb6.tar.gz |
Merge "Add getAvbPublicKey to IGsiService and IImageService"
Diffstat (limited to 'aidl/android/gsi/IGsiService.aidl')
-rw-r--r-- | aidl/android/gsi/IGsiService.aidl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/aidl/android/gsi/IGsiService.aidl b/aidl/android/gsi/IGsiService.aidl index cd48c63..65050fe 100644 --- a/aidl/android/gsi/IGsiService.aidl +++ b/aidl/android/gsi/IGsiService.aidl @@ -16,6 +16,7 @@ package android.gsi; +import android.gsi.AvbPublicKey; import android.gsi.GsiProgress; import android.gsi.IImageService; import android.os.ParcelFileDescriptor; @@ -188,4 +189,20 @@ interface IGsiService { * for dumpstate. */ @utf8InCpp String dumpDeviceMapperDevices(); + + /** + * Retrieve AVB public key from the current mapped partition. + * This works only while partition device is mapped and the end-of-partition + * AVB footer has been written. + * A call to createPartition() does the following things: + * 1. Close the previous partition installer, thus unmap the partition. + * 2. Open a new partition installer. + * 3. Create and map the new partition. + * + * In other words, getAvbPublicKey() works between two createPartition() calls. + * + * @param dst Output the AVB public key. + * @return 0 on success, an error code on failure. + */ + int getAvbPublicKey(out AvbPublicKey dst); } |