OSDN Git Service

Convert empty response to -1 for some SIM APIs
authorNaveen Kalla <mrnaveen@google.com>
Thu, 16 Mar 2017 19:55:55 +0000 (12:55 -0700)
committerNaveen Kalla <mrnaveen@google.com>
Sun, 19 Mar 2017 13:57:30 +0000 (06:57 -0700)
commit346bbc0d2b30c37e80dcaf4baffe0f81a7cb7e87
tree5b4fce0fe1fad45e343e7bf56e32e0d462c60014
parent8f1c83e068c3e5893420105a1286ccd7c36516a3
Convert empty response to -1 for some SIM APIs

Earlier RILs did not send a response for some cases although the
interface expected an integer as response. Do not return error if
response is empty. Instead Return -1 in those cases to maintain backward
compatibility.

Bug: 36209518
Test: Enable fixed dialing number and call barring by dialing *35*PASSWORD#.
      Check logs to make sure RILC does not fail with invalid response
      on devices where RIL doesn't send a response to these requests
      on success.

Change-Id: I1d91bacd60bd19985710a111de57e86f03e6ce4a
libril/ril_service.cpp