<?xml version="1.0" encoding="utf-8"?>
<!--
 * Copyright (C) 2009 The Sipdroid Open Source Project
 * 
 * This file is part of Sipdroid (http://www.sipdroid.org)
 * 
 * Sipdroid is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This source code is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this source code; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
/////////////////////////////////////////////////////////////////////
// these are the main definitions of Sipdroid
// for modifying them additional terms according to section 7, GPL apply
// see ADDITIONAL_TERMS.txt
/////////////////////////////////////////////////////////////////////
 -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
	android:versionName="6.5"
    android:versionCode="146"
    android:installLocation="auto">
	<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="33"/>
	<supports-screens
          android:normalScreens="true"
          android:smallScreens="true"
          android:largeScreens="true"
          android:anyDensity="true" />
	<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
	<uses-feature android:name="android.hardware.telephony" android:required="false"/>
	<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
	<uses-feature android:name="android.hardware.wifi" android:required="false"/>
	<application android:icon="@drawable/icon64" android:label="@string/app_name" android:theme="@android:style/Theme.Holo">
        <activity android:name="org.sipdroid.sipua.ui.Sipdroid" android:label="@string/app_name" android:launchMode="singleInstance"
        	android:exported="true" android:configChanges="orientation|keyboardHidden" android:showWhenLocked="true" android:showOnLockScreen="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="org.sipdroid.sipua.ui.PSTN" android:label="@string/pstn_name"
			android:exported="true" android:icon="@drawable/ic_launcher_phone">
            <intent-filter>
                <action android:name="android.intent.action.SENDTO" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="sms" />
                <data android:scheme="smsto" />
            </intent-filter>
        </activity>
        <activity android:name="org.sipdroid.sipua.ui.SIP" android:label="@string/app_name" android:exported="true" >
            <intent-filter>
                <action android:name="android.intent.action.SENDTO" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="sms" />
                <data android:scheme="smsto" />
            </intent-filter>
        </activity>
        <activity android:name="org.sipdroid.sipua.ui.AutoAnswer" android:label="@string/app_name"/>
        <activity android:name="org.sipdroid.sipua.ui.ChangeAccount" android:label="@string/app_name"/>
        <activity android:name="org.sipdroid.sipua.ui.SIPUri" android:label="@string/app_name"
        		android:theme="@android:style/Theme.Dialog" android:exported="true" >
            <intent-filter>
                <action android:name="android.intent.action.CALL" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="sip" />
                <data android:scheme="sipdroid" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SENDTO" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="imto" />
                <data android:scheme="sip" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.CALL_PRIVILEGED" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="sip" />
            </intent-filter>
            <intent-filter>
			    <action android:name="android.intent.action.VIEW" />
			    <category android:name="android.intent.category.DEFAULT" />
			    <data android:mimeType="vnd.android.cursor.item/name" />			    
			</intent-filter>
        </activity>
        <activity android:name="org.sipdroid.sipua.ui.Activity2" android:label="@string/app_name"
        	android:excludeFromRecents="true" android:taskAffinity=""/>
        <activity android:name="org.sipdroid.sipua.ui.Settings" android:label="@string/app_name"
        	android:configChanges="orientation|keyboardHidden">
        	android:excludeFromRecents="true" android:taskAffinity="">
        </activity>
        <activity
	   android:name="org.sipdroid.codecs.Codecs$CodecSettings"
	   android:label="@string/app_name" >
        </activity>
        <activity android:name="org.sipdroid.sipua.ui.InCallScreen" android:label="@string/app_name" 
	        android:excludeFromRecents="true" android:taskAffinity=""
	        android:launchMode="singleInstance" android:showWhenLocked="true" android:showOnLockScreen="true">
        </activity>
	    <receiver android:name=".ui.OneShotAlarm" android:label="@string/app_name"/>
	    <receiver android:name=".ui.OneShotAlarm2" android:label="@string/app_name"/>
	    <receiver android:name=".ui.LoopAlarm" android:label="@string/app_name"/>
	    <receiver android:name=".ui.OwnWifi" android:label="@string/app_name"/>
	    <receiver android:name=".ui.Caller" android:label="@string/app_name" android:exported="true" >
	        <intent-filter android:priority="-1">
	        	<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
	        </intent-filter>
	    </receiver>
        <receiver android:name=".ui.Receiver" android:enabled="true" android:label="@string/app_name" android:exported="true" >
	      	<intent-filter>
	        	<action android:name="android.intent.action.BOOT_COMPLETED" />
	        	<action android:name="android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE" />
	        	<action android:name="android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE" />
	      	</intent-filter>
	      	<intent-filter>
	        	<action android:name="android.intent.action.PACKAGE_REPLACED" />
	        	<data android:scheme="package" />
	        	<data android:path="org.sipdroid.sipua" />
	      	</intent-filter>
	    </receiver>
        <receiver android:name="org.sipdroid.sipua.ui.PhoneStart" android:exported="true" >
            <intent-filter>
                <action android:name="org.sipdroid.START_SIPDROID" />
                <action android:name="org.sipdroid.STOP_SIPDROID" />
            </intent-filter>
        </receiver>
       	<service android:name=".ui.RegisterService" android:label="@string/app_name"/>
    </application>
	<uses-permission android:name="android.permission.INTERNET"></uses-permission>
	<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission>
	<uses-permission android:name="android.permission.RECORD_AUDIO"></uses-permission>
	<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"></uses-permission>
	<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
	<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
	<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"></uses-permission>
	<uses-permission android:name="android.permission.READ_CONTACTS"></uses-permission>
	<uses-permission android:name="android.permission.WRITE_CONTACTS"></uses-permission>
	<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
	<uses-permission android:name="android.permission.WAKE_LOCK"></uses-permission>
	<uses-permission android:name="android.permission.DISABLE_KEYGUARD"></uses-permission>
	<uses-permission android:name="android.permission.VIBRATE" ></uses-permission>
	<uses-permission android:name="android.permission.BLUETOOTH" ></uses-permission>
	<uses-permission android:name="android.permission.GET_ACCOUNTS" ></uses-permission>
	<uses-permission android:name="android.permission.BROADCAST_STICKY" ></uses-permission>
	<uses-permission android:name="android.permission.READ_CALL_LOG"></uses-permission>
	<uses-permission android:name="android.permission.WRITE_CALL_LOG"></uses-permission>
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
	<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"></uses-permission>
	<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"></uses-permission>
	<uses-permission android:name="android.permission.FOREGROUND_SERVICE"></uses-permission>
	<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT"></uses-permission>
	<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"></uses-permission>
	<uses-permission android:name="android.permission.USE_EXACT_ALARM"></uses-permission>
	<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"></uses-permission>
	<uses-permission android:name="android.permission.POST_NOTIFICATIONS"></uses-permission>
<!-- 
	<permission android:name="org.sipdroid.sipua.permission.C2D_MESSAGE" android:protectionLevel="signature" />
	<uses-permission android:name="org.sipdroid.sipua.permission.C2D_MESSAGE" />
	<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
	       -->
</manifest> 
