<?xml version="1.0" encoding="utf-8"?>
<!--
 Copyright (C) 2025 The Android Open Source Project

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 -->

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

    <original-package android:name="com.android.eyedropper"/>
    <!-- Permission for service to add TYPE_SCREENSHOT overlay to WindowManager. -->
    <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" />
    <!-- Permission for screen capture API -->
    <uses-permission android:name="android.permission.READ_FRAME_BUFFER" />
    <!-- Permission for InputManager#getCursorPosition -->
    <uses-permission android:name="android.permission.INJECT_EVENTS" />
    <application
        android:label="@string/app_name"
        android:name=".EyeDropperApplication">
        <activity android:name=".MainActivity"
            android:excludeFromRecents="true"
            android:exported="true"
            android:theme="@style/Theme.Transparent">
            <intent-filter android:priority="1">
                <action android:name="android.intent.action.OPEN_EYE_DROPPER"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <activity
            android:name=".touchscreen.TouchscreenControllerActivity"
            android:exported="false"
            android:theme="@style/Theme.TouchscreenActivity"
            android:windowSoftInputMode="adjustResize"> <!-- To go edge-to-edge -->
        </activity>
        <service
            android:name=".desktop.DesktopControllerService"
            android:exported="false">
        </service>
    </application>
</manifest>
