Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 562bb3db authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

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.
parent e570a0fa
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -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);
        */
    }

    /**