Bug 838089 - Blacklisted AT commands: AT+XAPL/AT+XEVENT. r=gyeh, a=overholt

This commit is contained in:
Eric Chou 2013-02-06 11:12:54 -05:00
Родитель 38a9d75511
Коммит a63eb9592f
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -686,6 +686,16 @@ BluetoothHfpManager::ReceiveSocketData(UnixSocketRawData* aMessage)
} else if (msg.Find("ATD>") != -1) {
// Currently, we don't support memory dialing in Dialer app
SendLine("ERROR");
return;
} else if ((msg.Find("AT+XAPL=") != -1) ||
(msg.Find("AT+XEVENT=") != -1)) {
// FIXME: Bug 838089
// These are vendor commands used on some special headsets. Eventually we
// should reply with ERROR to all unknown incoming commands. However,
// in order not to cause interoperability issues for b2g18 branch, only
// filtering these two commands should be fine for now.
SendLine("ERROR");
return;
} else if (msg.Find("ATD") != -1) {
nsAutoCString message(msg), newMsg;
int end = message.FindChar(';');