<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.reicast.emulator">

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true" />

    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.BLUETOOTH" />

    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />
    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.microphone"
        android:required="false" />
    <uses-feature 
        android:name="android.hardware.gamepad" 
        android:required="false"/>
    <uses-feature
        android:name="android.software.leanback" 
        android:required="false" />

    <application
        android:name="com.reicast.emulator.Emulator"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
        android:roundIcon="@drawable/ic_launcher"
        android:banner="@drawable/ic_banner"
        android:logo="@drawable/ic_banner"
        android:hardwareAccelerated="true"
        android:isGame="true">

        <meta-data android:name="android.max_aspect" android:value="2.1" />
        <activity
            android:name="com.reicast.emulator.GL2JNIActivity"
            android:configChanges="orientation|navigation|screenSize|screenLayout|uiMode|keyboard|keyboardHidden"
            android:screenOrientation="sensorLandscape">
        </activity>
        <activity
            android:name="com.reicast.emulator.NativeGLActivity"
            android:configChanges="orientation|navigation|screenSize|screenLayout|uiMode|keyboard|keyboardHidden"
            android:screenOrientation="sensorLandscape"
            android:exported="true"/>
        <activity-alias
            android:name="com.reicast.emulator.MainActivity"
            android:targetActivity="com.reicast.emulator.NativeGLActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="tv.ouya.intent.category.GAME" />
                <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
            </intent-filter>
        </activity-alias>
        <provider
            android:name="android.support.v4.content.FileProvider"
            android:authorities="${applicationId}.provider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/provider_paths"/>
        </provider>

    </application>

</manifest>
