blob: 8539bd0cf5f880f7e1fb0ba6d81adbafc36af07f [file] [log] [blame]
Eric Erfanianccca3152017-02-22 16:32:36 -08001<!--
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"
18 package="com.android.incallui">
19
20 <uses-sdk
21 android:minSdkVersion="23"
Eric Erfanian10b34a52017-05-04 08:23:17 -070022 android:targetSdkVersion="26"/>
Eric Erfanianccca3152017-02-22 16:32:36 -080023
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
34 android:name="android.hardware.camera.any"
35 android:required="false"/>
36
37 <!-- Testing location -->
38 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
39
Eric Erfanianccca3152017-02-22 16:32:36 -080040 <!-- 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>
46 <meta-data android:name="android.telephony.hide_voicemail_settings_menu"
47 android:value="true"/>
48 <activity
49 android:directBootAware="true"
50 android:excludeFromRecents="true"
51 android:exported="false"
52 android:label="@string/phoneAppLabel"
53 android:taskAffinity="com.android.incallui"
54 android:launchMode="singleInstance"
55 android:name="com.android.incallui.InCallActivity"
56 android:resizeableActivity="true"
57 android:screenOrientation="nosensor"
58 android:theme="@style/Theme.InCallScreen">
59 </activity>
60
61 <activity
62 android:directBootAware="true"
63 android:excludeFromRecents="true"
64 android:noHistory="true"
65 android:exported="false"
66 android:label="@string/manageConferenceLabel"
67 android:taskAffinity="com.android.incallui"
68 android:launchMode="singleTask"
69 android:name="com.android.incallui.ManageConferenceActivity"
70 android:resizeableActivity="true"
71 android:theme="@style/Theme.InCallScreen.ManageConference"/>
72
73 <service
74 android:directBootAware="true"
75 android:exported="true"
76 android:name="com.android.incallui.InCallServiceImpl"
77 android:permission="android.permission.BIND_INCALL_SERVICE">
78 <meta-data
79 android:name="android.telecom.IN_CALL_SERVICE_UI"
80 android:value="true"/>
81 <meta-data
82 android:name="android.telecom.IN_CALL_SERVICE_RINGING"
83 android:value="false"/>
84 <meta-data
85 android:name="android.telecom.INCLUDE_EXTERNAL_CALLS"
86 android:value="true"/>
87
88 <intent-filter>
89 <action android:name="android.telecom.InCallService"/>
90 </intent-filter>
91 </service>
92
93 <!--
94 Comments for attributes in SpamNotificationActivity:
95 taskAffinity="" -> Open the dialog without opening the dialer app behind it
96 noHistory="true" -> Navigating away finishes activity
97 excludeFromRecents="true" -> Don't show in "recent apps" screen
98 -->
99 <activity
100 android:excludeFromRecents="true"
101 android:exported="false"
102 android:name="com.android.incallui.spam.SpamNotificationActivity"
103 android:noHistory="true"
104 android:taskAffinity=""
105 android:theme="@style/AfterCallNotificationTheme">
106 </activity>
107
108 <service
109 android:exported="false"
110 android:name="com.android.incallui.spam.SpamNotificationService"/>
111
112 <!-- BroadcastReceiver for receiving Intents from Notification mechanism. -->
113 <receiver
114 android:directBootAware="true"
115 android:exported="false"
116 android:name="com.android.incallui.NotificationBroadcastReceiver"/>
117
118 </application>
119
120</manifest>
121