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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user