diff options
author | Yo Chiang <yochiang@google.com> | 2020-01-01 16:25:19 +0800 |
---|---|---|
committer | Yo Chiang <yochiang@google.com> | 2020-02-05 07:15:39 +0800 |
commit | 53bed1c153304aa7af235dd69877231a5882e0ed (patch) | |
tree | 2a740245b6d083083a18a50a9d6d4b4d6073cccc /partition_installer.h | |
parent | 8258f9f834a1b42fe097567526456e12c8cc433e (diff) | |
download | gsid-53bed1c153304aa7af235dd69877231a5882e0ed.tar.gz |
Add getAvbPublicKey to IGsiService and IImageService
Retrieves AVB public key from an image's VBMeta block.
Bug: 146418878
Test: adb shell am start-activity \
-n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
-a android.os.image.action.START_INSTALL \
--el KEY_USERDATA_SIZE 8589934592 \
-d file:///storage/emulated/0/Download/aosp_arm64-dsu_test.zip
Test: adb shell gsi_tool status \
// command should show sha1 of public key for each partition
Change-Id: Ic529275a2678e6c1ce341910e4dbbe9af66742a7
Diffstat (limited to 'partition_installer.h')
-rw-r--r-- | partition_installer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/partition_installer.h b/partition_installer.h index 830c034..1503648 100644 --- a/partition_installer.h +++ b/partition_installer.h @@ -48,6 +48,7 @@ class PartitionInstaller final { bool CommitGsiChunk(const void* data, size_t bytes); bool MapAshmem(int fd, size_t size); bool CommitGsiChunk(size_t bytes); + int GetPartitionFd(); static int WipeWritable(const std::string& active_dsu, const std::string& install_dir, const std::string& name); |