History log of /system/bt/bta/ag/bta_ag_cmd.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
549c64d1eb96f8096915a39c2a3447190c851bce 09-Jul-2015 Miao Chou <mcchou@google.com> Fix security vulnerabilities in string operations

This CL prevents functions, bta_ag_hfp_result and bta_hf_client_send_atd, from
the potential strings overflowing.

Bug: 20674686,20677309
Change-Id: Iaef720fc784e020f237feb86e17857bddf57bbfc
/system/bt/bta/ag/bta_ag_cmd.c
46d706a9849dcd027d562200a0a43e6e9156aceb 07-Nov-2014 Mallikarjuna GB <gbmalli@codeaurora.org> Fix issues in A2dp, Avrcp, HF and AG reported by static analysis tool

- Fixes to validate Array Index Value and Null Pointer
Dereference reported by static analysis tool.

Change-Id: Id1492315f68378fdcfa517bd0a5cacefc8ebfddb
/system/bt/bta/ag/bta_ag_cmd.c
c380680cf4bdfd7cd4befea57f81407fccb88752 21-May-2015 Mallikarjuna GB <gbmalli@codeaurora.org> Return ERROR for invalid CHLD command arguments

Return ERROR for invalid chld commands like "AT+CHLD=!"
or "AT+CHLD=0a" etc. In such cases, held call was getting
terminated.

Change-Id: I93d159b20da7086fac3374ce2e163d1309680045
/system/bt/bta/ag/bta_ag_cmd.c
2d0d790ca98b6c46be085e1e0a3e6d16ebd8cddf 28-Oct-2014 Mallikarjuna GB <gbmalli@codeaurora.org> Don't close SCO for MO calls

This change removes condition to disconnect SCO
when MO call process is started.

Change-Id: I2af4ab82c097c7d9ce1bc892bdf40cc09ff6d97e
/system/bt/bta/ag/bta_ag_cmd.c
a7ce13feaa2a84ff329f2bbd4ab964f0f6d54f0a 30-May-2015 Mallikarjuna GB <gbmalli@codeaurora.org> Open SCO for held call.

Use case:
1. Connect to headset/carkit
2. Make an outgoing call from AG
3. Turn off BT on AG
4. Hold the call from AG
5. Turn on BT on AG (No SCO link is established here)
6. Unhold call from AG (still no SCO link is established)

Failure:
No SCO connection established when held call is there
during headset connection.

Root cause:
SCO is not initiated when SLC is done during held call.

Fix:
AG opens SCO connection when HF connected while in call and
the call was in held state.

Change-Id: I63d7655d26ddbf68cbf94c745df745cffa917b5e
/system/bt/bta/ag/bta_ag_cmd.c
7b0bfd32833a8da08069b60e6568aace90778b62 28-Nov-2014 Mallikarjuna GB <gbmalli@codeaurora.org> Update call state before opening SCO.

This change makes sure to update the current
call state before opening SCO connection when
incoming call is answered. Some car kits are
strict in checking this sequence and go in
bad state if not done this way.

Change-Id: Ie744dc26c02d897eaf016ee73022bfc2a0db067e
/system/bt/bta/ag/bta_ag_cmd.c
d345bb208fe35923b60bca6af76b0a6e023fc56f 22-May-2015 Mallikarjuna GB <gbmalli@codeaurora.org> Handle multi party call states

UseCase:
1. Set up Bluetooth connection between phone and remote device.
2. Disconnect BT link by turning off remote device.
3. Start Mo call from phone.
4. Receive MT call from far end.
5. Turn on remote device.
6. BT connection gets established successfully, but audio
doesn't get transferred to headset.

Failure:
Call audio not routed to BT HS. SCO not established.

Root cause:
When a HS connects while in an active call and 2nd call
(incoming/outgoing/alerting) setup ongoing, incorrect post SLC
call setup updates might cause HS to get confused as phone had
already updated correct call states in CIND response during SLC.
This may cause HS to behave abnormally like delayed response to
BCS as seen with jabra wave +.

Fix:
Avoid sending incorrect call updates post SLC since we already
have sent correct updates during SLC as reponse to CIND.

Change-Id: I53e57baf7cca782af6f374a043667971c66a956d
/system/bt/bta/ag/bta_ag_cmd.c
794f3b5f126fffc3dd1129a710187591348bbf23 01-Oct-2014 Chris Manton <cmanton@google.com> Removal of bd.[c|h]

Consolidate legacy types into bt_types.h
/system/bt/bta/ag/bta_ag_cmd.c
66432dcffe211e317d35978283a04a96d5620bdf 27-Apr-2014 Matthew Xie <mattx@google.com> Add WBS support on Bluedroid (2/6)

Bug 13764086

Change-Id: I12bf302f7dd19efb497ad49d4d1d638a7a926049
/system/bt/bta/ag/bta_ag_cmd.c
e8c3d75b75493911ebf0f99c83676359657178f7 04-May-2014 Sharvil Nanavati <sharvil@google.com> Logging cleanup: BTIF and APPL.

Change-Id: I5b1214642bbb4b9aecc0fd2c899a6ec2c9793286
/system/bt/bta/ag/bta_ag_cmd.c
ffa5c93d455f33af1be3b04d39520413dc24afd5 30-Apr-2014 Zhihai Xu <zhihaixu@google.com> fix compilation error due to not include correct header

Change-Id: Ic4c1fb319f9c4202efd108d180f438a6fa26e05a
/system/bt/bta/ag/bta_ag_cmd.c
2cb90bc58fc075ec2f814ada5ae8f728380566c1 15-Mar-2014 Nitin Srivastava <nitinsr@codeaurora.org> Add support for Multi-HFP devices

1. Add multi headset support in stack.
2. Each HS will be associated with unique CB in BTIF
and also corresponding SCB in BTA.
3. Upstream event callbacks will be sent to
specific HS based on BD_ADDR.
4. Similiarly all commands to BTIF will be for
specific HS.

Change-Id: I0dc6b1b54f16244b802d818ae60944877a41d020
/system/bt/bta/ag/bta_ag_cmd.c
5cd8bff2dd0337cb52bf48f312e3d2d55a8882fb 01-Feb-2014 Mike J. Chen <mjchen@google.com> Major warnings cleanup

Mostly fixing unused parameter warnings.
A few other warnings also fixed like possible use of
unitialized variables (no real issue found, just compiler couldn't
follow the path), signed vs unsigned warning.

Also fixed some typos, indent issues, removal of dead code, etc.

Change-Id: I95eb887aefc4d559d7921f71a0af5f3bfb01ac01
Signed-off-by: Mike J. Chen <mjchen@google.com>
/system/bt/bta/ag/bta_ag_cmd.c
0856d9c0a662d78ab0f68e6e0df1721ab43dbb45 29-Jul-2013 Sunny Kapdi <sunnyk@codeaurora.org> Bluetooth: Send Error for Invalid AT Command.

Some Headsets send HFP 1.6 cmds even when it is not
supported by DUT.Send error response in those cases.

bug 11450717

Change-Id: If7745959c00fd49bd737b41a49adba9e726aa5c7
/system/bt/bta/ag/bta_ag_cmd.c
2154e12efeec88780933d47b3c3686ff9f6fe84d 01-May-2013 Zhihai Xu <zhihaixu@google.com> BT problems in Acura MDX

problem2 unexpected beep from carkit during ringing.
The root cause is
the interval between the ring alert is 10 seconds. it is too long
for the carkit which trigger the beep from the carkit. After I
change the inteval to 5 seconds, no unexpected beep from the carkit.

issue 8720373

Change-Id: I6f1cc1faba27e61c80b31c63b6673436e003b117
/system/bt/bta/ag/bta_ag_cmd.c
5738f83aeb59361a0a2eda2460113f6dc9194271 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879baf

Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d
/system/bt/bta/ag/bta_ag_cmd.c