# PlayerSettings.Android

> Android specific Player settings.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public class PlayerSettings.Android
```

## Remarks

Use these settings to configure how Unity builds and displays your final application for the Android platform.

## Examples

```csharp
using UnityEngine;
using UnityEditor;

public class AndroidPlayerSettingsSamples : MonoBehaviour
{
    [MenuItem("Tools/Set Android Player settings")]
    public static void SetAndroidPlayerSettings()
    {
        // Set autoRotation behaviour value to user or sensor
        PlayerSettings.Android.autoRotationBehavior = AndroidAutoRotationBehavior.User;
        // Log the current value of autoRotationBehavior
        Debug.Log($"autoRotationBehavior: {PlayerSettings.Android.autoRotationBehavior}");

        // Set min aspect ratio to 2.0f
        PlayerSettings.Android.minAspectRatio = 2.0f;
        // Log the minimum aspect ratio
        Debug.Log($"minAspectRatio: {PlayerSettings.Android.minAspectRatio}");

        // Set minimum SDK version
        PlayerSettings.Android.minSdkVersion = AndroidSdkVersions.AndroidApiLevel30;
        // Log the minimum SDK version
        Debug.Log($"minSdkVersion: {PlayerSettings.Android.minSdkVersion}");

        // Set targetSdkversion
        PlayerSettings.Android.targetSdkVersion = AndroidSdkVersions.AndroidApiLevel30;
        // Log the targetSdkVersion setting
        Debug.Log($"targetSdkVersion: {PlayerSettings.Android.targetSdkVersion}");

        // Set textureCompressionFormats to ETC2 and ASTC texture formats
        PlayerSettings.Android.textureCompressionFormats = new TextureCompressionFormat[]
        {
            TextureCompressionFormat.ETC2,
            TextureCompressionFormat.ASTC
        };
        // Log each configured texture compression format
        foreach (TextureCompressionFormat format in PlayerSettings.Android.textureCompressionFormats)
        {
            Debug.Log($"Configured Texture Compression Format: {format}");
        }
    }
}
```

## Static Properties

| Property                                                                                                                                       | Description                                                                                                                                                                                                                                                                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [androidTVCompatibility](/engine/6000.5/script-reference/unityeditor/playersettings/android/androidtvcompatibility.md)                         | Provide a build that is Android TV compatible.                                                                                                                                                                                                                                         |
| [androidVulkanDeviceFilterListAsset](/engine/6000.5/script-reference/unityeditor/playersettings/android/androidvulkandevicefilterlistasset.md) | Specifies an [VulkanDeviceFilterLists](/engine/6000.5/script-reference/unityengine/vulkandevicefilterlists.md) asset which provides filtering criteria for allowing or denying Android devices from using Vulkan API and selecting Graphics Jobs mode when running Unity applications. |
| [appCategory](/engine/6000.5/script-reference/unityeditor/playersettings/android/appcategory.md)                                               | Specify the category for your application that best represents its primary functionality.                                                                                                                                                                                              |
| [applicationEntry](/engine/6000.5/script-reference/unityeditor/playersettings/android/applicationentry.md)                                     | Application entry classes to include.                                                                                                                                                                                                                                                  |
| [ARCoreEnabled](/engine/6000.5/script-reference/unityeditor/playersettings/android/arcoreenabled.md)                                           | Enable support for Google ARCore on supported devices.                                                                                                                                                                                                                                 |
| [autoRotationBehavior](/engine/6000.5/script-reference/unityeditor/playersettings/android/autorotationbehavior.md)                             | Indicate whether your application window rotates based on device orientation settings (User) or device orientation sensor (Sensor), when default orientation is Auto Rotation.                                                                                                         |
| [blitType](/engine/6000.5/script-reference/unityeditor/playersettings/android/blittype.md)                                                     | Choose how content is drawn to the screen.                                                                                                                                                                                                                                             |
| [buildApkPerCpuArchitecture](/engine/6000.5/script-reference/unityeditor/playersettings/android/buildapkpercpuarchitecture.md)                 | Create a separate APK for each CPU architecture.                                                                                                                                                                                                                                       |
| [bundleVersionCode](/engine/6000.5/script-reference/unityeditor/playersettings/android/bundleversioncode.md)                                   | Android bundle version code.                                                                                                                                                                                                                                                           |
| [defaultWindowHeight](/engine/6000.5/script-reference/unityeditor/playersettings/android/defaultwindowheight.md)                               | The default vertical size of the Android Player window in pixels.                                                                                                                                                                                                                      |
| [defaultWindowWidth](/engine/6000.5/script-reference/unityeditor/playersettings/android/defaultwindowwidth.md)                                 | The default horizontal size of the Android Player window in pixels.                                                                                                                                                                                                                    |
| [disableDepthAndStencilBuffers](/engine/6000.5/script-reference/unityeditor/playersettings/android/disabledepthandstencilbuffers.md)           | Disable Depth and Stencil Buffers.                                                                                                                                                                                                                                                     |
| [displayOptions](/engine/6000.5/script-reference/unityeditor/playersettings/android/displayoptions.md)                                         | Defines Android display settings that determine how your application renders on the Android devices at runtime.                                                                                                                                                                        |
| [enableArmv9SecurityFeatures](/engine/6000.5/script-reference/unityeditor/playersettings/android/enablearmv9securityfeatures.md)               | Enable Armv9 security features, including Pointer Authentication (PAuth, PAC) and Branch Target Identification (BTI) for Arm64 builds.                                                                                                                                                 |
| [filterTouchesWhenObscured](/engine/6000.5/script-reference/unityeditor/playersettings/android/filtertoucheswhenobscured.md)                   | Discards touch inputs received when another visible window is covering the Unity application.                                                                                                                                                                                          |
| [forceInternetPermission](/engine/6000.5/script-reference/unityeditor/playersettings/android/forceinternetpermission.md)                       | Force internet permission flag.                                                                                                                                                                                                                                                        |
| [forceSDCardPermission](/engine/6000.5/script-reference/unityeditor/playersettings/android/forcesdcardpermission.md)                           | Force SD card permission.                                                                                                                                                                                                                                                              |
| [fullscreenMode](/engine/6000.5/script-reference/unityeditor/playersettings/android/fullscreenmode.md)                                         | The display mode for Android Player builds of your application.                                                                                                                                                                                                                        |
| [keyaliasName](/engine/6000.5/script-reference/unityeditor/playersettings/android/keyaliasname.md)                                             | Android key alias name.                                                                                                                                                                                                                                                                |
| [keyaliasPass](/engine/6000.5/script-reference/unityeditor/playersettings/android/keyaliaspass.md)                                             | Password for the key used for signing an Android application.                                                                                                                                                                                                                          |
| [keystoreName](/engine/6000.5/script-reference/unityeditor/playersettings/android/keystorename.md)                                             | Contains the path to the Android keystore file.                                                                                                                                                                                                                                        |
| [keystorePass](/engine/6000.5/script-reference/unityeditor/playersettings/android/keystorepass.md)                                             | Android keystore password.                                                                                                                                                                                                                                                             |
| [maxAspectRatio](/engine/6000.5/script-reference/unityeditor/playersettings/android/maxaspectratio.md)                                         | Maximum aspect ratio supported by the application.                                                                                                                                                                                                                                     |
| [minAspectRatio](/engine/6000.5/script-reference/unityeditor/playersettings/android/minaspectratio.md)                                         | Minimum aspect ratio which is supported by the application.                                                                                                                                                                                                                            |
| [minifyDebug](/engine/6000.5/script-reference/unityeditor/playersettings/android/minifydebug.md)                                               | Enable to minify debug build.                                                                                                                                                                                                                                                          |
| [minifyRelease](/engine/6000.5/script-reference/unityeditor/playersettings/android/minifyrelease.md)                                           | Enable to minify release build.                                                                                                                                                                                                                                                        |
| [minimumWindowHeight](/engine/6000.5/script-reference/unityeditor/playersettings/android/minimumwindowheight.md)                               | The minimum vertical size of the Android Player window in pixels.                                                                                                                                                                                                                      |
| [minimumWindowWidth](/engine/6000.5/script-reference/unityeditor/playersettings/android/minimumwindowwidth.md)                                 | The minimum horizontal size of the Android Player window in pixels.                                                                                                                                                                                                                    |
| [minSdkVersion](/engine/6000.5/script-reference/unityeditor/playersettings/android/minsdkversion.md)                                           | The minimum API level required for your application to run.                                                                                                                                                                                                                            |
| [minSupportedSdkVersion](/engine/6000.5/script-reference/unityeditor/playersettings/android/minsupportedsdkversion.md)                         | Minimum supported Android API level.                                                                                                                                                                                                                                                   |
| [optimizedFramePacing](/engine/6000.5/script-reference/unityeditor/playersettings/android/optimizedframepacing.md)                             | Enable optimized frame pacing.                                                                                                                                                                                                                                                         |
| [predictiveBackSupport](/engine/6000.5/script-reference/unityeditor/playersettings/android/predictivebacksupport.md)                           | Enable to use Android's [OnBackInvokedCallback](https://developer.android.com/guide/navigation/predictive-back-gesture) for handling back events on Android 13 and above.                                                                                                              |
| [preferredDataLocation](/engine/6000.5/script-reference/unityeditor/playersettings/android/preferreddatalocation.md)                           | Preferred data location.                                                                                                                                                                                                                                                               |
| [preferredInstallLocation](/engine/6000.5/script-reference/unityeditor/playersettings/android/preferredinstalllocation.md)                     | Preferred application install location.                                                                                                                                                                                                                                                |
| [renderOutsideSafeArea](/engine/6000.5/script-reference/unityeditor/playersettings/android/renderoutsidesafearea.md)                           | Extends rendering layout into display cutout area, utilizing all of the available screen space.                                                                                                                                                                                        |
| [reportGooglePlayAppDependencies](/engine/6000.5/script-reference/unityeditor/playersettings/android/reportgoogleplayappdependencies.md)       | Indicates whether to track application dependencies for Google Play Store verification.                                                                                                                                                                                                |
| [requestedVisibleInsets](/engine/6000.5/script-reference/unityeditor/playersettings/android/requestedvisibleinsets.md)                         | Requests which insets should appear on screen when the application starts.                                                                                                                                                                                                             |
| [resizeableActivity](/engine/6000.5/script-reference/unityeditor/playersettings/android/resizeableactivity.md)                                 | Indicates whether your Android application is resizable.                                                                                                                                                                                                                               |
| [runWithoutFocus](/engine/6000.5/script-reference/unityeditor/playersettings/android/runwithoutfocus.md)                                       | Allows your application to continue to run even when it’s not in focus.                                                                                                                                                                                                                |
| [showActivityIndicatorOnLoading](/engine/6000.5/script-reference/unityeditor/playersettings/android/showactivityindicatoronloading.md)         | Application should show ActivityIndicator when loading.                                                                                                                                                                                                                                |
| [splashScreenScale](/engine/6000.5/script-reference/unityeditor/playersettings/android/splashscreenscale.md)                                   | Android splash screen scale mode.                                                                                                                                                                                                                                                      |
| [splitApplicationBinary](/engine/6000.5/script-reference/unityeditor/playersettings/android/splitapplicationbinary.md)                         | Split application binary into modules.                                                                                                                                                                                                                                                 |
| [systemBarsBehavior](/engine/6000.5/script-reference/unityeditor/playersettings/android/systembarsbehavior.md)                                 | Defines the behavior of system bars in your application.                                                                                                                                                                                                                               |
| [targetArchitectures](/engine/6000.5/script-reference/unityeditor/playersettings/android/targetarchitectures.md)                               | A set of CPU architectures for the Android build target.                                                                                                                                                                                                                               |
| [targetSdkVersion](/engine/6000.5/script-reference/unityeditor/playersettings/android/targetsdkversion.md)                                     | The target API level of your application.                                                                                                                                                                                                                                              |
| [textureCompressionFormats](/engine/6000.5/script-reference/unityeditor/playersettings/android/texturecompressionformats.md)                   | Target texture compression formats.                                                                                                                                                                                                                                                    |
| [useCustomKeystore](/engine/6000.5/script-reference/unityeditor/playersettings/android/usecustomkeystore.md)                                   | Enable application signing with a custom keystore.                                                                                                                                                                                                                                     |
