android_packages_modules_Vi.../tests
Alan Stokes 20696d9790 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
2022-11-07 15:40:14 +00:00
..
aidl [API] Add vm_payload API to get APK contents path 2022-10-27 14:08:45 +00:00
benchmark Statically link AIDL code 2022-10-28 11:11:54 +01:00
benchmark_hostside Merge "Average the cold app startup time to eliminate the noise" 2022-10-31 16:00:06 +00:00
helper Move delete to VirtualMachineManager 2022-11-07 15:40:14 +00:00
hostside Include shell command in some assertion messages 2022-10-31 10:29:38 -07:00
testapk Move delete to VirtualMachineManager 2022-11-07 15:40:14 +00:00