telephony: Return NOT_SUPPORTED for RIL_REQUEST_GET_NEIGHBORING_CELL_IDS.
Currently, RIL_REQUEST_GET_NEIGHBORING_CELL_IDS causes the RIL to crash, due to backward compatibility issues. This fix is a temporary hack to make the API return REQUEST_NOT_SUPPORTED Command Exception till the compatibility issues are fixed.
This commit is contained in:
@@ -1577,12 +1577,22 @@ public final class RIL extends BaseCommands implements CommandsInterface
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void getNeighboringCids(Message response) {
|
||||
RILRequest rr = RILRequest.obtain(
|
||||
/* TODO: Remove this hack when backward compatibility issue is fixed.
|
||||
* RIL_REQUEST_GET_NEIGHBORING_CELL_IDS currently returns REQUEST_NOT_SUPPORTED
|
||||
*/
|
||||
|
||||
AsyncResult.forMessage(response).exception =
|
||||
new CommandException(CommandException.Error.REQUEST_NOT_SUPPORTED);
|
||||
response.sendToTarget();
|
||||
response = null;
|
||||
|
||||
/* RILRequest rr = RILRequest.obtain(
|
||||
RILConstants.RIL_REQUEST_GET_NEIGHBORING_CELL_IDS, response);
|
||||
|
||||
if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest));
|
||||
|
||||
send(rr);
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user