<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.termux.x11"
    android:installLocation="internalOnly"
    android:sharedUserId="com.termux">

    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"
        tools:ignore="ProtectedPermissions" />

    <application
        android:allowBackup="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="GoogleAppIndexingWarning"
        android:debuggable="true">
        <service
            android:name=".LorieService"
            android:enabled="true"
            android:exported="false"/>
        <service
            android:name=".LorieTestService"
            android:enabled="true"
            android:exported="true"
            android:process="com.termux.x11.separated"/>
        <activity android:name=".MainActivity"
            android:theme="@style/NoActionBar"
            android:launchMode="singleInstance"
            android:supportsPictureInPicture="true"
            android:configChanges="fontScale|orientation|screenSize|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|screenLayout|touchscreen|uiMode|smallestScreenSize|density"
            android:resizeableActivity="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
	     <intent-filter>
        	<category android:name="android.intent.category.SECONDARY_HOME" />
    	    </intent-filter>
        </activity>
        <activity
            android:theme="@style/Theme.AppCompat.DayNight"
            android:excludeFromRecents="true"
            android:name=".LoriePreferences" 
            android:supportsPictureInPicture="false"
            android:resizeableActivity="true">
        </activity>
	<meta-data android:name="com.samsung.android.multidisplay.keep_process_alive" android:value="true"/>
	<meta-data android:name="android.allow_multiple_resumed_activities" android:value="true" />
    </application>

</manifest>
