mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
208 lines
No EOL
8.4 KiB
XML
208 lines
No EOL
8.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="org.linphone">
|
|
|
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
|
|
|
|
<!-- Helps filling phone number and country code in assistant -->
|
|
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
|
|
<!-- Needed for auto start at boot and to ensure the service won't be killed by OS while in call -->
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
|
|
<!-- Needed for full screen intent in incoming call notifications -->
|
|
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
|
|
<!-- To vibrate while incoming call -->
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
<!-- Needed to shared downloaded files if setting is on -->
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
|
|
android:maxSdkVersion="28" />
|
|
|
|
<!-- Both permissions below are for contacts sync account -->
|
|
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
|
|
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
|
|
|
<!-- Needed for overlay -->
|
|
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
|
|
|
<application
|
|
android:name=".LinphoneApplication"
|
|
android:allowBackup="false"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="${appLabel}"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:extractNativeLibs="${extractNativeLibs}"
|
|
android:theme="@style/AppTheme"
|
|
android:allowNativeHeapPointerTagging="false">
|
|
|
|
<activity
|
|
android:name=".activities.launcher.LauncherActivity"
|
|
android:noHistory="true"
|
|
android:theme="@style/LauncherTheme">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.app.shortcuts"
|
|
android:resource="@xml/shortcuts" />
|
|
</activity>
|
|
|
|
<activity android:name=".activities.main.MainActivity"
|
|
android:launchMode="singleTask"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<nav-graph android:value="@navigation/main_nav_graph" />
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW_LOCUS" />
|
|
</intent-filter>
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="text/*" />
|
|
<data android:mimeType="image/*" />
|
|
<data android:mimeType="audio/*" />
|
|
<data android:mimeType="video/*" />
|
|
<data android:mimeType="application/*" />
|
|
</intent-filter>
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND_MULTIPLE" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="image/*" />
|
|
<data android:mimeType="audio/*" />
|
|
<data android:mimeType="video/*" />
|
|
<data android:mimeType="application/*" />
|
|
</intent-filter>
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="${linphone_address_mime_type}" />
|
|
</intent-filter>
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<action android:name="android.intent.action.DIAL" />
|
|
<action android:name="android.intent.action.CALL" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
<data android:scheme="tel" />
|
|
<data android:scheme="sip" />
|
|
<data android:scheme="sips" />
|
|
<data android:scheme="linphone" />
|
|
</intent-filter>
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND" />
|
|
<action android:name="android.intent.action.SENDTO" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:scheme="sms" />
|
|
<data android:scheme="smsto" />
|
|
<data android:scheme="mms" />
|
|
<data android:scheme="mmsto" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".activities.assistant.AssistantActivity"
|
|
android:windowSoftInputMode="adjustResize"/>
|
|
|
|
<activity android:name=".activities.call.CallActivity"
|
|
android:launchMode="singleTop"
|
|
android:resizeableActivity="true"
|
|
android:supportsPictureInPicture="true" />
|
|
|
|
<activity android:name=".activities.call.IncomingCallActivity"
|
|
android:launchMode="singleTop"
|
|
android:noHistory="true" />
|
|
|
|
<activity android:name=".activities.call.OutgoingCallActivity"
|
|
android:launchMode="singleTop"
|
|
android:noHistory="true" />
|
|
|
|
<activity
|
|
android:name=".activities.chat_bubble.ChatBubbleActivity"
|
|
android:allowEmbedded="true"
|
|
android:documentLaunchMode="always"
|
|
android:resizeableActivity="true" />
|
|
|
|
<!-- Services -->
|
|
|
|
<service
|
|
android:name=".core.CoreService"
|
|
android:foregroundServiceType="phoneCall|camera|microphone"
|
|
android:stopWithTask="false"
|
|
android:label="@string/app_name" />
|
|
|
|
<service android:name="org.linphone.core.tools.firebase.FirebaseMessaging"
|
|
android:exported="false">
|
|
<intent-filter>
|
|
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
|
</intent-filter>
|
|
</service>
|
|
|
|
<service
|
|
android:name=".contact.DummySyncService"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.content.SyncAdapter" />
|
|
</intent-filter>
|
|
|
|
<meta-data
|
|
android:name="android.content.SyncAdapter"
|
|
android:resource="@xml/sync_adapter" />
|
|
<meta-data
|
|
android:name="android.provider.CONTACTS_STRUCTURE"
|
|
android:resource="@xml/contacts" />
|
|
</service>
|
|
|
|
<service android:name=".contact.DummyAuthenticationService">
|
|
<intent-filter>
|
|
<action android:name="android.accounts.AccountAuthenticator" />
|
|
</intent-filter>
|
|
|
|
<meta-data
|
|
android:name="android.accounts.AccountAuthenticator"
|
|
android:resource="@xml/authenticator" />
|
|
</service>
|
|
|
|
<!-- Receivers -->
|
|
|
|
<receiver android:name=".core.CorePushReceiver">
|
|
<intent-filter>
|
|
<action android:name="org.linphone.core.action.PUSH_RECEIVED"/>
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<receiver
|
|
android:name=".notifications.NotificationBroadcastReceiver"
|
|
android:enabled="true"
|
|
android:exported="false" />
|
|
|
|
<receiver android:name=".core.BootReceiver">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<!-- Providers -->
|
|
|
|
<provider
|
|
android:name="androidx.core.content.FileProvider"
|
|
android:authorities="${linphone_file_provider}"
|
|
android:exported="false"
|
|
android:grantUriPermissions="true">
|
|
<meta-data
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
android:resource="@xml/provider_paths" />
|
|
</provider>
|
|
|
|
</application>
|
|
|
|
</manifest> |