Android.App.SdkSandbox Namespace

Provides APIs for loading SDKs in a separate sandbox process and communicating with them.

Classes

Name Description
AppOwnedSdkSandboxInterface

Represents a channel for an SDK in the sandbox process to interact with the app.

AppOwnedSdkSandboxInterface.InterfaceConsts

Exposes the parcelable interface constants inherited by AppOwnedSdkSandboxInterface.

LoadSdkException

Exception thrown by SdkSandboxManager#loadSdk

LoadSdkException.InterfaceConsts

Exposes the parcelable interface constants inherited by LoadSdkException.

RequestSurfacePackageException

Exception thrown by SdkSandboxManager#requestSurfacePackage

SandboxedSdk

Represents an SDK loaded in the sandbox process.

SandboxedSdk.InterfaceConsts

Exposes the parcelable interface constants inherited by SandboxedSdk.

SandboxedSdkProvider

Encapsulates API which SDK sandbox can use to interact with SDKs loaded into it.

SdkSandboxManager

Provides APIs to load android.content.pm.SharedLibraryInfo#TYPE_SDK_PACKAGE SDKs into the SDK sandbox process, and then interact with them.

Interfaces

Name Description
SdkSandboxManager.ISdkSandboxProcessDeathCallback

A callback for tracking events SDK sandbox death.

Enums

Name Description
LoadSdkErrorCode

Identifies the reason that an SDK load request failed.

RequestSurfacePackageErrorCode

Identifies a failure to obtain a surface package from a sandboxed SDK.

SandboxState

Identifies whether the SDK sandbox is disabled or enabled with process isolation.

Remarks

Applications use SdkSandboxManager to load and unload SDKs, receive sandbox process-death callbacks, and register application-owned binder interfaces. A SandboxedSdk gives access to a loaded SDK's binder. SDK implementations derive from SandboxedSdkProvider to handle loading and resource cleanup.

See the Android SDK sandbox package reference for the Android APIs and their availability.