Permissions and privacy protection

更新时间:
复制 MD 格式

This topic describes the permissions and privacy protection measures required for audio and video calls in Android.

Permission requests

Audio and video calls require the following permissions:

  • Network-related permissions.

  • Camera permission.

  • Microphone permission.

  • Permissions for basic sound settings, such as speakerphone settings and Bluetooth headset management.

  • The READ_PHONE_STATE permission to listen for system broadcasts of incoming and outgoing calls. For more information, see Privacy protection.

Important

Your application must notify the SDK of the result of the permission request. For more information, see the onRequestPermissionsResult interface.

Privacy protection

  • To protect user privacy, the SDK stops sending microphone and camera data when a user makes or receives a phone call. This action requires the READ_PHONE_STATE permission to listen for system broadcasts of incoming and outgoing calls. The video call feature is not affected if the user does not grant this permission. However, if a user makes or receives a phone call without this permission, the SDK cannot guarantee that it will stop sending camera and microphone data. This may compromise user privacy.

    Important

    If a phone call is connected, the SDK disconnects the audio and video streams. These streams do not automatically resume after the phone call ends.

  • When the Alipay application runs in the background, it turns off the camera and stops sending camera data. However, it does not stop sending microphone data. Participants can still communicate using their microphones.

    Important

    For non-Alipay scenarios, your application must notify the SDK of foreground and background switching events. For more information, see the onUserLeaveOrReturn interface.