Validate setOs and --gki when creating a VM
As config files can specify os, VirtualMachineConfig.setOs() and --gki
option in the vm tool will work only for binary payloads. This change
validates those so users don't accidentally use both os and config.
Bug: 302465542
Test: atest MicrodroidHostTests MicrodroidTests
Test: manually invoke vm tool
Change-Id: I122de63d32ab7414af780783fe758e8b34b5c649
diff --git a/javalib/api/test-current.txt b/javalib/api/test-current.txt
index 34837a3..958005f 100644
--- a/javalib/api/test-current.txt
+++ b/javalib/api/test-current.txt
@@ -7,7 +7,7 @@
}
public final class VirtualMachineConfig {
- method @FlaggedApi("RELEASE_AVF_ENABLE_VENDOR_MODULES") @NonNull public String getOs();
+ method @FlaggedApi("RELEASE_AVF_ENABLE_VENDOR_MODULES") @Nullable public String getOs();
method @Nullable public String getPayloadConfigPath();
method public boolean isVmConsoleInputSupported();
}