From 40a79783037ddbe2d0909d6102d36b1398f3e9c7 Mon Sep 17 00:00:00 2001 From: Fabien Sanglard Date: Tue, 14 May 2024 01:04:33 +0000 Subject: Add vm name and version to am capabilities This CL is part of the go/kddm project, to deprecate DDM protocol. HELO packet currently return the VM name and version, this CL allows to retrieves the same invo from a tool accessible from shell. The data is retrieved the same way it is retrieved in DdmHandleHello. handleHELO (System.getproperty). Test: NA Bug: go/kddm Change-Id: Id5cf9bf768f397bf3595e577f0da7a001b7ec394 --- proto/src/am_capabilities.proto | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'proto/src') diff --git a/proto/src/am_capabilities.proto b/proto/src/am_capabilities.proto index fc9f7a4590bd..c2b3ac2aaa78 100644 --- a/proto/src/am_capabilities.proto +++ b/proto/src/am_capabilities.proto @@ -15,8 +15,16 @@ message FrameworkCapability { string name = 1; } +message VMInfo { + // The value of the "java.vm.name" system property + string name = 1; + // The value of the "java.vm.version" system property + string version = 2; +} + message Capabilities { repeated Capability values = 1; repeated VMCapability vm_capabilities = 2; repeated FrameworkCapability framework_capabilities = 3; + VMInfo vm_info = 4; } -- cgit v1.2.3-59-g8ed1b