| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2015 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| package="com.google.android.car.pbapsink" > |
| |
| <uses-sdk android:minSdkVersion="22" android:targetSdkVersion="22" /> |
| |
| <!-- Used by the contacts sync adapter to sync data. --> |
| <uses-permission android:name="android.permission.READ_CONTACTS" /> |
| <uses-permission android:name="android.permission.WRITE_CONTACTS" /> |
| <uses-permission android:name="android.permission.READ_SYNC_STATS" /> |
| <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> |
| <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" /> |
| <uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
| <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> |
| <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /> |
| <uses-permission android:name="android.permission.READ_CALL_LOG" /> |
| <uses-permission android:name="android.permission.WRITE_CALL_LOG" /> |
| <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> |
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
| |
| <!-- These are used for monitoring the state of bluetooth connections. --> |
| <uses-permission android:name="android.permission.BLUETOOTH" /> |
| <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> |
| |
| <application |
| android:allowBackup="false" |
| android:icon="@drawable/ic_launcher" |
| android:label="@string/app_name" |
| android:theme="@style/AppTheme" > |
| |
| <!-- Needed for pbap. --> |
| <uses-library android:name="javax.obex" /> |
| |
| <!-- Starts services so they can monitor bluetooth state. --> |
| <receiver android:name=".PbapBroadcastReceiver"> |
| <intent-filter> |
| <!-- ACL (connection) events are used to establish or tear down a |
| PBAP connection. --> |
| <action android:name="android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED" /> |
| <action android:name="android.bluetooth.device.action.ACL_DISCONNECTED" /> |
| <action android:name="android.bluetooth.device.action.ACL_CONNECTED" /> |
| <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" /> |
| <!-- BOOT_COMPLETED is used to clean up untidy state from last connection. --> |
| <action android:name="android.intent.action.BOOT_COMPLETED" /> |
| <!-- Tear down on HF teardown always --> |
| <action android:name="android.bluetooth.headsetclient.profile.action.CONNECTION_STATE_CHANGED" /> |
| </intent-filter> |
| </receiver> |
| |
| <!-- Authenticator for PBAP account. --> |
| <service android:name=".AuthenticationService" android:exported="true"> |
| <intent-filter> |
| <action android:name="android.accounts.AccountAuthenticator" /> |
| </intent-filter> |
| <meta-data |
| android:name="android.accounts.AccountAuthenticator" |
| android:resource="@xml/authenticator" /> |
| </service> |
| |
| <!-- The contacts sync service. --> |
| <service android:name="com.google.android.car.pbapsink.PbapPCEClient" /> |
| </application> |
| </manifest> |