Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3cc9479 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add an exported flag in manifest"

parents 308912c5 5b977d3f
Loading
Loading
Loading
Loading
+286 −292
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.android.bluetooth"
     package="com.android.bluetooth"
     android:sharedUserId="android.uid.bluetooth">
     android:sharedUserId="android.uid.bluetooth">
@@ -74,8 +75,7 @@


    <!-- For PBAP Owner Vcard Info -->
    <!-- For PBAP Owner Vcard Info -->
    <uses-permission android:name="android.permission.READ_PROFILE"/>
    <uses-permission android:name="android.permission.READ_PROFILE"/>
    <application
    <application android:name=".btservice.AdapterApp"
        android:name=".btservice.AdapterApp"
         android:icon="@mipmap/bt_share"
         android:icon="@mipmap/bt_share"
         android:persistent="false"
         android:persistent="false"
         android:label="@string/app_name"
         android:label="@string/app_name"
@@ -88,32 +88,28 @@
             android:authorities="com.android.bluetooth.opp"
             android:authorities="com.android.bluetooth.opp"
             android:exported="true"
             android:exported="true"
             android:process="@string/process">
             android:process="@string/process">
            <path-permission
            <path-permission android:pathPrefix="/btopp"
                    android:pathPrefix="/btopp"
                 android:permission="android.permission.ACCESS_BLUETOOTH_SHARE"/>
                 android:permission="android.permission.ACCESS_BLUETOOTH_SHARE"/>
        </provider>
        </provider>
        <provider android:name=".opp.BluetoothOppFileProvider"
        <provider android:name=".opp.BluetoothOppFileProvider"
             android:authorities="com.android.bluetooth.opp.fileprovider"
             android:authorities="com.android.bluetooth.opp.fileprovider"
             android:grantUriPermissions="true"
             android:grantUriPermissions="true"
             android:exported="false">
             android:exported="false">
            <meta-data
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS"
                android:name="android.support.FILE_PROVIDER_PATHS"
                 android:resource="@xml/file_paths"/>
                 android:resource="@xml/file_paths"/>
        </provider>
        </provider>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".btservice.AdapterService"
            android:name = ".btservice.AdapterService">
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetooth"/>
                <action android:name="android.bluetooth.IBluetooth"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".opp.BluetoothOppService"
             android:name=".opp.BluetoothOppService"
             android:permission="android.permission.ACCESS_BLUETOOTH_SHARE"
             android:permission="android.permission.ACCESS_BLUETOOTH_SHARE"
             android:enabled="@bool/profile_supported_opp"/>
             android:enabled="@bool/profile_supported_opp"/>
        <receiver
        <receiver android:process="@string/process"
            android:process="@string/process"
             android:exported="true"
             android:exported="true"
             android:name=".opp.BluetoothOppReceiver"
             android:name=".opp.BluetoothOppReceiver"
             android:enabled="@bool/profile_supported_opp">
             android:enabled="@bool/profile_supported_opp">
@@ -121,10 +117,10 @@
                <action android:name="android.btopp.intent.action.OPEN_RECEIVED_FILES"/>
                <action android:name="android.btopp.intent.action.OPEN_RECEIVED_FILES"/>
            </intent-filter>
            </intent-filter>
        </receiver>
        </receiver>
         <receiver
         <receiver android:process="@string/process"
            android:process="@string/process"
              android:name=".opp.BluetoothOppHandoverReceiver"
              android:name=".opp.BluetoothOppHandoverReceiver"
            android:permission="com.android.permission.WHITELIST_BLUETOOTH_DEVICE">
              android:permission="com.android.permission.WHITELIST_BLUETOOTH_DEVICE"
              android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.btopp.intent.action.WHITELIST_DEVICE"/>
                <action android:name="android.btopp.intent.action.WHITELIST_DEVICE"/>
                <action android:name="android.btopp.intent.action.STOP_HANDOVER_TRANSFER"/>
                <action android:name="android.btopp.intent.action.STOP_HANDOVER_TRANSFER"/>
@@ -144,7 +140,8 @@
             android:process="@string/process"
             android:process="@string/process"
             android:theme="@android:style/Theme.Material.Light.Dialog"
             android:theme="@android:style/Theme.Material.Light.Dialog"
             android:label="@string/bt_share_picker_label"
             android:label="@string/bt_share_picker_label"
            android:enabled="@bool/profile_supported_opp">
             android:enabled="@bool/profile_supported_opp"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEND"/>
                <action android:name="android.intent.action.SEND"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -216,7 +213,8 @@
             android:excludeFromRecents="true"
             android:excludeFromRecents="true"
             android:configChanges="orientation|keyboardHidden"
             android:configChanges="orientation|keyboardHidden"
             android:enabled="@bool/profile_supported_opp"
             android:enabled="@bool/profile_supported_opp"
                  android:theme="@android:style/Theme.DeviceDefault.Settings">
             android:theme="@android:style/Theme.DeviceDefault.Settings"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="com.android.bluetooth.action.TransferHistory"/>
                <action android:name="com.android.bluetooth.action.TransferHistory"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -228,19 +226,19 @@
             android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
             android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
             android:enabled="@bool/profile_supported_pbap">
             android:enabled="@bool/profile_supported_pbap">
        </activity>
        </activity>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:permission="android.permission.BLUETOOTH_PRIVILEGED"
             android:permission="android.permission.BLUETOOTH_PRIVILEGED"
             android:name=".pbap.BluetoothPbapService"
             android:name=".pbap.BluetoothPbapService"
            android:enabled="@bool/profile_supported_pbap" >
             android:enabled="@bool/profile_supported_pbap"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothPbap"/>
                <action android:name="android.bluetooth.IBluetoothPbap"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".map.BluetoothMapService"
             android:name=".map.BluetoothMapService"
            android:enabled="@bool/profile_supported_map" >
             android:enabled="@bool/profile_supported_map"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothMap"/>
                <action android:name="android.bluetooth.IBluetoothMap"/>
                <action android:name="android.btmap.intent.action.SHOW_MAPS_SETTINGS"/>
                <action android:name="android.btmap.intent.action.SHOW_MAPS_SETTINGS"/>
@@ -260,56 +258,55 @@
             android:grantUriPermissions="true"
             android:grantUriPermissions="true"
             android:exported="false">
             android:exported="false">
        </provider>
        </provider>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".mapclient.MapClientService"
             android:name=".mapclient.MapClientService"
            android:enabled="@bool/profile_supported_mapmce" >
             android:enabled="@bool/profile_supported_mapmce"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothMapClient"/>
                <action android:name="android.bluetooth.IBluetoothMapClient"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".sap.SapService"
             android:name=".sap.SapService"
            android:enabled="@bool/profile_supported_sap" >
             android:enabled="@bool/profile_supported_sap"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothSap"/>
                <action android:name="android.bluetooth.IBluetoothSap"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".gatt.GattService"
             android:name=".gatt.GattService"
            android:enabled="@bool/profile_supported_gatt">
             android:enabled="@bool/profile_supported_gatt"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothGatt"/>
                <action android:name="android.bluetooth.IBluetoothGatt"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".hfp.HeadsetService"
             android:name=".hfp.HeadsetService"
            android:enabled="@bool/profile_supported_hs_hfp">
             android:enabled="@bool/profile_supported_hs_hfp"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothHeadset"/>
                <action android:name="android.bluetooth.IBluetoothHeadset"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".a2dp.A2dpService"
             android:name=".a2dp.A2dpService"
            android:enabled="@bool/profile_supported_a2dp">
             android:enabled="@bool/profile_supported_a2dp"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothA2dp"/>
                <action android:name="android.bluetooth.IBluetoothA2dp"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".a2dpsink.A2dpSinkService"
             android:name=".a2dpsink.A2dpSinkService"
            android:enabled="@bool/profile_supported_a2dp_sink">
             android:enabled="@bool/profile_supported_a2dp_sink"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothA2dpSink"/>
                <action android:name="android.bluetooth.IBluetoothA2dpSink"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".avrcpcontroller.BluetoothMediaBrowserService"
             android:name=".avrcpcontroller.BluetoothMediaBrowserService"
             android:exported="true"
             android:exported="true"
             android:enabled="@bool/profile_supported_a2dp_sink"
             android:enabled="@bool/profile_supported_a2dp_sink"
@@ -319,8 +316,7 @@
            </intent-filter>
            </intent-filter>
        </service>
        </service>


        <activity
        <activity android:name=".BluetoothPrefs"
            android:name=".BluetoothPrefs"
             android:exported="@bool/profile_supported_a2dp_sink"
             android:exported="@bool/profile_supported_a2dp_sink"
             android:enabled="@bool/profile_supported_a2dp_sink">
             android:enabled="@bool/profile_supported_a2dp_sink">
            <intent-filter>
            <intent-filter>
@@ -328,18 +324,18 @@
            </intent-filter>
            </intent-filter>
        </activity>
        </activity>


        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".avrcp.AvrcpTargetService"
             android:name=".avrcp.AvrcpTargetService"
            android:enabled = "@bool/profile_supported_avrcp_target" >
             android:enabled="@bool/profile_supported_avrcp_target"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothAvrcp"/>
                <action android:name="android.bluetooth.IBluetoothAvrcp"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".avrcpcontroller.AvrcpControllerService"
             android:name=".avrcpcontroller.AvrcpControllerService"
            android:enabled="@bool/profile_supported_avrcp_controller">
             android:enabled="@bool/profile_supported_avrcp_controller"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothAvrcpController"/>
                <action android:name="android.bluetooth.IBluetoothAvrcpController"/>
            </intent-filter>
            </intent-filter>
@@ -351,74 +347,72 @@
             android:grantUriPermissions="true"
             android:grantUriPermissions="true"
             android:exported="true">
             android:exported="true">
        </provider>
        </provider>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".hid.HidHostService"
             android:name=".hid.HidHostService"
            android:enabled="@bool/profile_supported_hid_host">
             android:enabled="@bool/profile_supported_hid_host"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothHidHost"/>
                <action android:name="android.bluetooth.IBluetoothHidHost"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".hid.HidDeviceService"
             android:name=".hid.HidDeviceService"
            android:enabled="@bool/profile_supported_hid_device">
             android:enabled="@bool/profile_supported_hid_device"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothHidDevice"/>
                <action android:name="android.bluetooth.IBluetoothHidDevice"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".pan.PanService"
             android:name=".pan.PanService"
            android:enabled="@bool/profile_supported_pan">
             android:enabled="@bool/profile_supported_pan"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothPan"/>
                <action android:name="android.bluetooth.IBluetoothPan"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".hfpclient.HeadsetClientService"
             android:name=".hfpclient.HeadsetClientService"
            android:enabled="@bool/profile_supported_hfpclient">
             android:enabled="@bool/profile_supported_hfpclient"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothHeadsetClient"/>
                <action android:name="android.bluetooth.IBluetoothHeadsetClient"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".hfpclient.connserv.HfpClientConnectionService"
             android:name=".hfpclient.connserv.HfpClientConnectionService"
             android:permission="android.permission.BIND_CONNECTION_SERVICE"
             android:permission="android.permission.BIND_CONNECTION_SERVICE"
            android:enabled="@bool/hfp_client_connection_service_enabled">
             android:enabled="@bool/hfp_client_connection_service_enabled"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <!-- Mechanism for Telecom stack to connect -->
                <!-- Mechanism for Telecom stack to connect -->
                <action android:name="android.telecom.ConnectionService"/>
                <action android:name="android.telecom.ConnectionService"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".pbapclient.PbapClientService"
             android:name=".pbapclient.PbapClientService"
            android:enabled="@bool/profile_supported_pbapclient">
             android:enabled="@bool/profile_supported_pbapclient"
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothPbapClient"/>
                <action android:name="android.bluetooth.IBluetoothPbapClient"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".hearingaid.HearingAidService"
            android:name = ".hearingaid.HearingAidService">
             android:exported="true">
            <intent-filter>
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothHearingAid"/>
                <action android:name="android.bluetooth.IBluetoothHearingAid"/>
            </intent-filter>
            </intent-filter>
        </service>
        </service>
        <!-- Authenticator for PBAP account. -->
        <!-- Authenticator for PBAP account. -->
        <service
        <service android:process="@string/process"
            android:process="@string/process"
             android:name=".pbapclient.AuthenticationService"
             android:name=".pbapclient.AuthenticationService"
             android:exported="true"
             android:exported="true"
             android:enabled="@bool/profile_supported_pbapclient">
             android:enabled="@bool/profile_supported_pbapclient">
            <intent-filter>
            <intent-filter>
                <action android:name="android.accounts.AccountAuthenticator"/>
                <action android:name="android.accounts.AccountAuthenticator"/>
            </intent-filter>
            </intent-filter>
            <meta-data
            <meta-data android:name="android.accounts.AccountAuthenticator"
                android:name="android.accounts.AccountAuthenticator"
                 android:resource="@xml/authenticator"/>
                 android:resource="@xml/authenticator"/>
        </service>
        </service>
    </application>
    </application>