diff options
| author | 2020-01-28 16:50:43 +0000 | |
|---|---|---|
| committer | 2020-01-29 12:04:15 +0000 | |
| commit | 126da0cad543b4d75162c0300fc526269bd5e5cf (patch) | |
| tree | ae3e9f9cb051c9176934700d1ce5cb1940e02ff2 | |
| parent | 4e09642d50a7a67ecaafd6937ef2b13a8f9f87a1 (diff) | |
Extend AppPermissionFragmentActionReported atom.
Add information about Permission flags state after permissions change and log specific button pressed during interaction.
Test: ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 215
Change-Id: I4067af6f7472a23cff48820c527f5c166e5fb65b
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 5ac00d05f022..36c60f8cfaa5 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -7420,6 +7420,28 @@ message AppPermissionFragmentActionReported { // The result of the permission grant optional bool permission_granted = 6; + + // State of Permission Flags after grant as per android.content.pm.PermissionFlags + optional int32 permission_flags = 7; + + enum Button { + UNDEFINED = 0; + // Allow button + ALLOW = 1; + // Deny button + DENY = 2; + // Ask every time button + ASK_EVERY_TIME = 3; + // Allow all the time button + ALLOW_ALWAYS = 4; + // Allow only while using the app button + ALLOW_FOREGROUND = 5; + // Same is Deny button but shown in while in use dialog + DENY_FOREGROUND = 6; + } + + // Button pressed in the dialog + optional Button button_pressed = 8; } /** |