Audit logging for Android Device Streaming

This document describes audit logging for Android Device Streaming. Google Cloud services generate audit logs that record administrative and access activities within your Google Cloud resources. To learn more about Cloud Audit Logs, refer to the following documentation pages:

Service name

Android Device Streaming audit logs use the service name testing.googleapis.com. Filter for this service:

    protoPayload.serviceName="testing.googleapis.com"
  

Methods by permission type

Each IAM permission has a type property, whose value is an enum that can be one of four values: ADMIN_READ, ADMIN_WRITE, DATA_READ, or DATA_WRITE. When you call a method, Android Device Streaming generates an audit log whose category is dependent on the type property of the permission required to perform the method. Methods that require an IAM permission with the type property value of DATA_READ, DATA_WRITE, or ADMIN_READ generate Data Access audit logs. Methods that require an IAM permission with the type property value of ADMIN_WRITE generate Admin Activity audit logs.

Permission type Methods
ADMIN_READ google.devtools.testing.v1.DirectAccessService.GetDeviceSession
google.devtools.testing.v1.DirectAccessService.ListDeviceSessions
ADMIN_WRITE google.devtools.testing.v1.DirectAccessService.CancelDeviceSession
google.devtools.testing.v1.DirectAccessService.CreateDeviceSession
google.devtools.testing.v1.DirectAccessService.UpdateDeviceSession
DATA_WRITE google.devtools.testing.v1.DirectAccessService.AdbConnect

API interface audit logs

For information about how and which permissions are evaluated for each method, see the Cloud Identity and Access Management documentation for Android Device Streaming.

google.devtools.testing.v1.DirectAccessService

The following section contains details about audit logs associated with methods belonging to google.devtools.testing.v1.DirectAccessService.

AdbConnect

  • Method: google.devtools.testing.v1.DirectAccessService.AdbConnect
  • Audit log type: Data access
  • Permissions:
    • cloudtestservice.devicesession.use - DATA_WRITE
  • Method is a long-running or streaming operation: Streaming RPC
  • Filter for this method: protoPayload.methodName="google.devtools.testing.v1.DirectAccessService.AdbConnect"

CancelDeviceSession

  • Method: google.devtools.testing.v1.DirectAccessService.CancelDeviceSession
  • Audit log type: Admin activity
  • Permissions:
    • cloudtestservice.devicesession.cancel - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.devtools.testing.v1.DirectAccessService.CancelDeviceSession"

CreateDeviceSession

  • Method: google.devtools.testing.v1.DirectAccessService.CreateDeviceSession
  • Audit log type: Admin activity
  • Permissions:
    • cloudtestservice.devicesession.create - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.devtools.testing.v1.DirectAccessService.CreateDeviceSession"

GetDeviceSession

  • Method: google.devtools.testing.v1.DirectAccessService.GetDeviceSession
  • Audit log type: Data access
  • Permissions:
    • cloudtestservice.devicesession.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.devtools.testing.v1.DirectAccessService.GetDeviceSession"

ListDeviceSessions

  • Method: google.devtools.testing.v1.DirectAccessService.ListDeviceSessions
  • Audit log type: Data access
  • Permissions:
    • cloudtestservice.devicesession.list - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.devtools.testing.v1.DirectAccessService.ListDeviceSessions"

UpdateDeviceSession

  • Method: google.devtools.testing.v1.DirectAccessService.UpdateDeviceSession
  • Audit log type: Admin activity
  • Permissions:
    • cloudtestservice.devicesession.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.devtools.testing.v1.DirectAccessService.UpdateDeviceSession"