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

Commit 6f116b64 authored by Sumit Bajpai's avatar Sumit Bajpai Committed by Linux Build Service Account
Browse files

BT-MHF: Make MultiHF system property persist after reboot.

When property to enable MultiHF is set directly from adb shell,
it is lost after DUT reboot. Make system property persistent.

Change-Id: Icae5af23491947e7fd71099449230abfa31cb3bc
parent 60bda92c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ final class HeadsetStateMachine extends StateMachine {
            Log.e(TAG, "Could not bind to Bluetooth Headset Phone Service");
        }

        String max_hfp_clients = SystemProperties.get("bt.max.hs.connections");
        String max_hfp_clients = SystemProperties.get("persist.bt.max.hs.connections");
        if (!max_hfp_clients.isEmpty() && (Integer.parseInt(max_hfp_clients) == 2))
            max_hf_connections = Integer.parseInt(max_hfp_clients);
        Log.d(TAG, "max_hf_connections = " + max_hf_connections);