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

Commit 61a5a916 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Set HFP client profile off by default, enable via resource override rather than system property.

Change-Id: Ief080b21026c7b150835e044f800ccaf786bbd2c
parent 8bb9428e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
    <bool name="profile_supported_a2dp">true</bool>
    <bool name="profile_supported_hdp">true</bool>
    <bool name="profile_supported_hs_hfp">true</bool>
    <bool name="profile_supported_hfpclient">true</bool>
    <bool name="profile_supported_hfpclient">false</bool>
    <bool name="profile_supported_hid">true</bool>
    <bool name="profile_supported_opp">true</bool>
    <bool name="profile_supported_pan">true</bool>
+0 −11
Original line number Diff line number Diff line
@@ -35,9 +35,6 @@ import com.android.bluetooth.map.BluetoothMapService;

public class Config {
    private static final String TAG = "AdapterServiceConfig";
    private static final int hfpClientNotSupported  = -1;
    private static final int hfpClientSupported  = 1;
    private static int enableHfpclient = 0;
    /**
     * List of profile services.
     */
@@ -83,14 +80,6 @@ public class Config {
            boolean supported = resources.getBoolean(PROFILE_SERVICES_FLAG[i]);
            if (supported) {
                Log.d(TAG, "Adding " + PROFILE_SERVICES[i].getSimpleName());
                if (PROFILE_SERVICES[i].getSimpleName().equals("HandsfreeClientService")) {
                    enableHfpclient = SystemProperties.getInt("bluetooth.hfp.client",
                            hfpClientNotSupported);
                    Log.d(TAG, "enableHfpclient " +enableHfpclient);
                    if (enableHfpclient == hfpClientSupported)
                        profiles.add(PROFILE_SERVICES[i]);
                    continue;
                }
                profiles.add(PROFILE_SERVICES[i]);
            }
        }