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

    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <uses-permission android:name="android.permission.MANAGE_OWN_CALLS" />
    <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />

    <application>
        <service
            android:name=".call.TelecomCallService"
            android:exported="false"
            tools:targetApi="o" />

        <activity
            android:name=".call.TelecomCallActivity"
            android:exported="true"
            android:launchMode="singleInstance"
            android:showOnLockScreen="true"
            android:showWhenLocked="true"
            android:turnScreenOn="true"
            tools:targetApi="o">

            <!-- Required intent to handle for call logging -->
            <intent-filter>
                <action android:name="android.telecom.action.CALL_BACK" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <receiver
            android:name=".call.TelecomCallBroadcast"
            android:exported="false"
            tools:targetApi="o" />
    </application>

</manifest>
