libril: use responseInts for LAST_CALL_FAIL_CAUSE on Exynos4
authorSimon Shields <simon@lineageos.org>
Sun, 19 Feb 2017 13:36:42 +0000 (00:36 +1100)
committerSimon Shields <simon@lineageos.org>
Sun, 19 Feb 2017 13:39:36 +0000 (13:39 +0000)
commita9d8bf6af4035e93ca98e865491cb7f013ee0cff
tree50380e7fc7e3e58ed0fac79898bb887df73862da
parentdd8a36941b5d2a85911fab8409be8a0928275ae1
libril: use responseInts for LAST_CALL_FAIL_CAUSE on Exynos4

Exynos4 devices send two ints as a response to this request,
causing responseFailCause to think the result is a LastCallFailCause struct,
which it then tries to treat as a Java UTF-8 encoded string, causing a
crash.

Work around this by forcing responseInts (the original behaviour)
on Exynos4 devices.

Change-Id: Ied14948db3049066ffc760b6d3df09b4cefa2df0
ril/libril/ril_commands.h