diff options
| author | 2019-06-06 22:38:33 +0100 | |
|---|---|---|
| committer | 2019-06-18 11:11:33 +0100 | |
| commit | bdf620b5bdcc838321e69af0d9c923fa5749d2e4 (patch) | |
| tree | 975c65f654440c12437a2d026a5c80ba3f34d2c5 | |
| parent | 9550c185f93118f0d9941f2a285542b18de834bb (diff) | |
Adding atom for logging GrantPermissionsActivity buttons presented and pressed.
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 213
Bug:133401502
Bug:134581123
Change-Id: I4c74d590266f89b192605be6f94d038bc2e1bd5a
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 93e8b9de846b..d457ff9f212f 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -303,10 +303,12 @@ message Atom { ContentCaptureSessionEvents content_capture_session_events = 208; ContentCaptureFlushed content_capture_flushed = 209; LocationManagerApiUsageReported location_manager_api_usage_reported = 210; - ReviewPermissionsFragmentResultReported review_permissions_fragment_result_reported - = 211 [(log_from_module) = "permissioncontroller"]; + ReviewPermissionsFragmentResultReported review_permissions_fragment_result_reported = + 211 [(log_from_module) = "permissioncontroller"]; RuntimePermissionsUpgradeResult runtime_permissions_upgrade_result = 212 [(log_from_module) = "permissioncontroller"]; + GrantPermissionsActivityButtonActions grant_permissions_activity_button_actions = + 213 [(log_from_module) = "permissioncontroller"]; } // Pulled events will start at field 10000. @@ -6583,4 +6585,25 @@ message RuntimePermissionsUpgradeResult { // Name of package granted permission optional string package_name = 3; -}
\ No newline at end of file +} + +/** +* Information about a buttons presented in GrantPermissionsActivty and choice made by user +*/ +message GrantPermissionsActivityButtonActions { + // Permission granted as result of upgrade + optional string permission_group_name = 1; + + // UID of package granted permission + optional int32 uid = 2 [(is_uid) = true]; + + // Name of package requesting permission + optional string package_name = 3; + + // Buttons presented in the dialog - bit flags, bit numbers are in accordance with + // LABEL_ constants in GrantPermissionActivity.java + optional int32 buttons_presented = 4; + + // Button clicked by user - same as bit flags in buttons_presented with only single bit set + optional int32 button_clicked = 5; +} |