Advertisement
Guest User

telecomm androidmanifest.xml

a guest
Dec 13th, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2007 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. xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
  19. package="com.android.server.telecom"
  20. coreApp="true"
  21. android:sharedUserId="android.uid.system">
  22.  
  23. <!-- Prevents the activity manager from delaying any activity-start
  24. requests by this package, including requests immediately after
  25. the user presses "home". -->
  26. <uses-permission android:name="android.permission.BIND_CONNECTION_SERVICE" />
  27. <uses-permission android:name="android.permission.BIND_INCALL_SERVICE" />
  28. <uses-permission android:name="android.permission.BLUETOOTH" />
  29. <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
  30. <uses-permission android:name="android.permission.BROADCAST_CALLLOG_INFO" />
  31. <uses-permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION" />
  32. <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
  33. <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
  34. <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
  35. <uses-permission android:name="android.permission.MANAGE_USERS" />
  36. <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
  37. <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
  38. <uses-permission android:name="android.permission.READ_CALL_LOG" />
  39. <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
  40. <uses-permission android:name="android.permission.VIBRATE" />
  41. <uses-permission android:name="android.permission.WRITE_CALL_LOG" />
  42.  
  43. <permission
  44. android:name="android.permission.BROADCAST_CALLLOG_INFO"
  45. android:label="Broadcast the call type/duration information"
  46. android:protectionLevel="signature|system"/>
  47.  
  48. <permission
  49. android:name="android.permission.PROCESS_CALLLOG_INFO"
  50. android:label="Register to handle the broadcasted call type/duration information"
  51. android:protectionLevel="signature|system"/>
  52.  
  53. <permission
  54. android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
  55. android:label="Broadcast phone account registration"
  56. android:protectionLevel="signature|system"/>
  57.  
  58. <permission
  59. android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
  60. android:label="Process phone account registration"
  61. android:protectionLevel="signature|system"/>
  62.  
  63. <!-- Declare which SDK level this application was built against. This is needed so that IDEs
  64. can check for incompatible APIs. -->
  65. <uses-sdk android:minSdkVersion="19" />
  66.  
  67. <application android:label="@string/telecommAppLabel"
  68. android:icon="@mipmap/ic_launcher_phone"
  69. android:allowBackup="false"
  70. android:supportsRtl="true"
  71. android:process="system"
  72. android:usesCleartextTraffic="false">
  73.  
  74. <!-- CALL vs CALL_PRIVILEGED vs CALL_EMERGENCY
  75. We have three different intents through which a call can be initiated each with its
  76. own behavior.
  77. 1) CALL - Expected from any third party app with CALL_PHONE permission. Through this
  78. intent, an app can call any number except emergency numbers.
  79. 2) CALL_PRIVILEGED - Expected from the dialer app and requires CALL_PRIVILEGED
  80. permission, which is only held by the system dialer and the emergency dialer at the
  81. time of this writing. Through this intent, an app can call any number including
  82. emergency numbers.
  83. 3) CALL_EMERGENCY - Expected from the emergency dialer app and requires CALL_PRIVILEGED
  84. permission. Through this intent, an app can call *only* emergency numbers. -->
  85.  
  86. <!-- Activity that starts the outgoing call process by listening to CALL intent which
  87. contain contact information in the intent's data. CallActivity handles any data
  88. URL with the schemes "tel", "sip", and "voicemail". It also handles URLs linked to
  89. contacts provider entries. Any data not fitting the schema described is ignored. -->
  90. <activity android:name=".components.UserCallActivity"
  91. android:label="@string/userCallActivityLabel"
  92. android:theme="@style/Theme.Telecomm.Transparent"
  93. android:permission="android.permission.CALL_PHONE"
  94. android:excludeFromRecents="true"
  95. android:process=":ui">
  96. <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
  97. <intent-filter>
  98. <action android:name="android.intent.action.CALL" />
  99. <category android:name="android.intent.category.DEFAULT" />
  100. <data android:scheme="tel" />
  101. </intent-filter>
  102. <!-- Specify an icon for SIP calls so that quick contacts widget shows a special SIP
  103. icon for calls to SIP addresses. -->
  104. <intent-filter android:icon="@drawable/ic_launcher_sip_call">
  105. <action android:name="android.intent.action.CALL" />
  106. <category android:name="android.intent.category.DEFAULT" />
  107. <data android:scheme="sip" />
  108. </intent-filter>
  109. <intent-filter>
  110. <action android:name="android.intent.action.CALL" />
  111. <category android:name="android.intent.category.DEFAULT" />
  112. <data android:scheme="voicemail" />
  113. </intent-filter>
  114. <!-- Omit default category below so that all Intents sent to this filter must be
  115. explicit. -->
  116. <intent-filter>
  117. <action android:name="android.intent.action.CALL" />
  118. <data android:mimeType="vnd.android.cursor.item/phone" />
  119. <data android:mimeType="vnd.android.cursor.item/phone_v2" />
  120. <data android:mimeType="vnd.android.cursor.item/person" />
  121. </intent-filter>
  122. </activity>
  123.  
  124. <!-- Works like CallActivity with CALL_PRIVILEGED instead of CALL intent.
  125. CALL_PRIVILEGED allows calls to emergency numbers unlike CALL which disallows it.
  126. Intent-sender must have the CALL_PRIVILEGED permission or the broadcast will not be
  127. processed. High priority of 1000 is used in all intent filters to prevent anything but
  128. the system from processing this intent (b/8871505). -->
  129. <activity-alias android:name="PrivilegedCallActivity"
  130. android:targetActivity=".components.UserCallActivity"
  131. android:permission="android.permission.CALL_PRIVILEGED"
  132. android:process=":ui">
  133. <intent-filter android:priority="1000">
  134. <action android:name="android.intent.action.CALL_PRIVILEGED" />
  135. <category android:name="android.intent.category.DEFAULT" />
  136. <data android:scheme="tel" />
  137. </intent-filter>
  138. <intent-filter android:priority="1000"
  139. android:icon="@drawable/ic_launcher_sip_call">
  140. <action android:name="android.intent.action.CALL_PRIVILEGED" />
  141. <category android:name="android.intent.category.DEFAULT" />
  142. <data android:scheme="sip" />
  143. </intent-filter>
  144. <intent-filter android:priority="1000">
  145. <action android:name="android.intent.action.CALL_PRIVILEGED" />
  146. <category android:name="android.intent.category.DEFAULT" />
  147. <data android:scheme="voicemail" />
  148. </intent-filter>
  149. <intent-filter android:priority="1000">
  150. <action android:name="android.intent.action.CALL_PRIVILEGED" />
  151. <data android:mimeType="vnd.android.cursor.item/phone" />
  152. <data android:mimeType="vnd.android.cursor.item/phone_v2" />
  153. <data android:mimeType="vnd.android.cursor.item/person" />
  154. </intent-filter>
  155. </activity-alias>
  156.  
  157. <!-- Works like CallActivity with CALL_EMERGENCY instead of CALL intent.
  158. CALL_EMERGENCY allows calls *only* to emergency numbers. Intent-sender must have the
  159. CALL_PRIVILEGED permission or the broadcast will not be processed. High priority of
  160. 1000 is used in all intent filters to prevent anything but the system from processing
  161. this intent (b/8871505). -->
  162. <!-- TODO: Is there really a notion of an emergency SIP number? If not, can
  163. that scheme be removed from this activity? -->
  164. <activity-alias android:name="EmergencyCallActivity"
  165. android:targetActivity=".components.UserCallActivity"
  166. android:permission="android.permission.CALL_PRIVILEGED"
  167. android:process=":ui">
  168. <intent-filter android:priority="1000">
  169. <action android:name="android.intent.action.CALL_EMERGENCY" />
  170. <category android:name="android.intent.category.DEFAULT" />
  171. <data android:scheme="tel" />
  172. </intent-filter>
  173. <intent-filter android:priority="1000"
  174. android:icon="@drawable/ic_launcher_sip_call">
  175. <action android:name="android.intent.action.CALL_EMERGENCY" />
  176. <category android:name="android.intent.category.DEFAULT" />
  177. <data android:scheme="sip" />
  178. </intent-filter>
  179. <intent-filter android:priority="1000">
  180. <action android:name="android.intent.action.CALL_EMERGENCY" />
  181. <category android:name="android.intent.category.DEFAULT" />
  182. <data android:scheme="voicemail" />
  183. </intent-filter>
  184. <intent-filter android:priority="1000">
  185. <action android:name="android.intent.action.CALL_EMERGENCY" />
  186. <data android:mimeType="vnd.android.cursor.item/phone" />
  187. <data android:mimeType="vnd.android.cursor.item/phone_v2" />
  188. <data android:mimeType="vnd.android.cursor.item/person" />
  189. </intent-filter>
  190. </activity-alias>
  191.  
  192. <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false"
  193. android:process="system">
  194. <intent-filter>
  195. <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS" />
  196. <action android:name="com.android.server.telecom.ACTION_CALL_BACK_FROM_NOTIFICATION" />
  197. <action android:name="com.android.server.telecom.ACTION_SEND_SMS_FROM_NOTIFICATION" />
  198. <action android:name="com.android.phone.intent.CLEAR_BLACKLISTED_CALLS" />
  199. <action android:name="com.android.phone.intent.CLEAR_BLACKLISTED_MESSAGES" />
  200. <action android:name="com.android.phone.REMOVE_BLACKLIST" />
  201. <action android:name="android.provider.Telephony.SMS_REJECTED" />
  202. </intent-filter>
  203. </receiver>
  204.  
  205. <receiver android:name=".components.PhoneAccountBroadcastReceiver"
  206. android:process="system">
  207. <intent-filter>
  208. <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
  209. <data android:scheme="package" />
  210. </intent-filter>
  211. </receiver>
  212.  
  213. <activity android:name=".RespondViaSmsSettings"
  214. android:label="@string/respond_via_sms_setting_title"
  215. android:configChanges="orientation|screenSize|keyboardHidden"
  216. android:theme="@style/Theme.Telecom.DialerSettings"
  217. android:process=":ui">
  218. <intent-filter>
  219. <action android:name="android.intent.action.MAIN" />
  220. <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS" />
  221. <category android:name="android.intent.category.DEFAULT" />
  222. </intent-filter>
  223. </activity>
  224.  
  225. <activity android:name=".settings.EnableAccountPreferenceActivity"
  226. android:label="@string/enable_account_preference_title"
  227. android:configChanges="orientation|screenSize|keyboardHidden"
  228. android:theme="@style/Theme.Telecom.DialerSettings"
  229. android:process=":ui">
  230. <intent-filter>
  231. <action android:name="android.intent.action.MAIN" />
  232. <category android:name="android.intent.category.DEFAULT" />
  233. </intent-filter>
  234. </activity>
  235.  
  236. <activity android:name=".components.ErrorDialogActivity"
  237. android:configChanges="orientation|screenSize|keyboardHidden"
  238. android:excludeFromRecents="true"
  239. android:launchMode="singleInstance"
  240. android:theme="@style/Theme.Telecomm.Transparent"
  241. android:process=":ui">
  242. </activity>
  243.  
  244. <activity android:name=".components.ChangeDefaultDialerDialog"
  245. android:label="@string/change_default_dialer_dialog_title"
  246. android:excludeFromRecents="true"
  247. android:theme="@*android:style/Theme.Material.Light.Dialog.Alert"
  248. android:priority="1000"
  249. android:process=":ui" >
  250. <intent-filter>
  251. <action android:name="android.telecom.action.CHANGE_DEFAULT_DIALER" />
  252. <category android:name="android.intent.category.DEFAULT" />
  253. </intent-filter>
  254. </activity>
  255.  
  256. <receiver android:name=".components.PrimaryCallReceiver"
  257. android:exported="true"
  258. android:permission="android.permission.MODIFY_PHONE_STATE"
  259. android:process="system">
  260. </receiver>
  261.  
  262. <service android:name=".components.BluetoothPhoneService"
  263. android:singleUser="true"
  264. android:process="system">
  265. <intent-filter>
  266. <action android:name="android.bluetooth.IBluetoothHeadsetPhone" />
  267. </intent-filter>
  268. </service>
  269.  
  270. <service android:name=".components.TelecomService"
  271. android:singleUser="true"
  272. android:process="system">
  273. <intent-filter>
  274. <action android:name="android.telecom.ITelecomService" />
  275. </intent-filter>
  276. </service>
  277.  
  278. </application>
  279. </manifest>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement