commit | 20696d97901ed3f00d1f872da375800f29f63776 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Mon Nov 07 14:47:48 2022 +0000 |
committer | Alan Stokes <alanstokes@google.com> | Mon Nov 07 15:40:14 2022 +0000 |
tree | eb66072fa12a5c005da5b5a2886355d1bbad9576 | |
parent | 98f2ae783a22c833fee2c39e96746f5fbbd2e19e [diff] |
Move delete to VirtualMachineManager This allows us to make sure we can delete a VM even if it is corrupted (e.g. missing or malformed config file). Also delete all files in the VM directory, even ones we don't expect to be there, as otherwise the VM name can never be reused. For consistency, modify load() to return null iff the VM directory doesn't exist; other missing files cause an exception to be thrown. While I'm here, move the vm files under getDataDir (which the app shouldn't be touching) rather than getFilesDir (where it might want to create its own directory called "vm"). Add tests. Modify test & demo APKs to match. Bug: 242999384 Bug: 257474585 Test: atest MicrodroidTests Change-Id: I3525e4c7c208a9bd1a7c41d6475327038073d6e6
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.