Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 1 | <!-- |
| 2 | ~ Copyright (C) 2016 The Android Open Source Project |
| 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License |
| 15 | --> |
| 16 | |
| 17 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 18 | package="com.android.incallui"> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 19 | |
| 20 | <uses-sdk |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 21 | android:minSdkVersion="23" |
| 22 | android:targetSdkVersion="26"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 23 | |
| 24 | <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE"/> |
| 25 | <!-- We use this to disable the status bar buttons of home, back and recent |
| 26 | during an incoming call. By doing so this allows us to not show the user |
| 27 | is viewing the activity in full screen alert, on a fresh system/factory |
| 28 | reset state of the app. --> |
| 29 | <uses-permission android:name="android.permission.STATUS_BAR"/> |
| 30 | <uses-permission android:name="android.permission.CAMERA"/> |
| 31 | <!-- Warning: setting the required boolean to true would prevent installation of Dialer on |
| 32 | devices which do not support a camera. --> |
| 33 | <uses-feature |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 34 | android:name="android.hardware.camera.any" |
| 35 | android:required="false"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 36 | |
| 37 | <!-- Testing location --> |
| 38 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> |
| 39 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 40 | <!-- Set android:taskAffinity="com.android.incallui" for all activities to ensure proper |
| 41 | navigation. Otherwise system could bring up DialtactsActivity instead, e.g. when user unmerge a |
| 42 | call. |
| 43 | Set taskAffinity for application is not working because it will be merged and the result is |
| 44 | that all activities here still have same taskAffinity as activities under dialer. --> |
| 45 | <application> |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 46 | <meta-data |
| 47 | android:name="android.telephony.hide_voicemail_settings_menu" |
| 48 | android:value="true"/> |
| 49 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 50 | <activity |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 51 | android:directBootAware="true" |
| 52 | android:excludeFromRecents="true" |
| 53 | android:exported="false" |
| 54 | android:label="@string/phoneAppLabel" |
| 55 | android:launchMode="singleInstance" |
| 56 | android:name="com.android.incallui.InCallActivity" |
| 57 | android:resizeableActivity="true" |
| 58 | android:screenOrientation="nosensor" |
| 59 | android:taskAffinity="com.android.incallui" |
| 60 | android:theme="@style/Theme.InCallScreen"> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 61 | </activity> |
| 62 | |
| 63 | <activity |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 64 | android:directBootAware="true" |
| 65 | android:excludeFromRecents="true" |
| 66 | android:exported="false" |
| 67 | android:label="@string/manageConferenceLabel" |
| 68 | android:launchMode="singleTask" |
| 69 | android:name="com.android.incallui.ManageConferenceActivity" |
| 70 | android:noHistory="true" |
| 71 | android:resizeableActivity="true" |
| 72 | android:taskAffinity="com.android.incallui" |
| 73 | android:theme="@style/Theme.InCallScreen.ManageConference"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 74 | |
| 75 | <service |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 76 | android:directBootAware="true" |
| 77 | android:exported="true" |
| 78 | android:name="com.android.incallui.InCallServiceImpl" |
| 79 | android:permission="android.permission.BIND_INCALL_SERVICE"> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 80 | <meta-data |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 81 | android:name="android.telecom.IN_CALL_SERVICE_UI" |
| 82 | android:value="true"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 83 | <meta-data |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 84 | android:name="android.telecom.IN_CALL_SERVICE_RINGING" |
| 85 | android:value="false"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 86 | <meta-data |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 87 | android:name="android.telecom.INCLUDE_EXTERNAL_CALLS" |
| 88 | android:value="true"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 89 | |
| 90 | <intent-filter> |
| 91 | <action android:name="android.telecom.InCallService"/> |
| 92 | </intent-filter> |
| 93 | </service> |
| 94 | |
| 95 | <!-- |
| 96 | Comments for attributes in SpamNotificationActivity: |
| 97 | taskAffinity="" -> Open the dialog without opening the dialer app behind it |
| 98 | noHistory="true" -> Navigating away finishes activity |
| 99 | excludeFromRecents="true" -> Don't show in "recent apps" screen |
| 100 | --> |
| 101 | <activity |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 102 | android:excludeFromRecents="true" |
| 103 | android:exported="false" |
| 104 | android:name="com.android.incallui.spam.SpamNotificationActivity" |
| 105 | android:noHistory="true" |
| 106 | android:taskAffinity="" |
| 107 | android:theme="@style/AfterCallNotificationTheme"> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 108 | </activity> |
| 109 | |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 110 | <activity |
| 111 | android:excludeFromRecents="true" |
| 112 | android:exported="false" |
| 113 | android:name=".AudioRouteSelectorActivity" |
| 114 | android:noHistory="true" |
| 115 | android:theme="@style/Theme.Incall.DialogHolder" |
| 116 | /> |
| 117 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 118 | <service |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 119 | android:exported="false" |
| 120 | android:name="com.android.incallui.spam.SpamNotificationService"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 121 | |
| 122 | <!-- BroadcastReceiver for receiving Intents from Notification mechanism. --> |
| 123 | <receiver |
Eric Erfanian | 91ce7d2 | 2017-06-05 13:35:02 -0700 | [diff] [blame^] | 124 | android:directBootAware="true" |
| 125 | android:exported="false" |
| 126 | android:name="com.android.incallui.NotificationBroadcastReceiver"/> |
| 127 | |
| 128 | <receiver |
| 129 | android:exported="false" |
| 130 | android:name=".ReturnToCallActionReceiver"/> |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 131 | |
| 132 | </application> |
| 133 | |
| 134 | </manifest> |
| 135 | |