commit | d4667bc5e0a9597bb46a91e1b383e18d7e66b1b1 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Mon Oct 03 10:49:48 2022 +0100 |
committer | Alan Stokes <alanstokes@google.com> | Tue Oct 04 13:18:05 2022 +0100 |
tree | 3f99578c988336ade46bc7a6c60501b1524ee1da | |
parent | 7c6b2705e9b65ecbf2bca3880f40b2fb603476c6 [diff] |
VirtualMachine API changes pre-@SystemApi This is the set of code changes proposed in https://r.android.com/2192077, except for the migration to @SystemApi: - Replace enums with integer constants. Map the AIDL constants to the API constants. (Some of this was already done in https://r.android.com/2203781.) - Make connectToVsockServer synchronous rather than using Future. - Make VirtualMachine AutoCloseable (close() == stop()). - Add VirtualMachine getters to match the builder's setters. - Lots of nullability declarations. - Added @RequiresPermission as appropriate. - Rename onDied, DeathReason to onStopped, StopReason. - Assorted documentation tweaks. Also modify the clients to match. I want to do this now separately because that CL is going to take a while to get in, and I want to submit some further changes that modify VirtualMachineConfig (b/243513572). Bug: 243512115 Bug: 236811123 Test: atest MicrodroidTests MicrodroidHostTestCases Test: Install & run demo app Change-Id: I4bee00ffd23732bc9dfdca8c4c104b487f24907c
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.