HFP: Save discovered HFP version to config file
* Store discovered HFP version to btif config file so that a
reconnection session knows the HFP version before SDP
* Check stored HFP version when RFCOMM channel is open before any AT
command is processed
* Set peer HFP version to 0 on control block allocation
Bug: 67938255
Test: Connect with HFP 1.7 headsets
Change-Id: I43e7aa04dee17ea7ba9e7d3992ec0860c11d23bc
diff --git a/system/bta/Android.bp b/system/bta/Android.bp
index 3edcf6c..68838db 100644
--- a/system/bta/Android.bp
+++ b/system/bta/Android.bp
@@ -13,6 +13,7 @@
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/btcore/include",
"packages/modules/Bluetooth/system/btif/avrcp",
+ "packages/modules/Bluetooth/system/btif/include",
"packages/modules/Bluetooth/system/hci/include",
"packages/modules/Bluetooth/system/internal_include",
"packages/modules/Bluetooth/system/stack/include",