From 562bb3db4f4475f5d933877d428097a6d1203605 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Wed, 14 Jan 2009 18:37:35 -0800 Subject: [PATCH] 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. --- .../java/com/android/internal/telephony/gsm/RIL.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/telephony/java/com/android/internal/telephony/gsm/RIL.java b/telephony/java/com/android/internal/telephony/gsm/RIL.java index 45000ba0b531f..8ec286a153f56 100644 --- a/telephony/java/com/android/internal/telephony/gsm/RIL.java +++ b/telephony/java/com/android/internal/telephony/gsm/RIL.java @@ -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); + */ } /**