commit | a2ff8c505df75ca94382d13b21d1d3a2f985c2bc | [log] [tgz] |
---|---|---|
author | Shikha Panwar <shikhapanwar@google.com> | Wed Nov 30 19:25:46 2022 +0000 |
committer | Shikha Panwar <shikhapanwar@google.com> | Fri Dec 09 16:13:21 2022 +0000 |
tree | a990c3e024e679a38f38e38c3b5197b16b86f126 | |
parent | f53f92b1995aac9c1c75d22257321d626e133007 [diff] |
Expose encryptedstore feature to system apps This patch adds 2 api functions: set/get EncryptedStorageKib & isEncryptedStorageEnabled() which can be used to specify the size of storage required. VirtualMachine, on being initialized, will create the backing (empty) file if storageSize > 0. The (storage) allocation happens when VirtualMachine.create() is called: by using VS' initializeWritablePartition() called over binder. Test that EncryptedStore is available & accessible - encryptedStorageAvailable() is a device test which uses these system apis to enable encrypted storage in VM. It then verifies that the native api(getEncryptedStoragePath()) inside VM indeed returns the right mount point, hence verifying both the ends of the encryptedstore infra :) Test: atest MicrodroidTests#encryptedStorageAvailable Bug: 254454175 Bug: 260084116 Change-Id: I4842ebac6af795beaf250525252087545895b231
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.