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

    <uses-sdk
        android:minSdkVersion="16"
        android:targetSdkVersion="26" />

    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

    <application
        android:allowBackup="true"
        android:label="@string/app_name" >
        <activity
            android:name="com.callerid.DialActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:excludeFromRecents="true" />
        <activity
            android:name="com.callerid.InCall"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:excludeFromRecents="true"
            android:launchMode="singleInstance" >
            <intent-filter>
                <action android:name="android.intent.action.ANSWER" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <receiver
            android:name="com.callerid.CallReceiver"
            android:enabled="true"
            android:exported="true"
            android:stopWithTask="false" >
            <intent-filter>
                <action android:name="android.intent.action.PHONE_STATE" />
                <!-- <action android:name="android.intent.action.NEW_OUTGOING_CALL" /> -->
            </intent-filter>
        </receiver>
        <receiver android:name="com.callerid.BootCompletedIntentReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

        <service
            android:name="com.callerid.NotificationReceiverService"
            android:enabled="true"
            android:exported="true"
            android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" >
            <intent-filter>
                <action android:name="android.service.notification.NotificationListenerService" />
            </intent-filter>
        </service>

        <receiver android:name="com.callerid.InCallManager" >
            <intent-filter>
                <action android:name="ANSWER" />
                <action android:name="DISMISS" />
            </intent-filter>
        </receiver>
        <receiver android:name="com.callerid.UpgradeReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_REPLACED" />

                <data android:scheme="package" />
            </intent-filter>
        </receiver>
    </application>

</manifest>