Language

MediaCodecSecurityModel Enum

Definition

Identifies a codec implementation's reported execution-security model.

public enum MediaCodecSecurityModel
type MediaCodecSecurityModel = 
Inheritance
MediaCodecSecurityModel

Fields

Name Value Description
Sandboxed 0

In this model the codec is running in a sandboxed process. Even if a malicious content was fed to the codecs in this model, the impact will be contained in the sandboxed process.

Android reference for android.media.MediaCodecInfo.SECURITY_MODEL_SANDBOXED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

MemorySafe 1

In this model the codec is not running in a sandboxed process, but written in a memory-safe way. It typically means that the software implementation of the codec is written in a memory-safe language such as Rust.

Android reference for android.media.MediaCodecInfo.SECURITY_MODEL_MEMORY_SAFE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

The models distinguish execution in a sandboxed process from an implementation written in a memory-safe way outside that process sandbox. These values are model identifiers, not the bitmask values used by a media-format security request.

Applies to