summaryrefslogtreecommitdiff
path: root/proto/src
diff options
context:
space:
mode:
author Fabien Sanglard <sanglardf@google.com> 2023-01-04 02:53:24 +0000
committer Fabien Sanglard <sanglardf@google.com> 2023-01-26 21:09:54 +0000
commitfbfdc1febfadccc789ea0c79241b2854a812eb69 (patch)
tree028f5764201081c88aa63713609b4d885c11f8be /proto/src
parent12c255e2cde7ac2473ebd554d6d59b894de10caf (diff)
Add "am capabilities" for tools probling
There is no way to know which command/flags are supported in am. This CL adds a "capability" command which allows to probe programatically. Test: NA Bug: 265460189 Change-Id: If50269251a6907968e7c8afe10bf873f25338b91
Diffstat (limited to 'proto/src')
-rw-r--r--proto/src/OWNERS1
-rw-r--r--proto/src/am_capabilities.proto12
2 files changed, 13 insertions, 0 deletions
diff --git a/proto/src/OWNERS b/proto/src/OWNERS
index ccff6245ff2c..4d898b41e2a7 100644
--- a/proto/src/OWNERS
+++ b/proto/src/OWNERS
@@ -3,3 +3,4 @@ per-file wifi.proto = file:/wifi/OWNERS
per-file camera.proto = file:/services/core/java/com/android/server/camera/OWNERS
per-file system_messages.proto = file:/core/res/OWNERS
per-file altitude.proto = file:/location/OWNERS
+per-file am_capabilities.proto = rpaquay@google.com, sanglardf@google.com
diff --git a/proto/src/am_capabilities.proto b/proto/src/am_capabilities.proto
new file mode 100644
index 000000000000..d97bf816b150
--- /dev/null
+++ b/proto/src/am_capabilities.proto
@@ -0,0 +1,12 @@
+syntax = "proto3";
+
+package com.android.server.am;
+option java_multiple_files = true;
+
+message Capability {
+ string name = 1;
+}
+
+message Capabilities {
+ repeated Capability values = 1;
+}