From 88c6f327a984263497a48f564b0193bd3ad7a3d0 Mon Sep 17 00:00:00 2001 From: Stanislav Zholnin Date: Wed, 29 Jan 2020 14:48:11 +0000 Subject: [PATCH] Change operation id from integer to string representation Atom was never used before. Test: Can't be tested on its own. Change-Id: Icdf8d0fcbe736a882fc61320d33f523770d29dcf --- cmds/statsd/src/atoms.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 12058cae1a2ae..30b3eb820ddf0 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -466,7 +466,7 @@ message Atom { DangerousPermissionStateSampled dangerous_permission_state_sampled = 10067 [(module) = "framework"]; GraphicsStats graphics_stats = 10068; - RuntimeAppOpsAccess runtime_app_ops_access = 10069; + RuntimeAppOpAccess runtime_app_op_access = 10069 [(module) = "framework"]; IonHeapSize ion_heap_size = 10070 [(module) = "framework"]; } @@ -8132,15 +8132,15 @@ message GraphicsStats { /** * Message related to dangerous (runtime) app ops access */ -message RuntimeAppOpsAccess { +message RuntimeAppOpAccess { // Uid of the package accessing app op optional int32 uid = 1 [(is_uid) = true]; // Name of the package accessing app op optional string package_name = 2; - // operation id; maps to the OP_* constants in AppOpsManager.java - optional int32 op_id = 3; + // operation string id per OPSTR_ constants in AppOpsManager.java + optional string op = 3; // feature id; provided by developer when accessing related API, limited at 50 chars by API. // Features must be provided through manifest using tag available in R and above.