History log of /hardware/ril/libril/ril.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a65a16a2e81b11762fd9e4233e1a212effcfee82 01-Aug-2014 Naveen Kalla <nkalla@codeaurora.org> Add RIL_REQUEST_SHUTDOWN to notify RIL that device is shutting down

When device is in airplane mode, SIM card and modem may be powered on.
RIL can use RIL_REQUEST_SHUTDOWN to shutdown the modem and SIM card
gracefully.

Bug: 9773278
Change-Id: I6afa9e810cefc7855f7ae42e51f39cc51fa2aa6e
/hardware/ril/libril/ril.cpp
c796e22cf8402452b325ffbf9686a4c985a611e3 13-Aug-2014 Amit Mahajan <amitmahajan@google.com> Revert "Revert "add apn setting parameters, and set apn parameters to bp""

This reverts commit 87540b6318016540030421a5c2bc41b759bf33cd.

Change-Id: I7f6043ad55299ecc01cbcadc81c281b133755b86
/hardware/ril/libril/ril.cpp
87540b6318016540030421a5c2bc41b759bf33cd 12-Aug-2014 Amit Mahajan <amitmahajan@google.com> Revert "add apn setting parameters, and set apn parameters to bp"

This reverts commit 6be060de61b99ed29ad67ebfa19271bbe0a475fe.

Change-Id: Idc7d6cfc97ca6fadd93d85e96b12cb46e33f35c6
/hardware/ril/libril/ril.cpp
6be060de61b99ed29ad67ebfa19271bbe0a475fe 09-Aug-2014 Hui Wang <huiwang@motorola.com> add apn setting parameters, and set apn parameters to bp

Change-Id: I779b28996fafcacdefb63072b7dcc6bd90a532be
/hardware/ril/libril/ril.cpp
6c6075946589d61d3bc051dd1986d0bbf0c88da7 05-Aug-2014 Jayachandran C <jayc@motorola.com> Fix crash by checking for NULL token at the beginning of RIL_onRequestComplete

- RILD crashes when token is NULL because no NULL check at the beginning
/hardware/ril/libril/ril.cpp
52500160ca3efd2e7e90df27be0eaded16185642 30-Jul-2014 Amit Mahajan <amitmahajan@google.com> Change to parse DATA_CALL_LIST correctly based on version.

Bug: 16242255
Change-Id: I9c6dfb41f074da9558f721ca0432f40edc2d4d22
/hardware/ril/libril/ril.cpp
90530a6e86001facba8a34541d2f038f24562cc3 02-Jul-2014 Amit Mahajan <amitmahajan@google.com> Changes to correctly process EAP-SIM req parameters in ril

Change-Id: I393c18f878fe3e5efcd81543a9a38a4c353b6e03
/hardware/ril/libril/ril.cpp
c29360a92ad603fcec008c098cbbed47e3399dc8 13-Jul-2014 Wink Saville <wink@google.com> Add support for retrieving real time data connection information.

To be able to reduce power consumption caused by the mobile radio being
in a high power state, the radio will report its power state in real
time.

Bug: 8233234
Change-Id: Ia4195211c380efc04a65c6f1f6e4d29095a1bc35
/hardware/ril/libril/ril.cpp
2b77203b8c64e5bfa848303df7328d015069f8c7 26-Jun-2014 Amit Mahajan <amitmahajan@google.com> EAP-SIM RIL command name change.

Modified the name to match what was in QCRIL.
Added structures for req/resp in ril.h

Change-Id: I41abfacb7bacd4cfa0d4543100ac9960c97184f9
/hardware/ril/libril/ril.cpp
d365219a1873e42d2ff669e13a9fe6ce6973bd51 20-Jun-2014 Etan Cohen <etancohen@google.com> Merge kwd to master

Change-Id: Id33008507cbafc88288b6483c7691d6db34cc5c3
/hardware/ril/libril/ril.cpp
74f7e667381fae533f70843ea952db04bd2adc36 18-Apr-2014 Mohamad Ayyash <mkayyash@google.com> rild: Fix a sizeof bug.

Change-Id: Ic207f8b1567849051f24342e37f905a59b43dad2
/hardware/ril/libril/ril.cpp
ed9985c5531b38f4ebffdd6ee48cbcaf22702803 28-Feb-2014 Etan Cohen <etancohen@google.com> am 680bdfa7: am 458d8b7e: Merge "[RIL] Fix build-break when enabling RILC_LOG"

* commit '680bdfa726292c466f4cf68363b29f8781c3fb63':
[RIL] Fix build-break when enabling RILC_LOG
5d891b7991dd22c105e97180e0fb02d4b42911eb 28-Feb-2014 Etan Cohen <etancohen@google.com> [RIL] Fix build-break when enabling RILC_LOG

A couple of debug messages were using out-of-date struct
members causing the build to break when the RILC_LOG flag
was enabled.

Change-Id: I258a58744aa3c71ddbe09e598221c149be59b554
/hardware/ril/libril/ril.cpp
8a4a233bb9503eddee83569e647c25099a8e15b3 15-Jan-2014 Jake Hamby <jhamby@google.com> Add new RIL commands to read, write, and reset NV items.

Add new RIL commands to read, write, and reset NV items,
including the CDMA Preferred Roaming List (PRL).

Used for device configuration by some CDMA operators.

Bug: 12864208
Change-Id: I792e272438b56bca725e6c034baac19244e5563f
/hardware/ril/libril/ril.cpp
fd81e7146b2e9253aa2ab131d970b9e300f1f97e 06-Jan-2014 Elliott Hughes <enh@google.com> Fix pthread_create error handling in ril harder.

The previous patch fixed the behavior _if_ something goes wrong...
...but didn't fix the check for whether something went wrong.
pthread_create isn't a regular Unix "return -1 and set errno" kind
of function; it returns 0 on success and an error number (without
setting errno) on failure.

Bug: https://code.google.com/p/android/issues/detail?id=64189
Change-Id: I335af890885d6a672d7bac746fdfea3ed3995360
/hardware/ril/libril/ril.cpp
c0d8dc63fa3a71f8731870d0e851eb47acf4f568 04-Jan-2014 Elliott Hughes <enh@google.com> Fix pthread_create error handling in ril.

Bug: https://code.google.com/p/android/issues/detail?id=64189
Change-Id: Ie6282dda582a574aaad5513c39f2d8d965f6dee3
/hardware/ril/libril/ril.cpp
6e7c1966c6a41b6e7c0431dcc6bf65678438c79e 12-Dec-2013 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Fix parameter mismatch between header and implementation

RIL_onUnsolicitedResponse's second parameter is
const void *data
according to include/telephony/ril.h and rild/rild.c, but
void *data
according to libril/ril.cpp

This mismatch causes a compile failure with clang (and I'm surprised
it compiles with gcc with the mismatch - probably gcc parses this as
function overloading even though it's extern "C", which wouldn't do
what is expected).

Change-Id: Ib437040aeca4be43cc2d327c3715ffa98c76878c
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/hardware/ril/libril/ril.cpp
2458d8d1e56faae7b00511ceeab19730572c22d9 27-Nov-2013 Shishir Agrawal <shishir@google.com> RIL changes for supporting generic SIM communication.

The RIL interface adds 4 new commands:
- RIL_REQUEST_SIM_TRANSMIT_BASIC (AT+CSIM - TS 27.007)
- RIL_REQUEST_SIM_OPEN_CHANNEL (AT+CCHO - TS 27.007)
- RIL_REQUEST_SIM_CLOSE_CHANNEL (AT+CCHC - TS 27.007)
- RIL_REQUEST_SIM_TRANSMIT_CHANNEL (AT+CGLA - TS 27.007)

The RIL version is also increased to 10 by this change.

Change-Id: Iee4d950d37a6097493cd945e611c914c40827215
/hardware/ril/libril/ril.cpp
a18b9d1e1a014290691d63a7f335085dadc83e46 10-Sep-2013 Sukanya Rajkhowa <srajkh@codeaurora.org> RIL: Support SMS over IMS

RIL_REQUEST_IMS_REGISTRATION_STATE is used to aquire IMS registration state.
RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED is called when IMS registration
state has changed.
RIL_REQUEST_IMS_SEND_SMS is used to send MO SMS over IMS. However, if retry
field is set in case of failure, RIL_REQUEST_IMS_SEND_SMS sets messageRef from
RIL_SMS_RESPONSE of corresponding failed MO SMS, and sets retry field to
non-zero. If voice is available, sends RIL_REQUEST_IMS_SEND_SMS retries with
data encoded based on voice tech available.

Bug: 9626411

Change-Id: If0ecc9fa47661f6560171e472f3c464713e97968
/hardware/ril/libril/ril.cpp
6b0f914b499a9cc3482ca9919aab67ad4bd1b10b 23-May-2013 Dima Zavin <dima@android.com> Merge "ril: move record_stream_xxx to librilutils and export header"
622bf2bf79849127cbedd1f56631615bf58aaf78 22-May-2013 Dima Zavin <dima@android.com> ril: move record_stream_xxx to librilutils and export header

Change-Id: I9986c8c5fb1777bbd2b686769ecc726319a73100
Signed-off-by: Dima Zavin <dima@android.com>
/hardware/ril/libril/ril.cpp
75697538e485ea2981960dcd4878bfdd032731ac 27-Apr-2013 Sungmin Choi <sungmin.choi@lge.com> Set initial attach apn for LTE network

When mobile register LTE network, APN provided by operators is needed.
If mobile does not have apn information, it could not register LTE network.
To deliver APN information which is used during LTE attach to modem chipset,
setLteAttachProfile() and RIL_REQUEST_SET_LTE_ATTACH_PROFILE command is added.

When Telephony DB is loaded or Telephony DB is changed, follow steps.
1. If preferred default ApnContext exists, this is delivered to modem chipset.
2. If preferred default ApnContext is null, find other ApnContext which can
handle default type.
3. If other ApnContext which can handle default type does not exist, any other
ApnContext delivered to modem chipset.

Then modem register LTE network with APN information delivered from AP.

Bug: 8733613

Change-Id: If84c62cddccf96a531dae0527ed1a6592ae76201
Signed-off-by: Seonju Oh <seonju.oh@lge.com>
Signed-off-by: Hyejin Kim <hyejin.kim@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
/hardware/ril/libril/ril.cpp
f467af616bbbc479771184731132d68e213a4419 07-May-2013 Dima Zavin <dima@android.com> libril: move record_stream here as it is the sole client

Change-Id: I85b94c4c6d61dfaa964367a58c773b5550a47995
Signed-off-by: Dima Zavin <dima@android.com>
/hardware/ril/libril/ril.cpp
e1d947602a932047a4c8112c256b5f7832d3f255 18-Apr-2013 Wink Saville <wink@google.com> am c57b3eb5: Add CellInfoWcdma.

* commit 'c57b3eb525db241bd3e6092453f48388bc880447':
Add CellInfoWcdma.
c57b3eb525db241bd3e6092453f48388bc880447 17-Apr-2013 Wink Saville <wink@google.com> Add CellInfoWcdma.

Update CellIdentityXxx docs to define unknown values as INT_MAX.

Bug: 8622081
Change-Id: I513a67d4b46b72f03e0c3360abcc0ad5222c1c13
/hardware/ril/libril/ril.cpp
12b02b453f8c7ee1dcdc93eb9219e395cfc420bd 10-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> am 6fde8b8d: Merge "Fixes typo in logging string."

* commit '6fde8b8d0b9fdcf7fb93aeafd17e7f52bd57e7db':
Fixes typo in logging string.
2126ab2f05c1033fdca7542f38372dffd1468e1c 09-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> Fixes typo in logging string.

Pointed out by bodhisatwa in
https://code.google.com/p/android/issues/detail?id=54098

Change-Id: I4cb42627bb0858360d6f88dedf9412720e4b5cca
/hardware/ril/libril/ril.cpp
8a9e02161271505de274db0c3a88087056dd5dfc 09-Apr-2013 Wink Saville <wink@google.com> Add support for CellInfo RIL commands.

These commands allow for more precise location determination.

To support CellInfo I created librilutils which adds ril_nano_time
over time librilutils will be expanded to have other common methods
that would be used by ril implementations.

Bug: 8235566
Change-Id: I7ad7dabc4b6c38bfba4461b08e6e30d0eb9efea1
/hardware/ril/libril/ril.cpp
18e4ab167c7d8549a360ab5ae1fadddcad8c0523 08-Apr-2013 Wink Saville <wink@google.com> Fix SignalStrength response.

Properly remap LTE values to appropriate values
for older code.

Bug: 8561333
Change-Id: Ie6eb3b0335e8d7ea114ec70b3fb72e917094632e
/hardware/ril/libril/ril.cpp
388849057a8cc91dbc3fff357d2df524ffec9a4d 05-Jul-2011 Banavathu, Srinivas Naik <snb@codeaurora.org> Rild: Ril should try to write again to the socket EAGAIN error

In case of EAGAIN error, the RIL should write to socket again after some
time.

Change-Id: Ia4c8d17b7c16040a49a4c607a1d1350ebbe7847c
CRs-Fixed: 285312
/hardware/ril/libril/ril.cpp
8eb2a12cb7b525e74736300962a5f3848427275a 20-Nov-2012 Wink Saville <wink@google.com> Add RLOGx

This will eventually allow us to remove the code in
logd_write.c#__android_log_write which uses the tag
to direct logs to the radio buffer.

Change-Id: I7a6a966bc12e59a3ec68a56a41dd681fb325dfd8
/hardware/ril/libril/ril.cpp
d5580e18a7a1ce1a227e98d5170ffd268b0a1e0a 29-Aug-2012 Wink Saville <wink@google.com> Merge "Fix logging for setup_data_call response"
56384157f32856066ee9c1b77cbcf96d4ee90a98 16-Nov-2011 Naveen Kalla <nkalla@codeaurora.org> Fix logging for setup_data_call response

Change-Id: I611d96e7653da4f14d73c6d6f9663365dd983628
/hardware/ril/libril/ril.cpp
96dcdbcfe5111346f1a1f4542a8533a0a6611c01 25-May-2012 Kevin Schoedel <kevin.p.schoedel@intel.com> Fixed goto into scope.

Two functions contained goto statements entering the scope of
automatic variables; added explicit blocks to limit these scopes.

Change-Id: Ib2d46bdc235089e208ac70bdaf405ea9e5b91ab1
Reviewed-by: Ariel J Bernal <ariel.j.bernal@intel.com>
Author: Kevin Schoedel <kevin.p.schoedel@intel.com>
/hardware/ril/libril/ril.cpp
9efcac5782b93564d47c1687e67e85849c72afed 09-Aug-2012 Uma Maheswari Ramalingam <umam@codeaurora.org> Workaround for LTE RSRP -ve values in Signal

Ril version 6 and below sends negative values
for lte rsrp in signalstrength.
Workaround to maintain backward compatibility
and convert this to positive
values in compliance with ril.h

Support for processing all fields in
SignalStrength in reference-ril

Change-Id: I4d480aa2f607cd617b18681f722de246a7894348
/hardware/ril/libril/ril.cpp
45e740ef3c422bf75aadca21f98614fc120f49fb 31-Jan-2012 Alex Yakavenka <ayakaven@quicinc.com> Implement sim_refresh as per ril v6

Change-Id: Icc620fd191f8542f61bd38e365813753bfedefdf
/hardware/ril/libril/ril.cpp
f423cde8f901a72fd0cb811583a2cdabe62c64bd 08-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Id52de89149d4580873215fafc922ec4bd8d722ed
/hardware/ril/libril/ril.cpp
43b9c52fcaab343282243b6cbc3c5b2a56760f09 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: Id6f7d536955c731454f1063fd19a51da0c6713a1
/hardware/ril/libril/ril.cpp
9139bfbe5c2bf26dfac14fedd5b7defafbaecb7f 05-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: I42dbe6812878b39c75babc1ba95737937f45fdcc
/hardware/ril/libril/ril.cpp
6464068a31ff890d42d3da9cdf580d07c9c630d8 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: Ib3eab0b780391f9a0ac9b53282616d66a0154ade
/hardware/ril/libril/ril.cpp
2bc78d614e349574426d198c37e51ccb7455b5bb 08-Dec-2011 Naveen Kalla <nkalla@quicinc.com> Separate SIM states from Radio States

A UICC can have multiple applications (USIM, CSIM). Both USIM and CSIM may be Ready.
So indicating modem state as SIM_READY/RUIM_READY will be incorrect. RADIO_ON is a more
appropriate Radio State. SIM status can be obtained from the RIL_REQUEST_GET_SIM_STATUS
and RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED messages.

The change does the following

- Remove SIM states from RIL_RadioState
- Add messages to indicate voice radio technology

Change-Id: Ic7b540eefb741169ec22499d0e00961feb22a456
/hardware/ril/libril/ril.cpp
eb902b80c2b46e59b12b2bded315e7f620f87c7e 26-Oct-2011 Steve Block <steveblock@google.com> Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I9cb91455767731254a8d5bee140ea23474543f02
/hardware/ril/libril/ril.cpp
300105d1487f5238940c18792b879793826b61f4 26-Sep-2011 Jake Hamby <jhamby@google.com> Add new RIL requests to support SIM data download via SMS over IMS.

On an LTE device where incoming SMS messages over IMS are sent to
the framework via RIL_UNSOL_RESPONSE_NEW_SMS responses sent to
the RIL, it may be necessary to process USIM data download SM's
(message class 2). This requires the RIL to implement two new requests.

1) RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS:
send an ENVELOPE command to the UICC, receiving the SW1 and SW2
status bytes in addition to the command response.

2) RIL_REQUEST_SMS_ACKNOWLEDGE_WITH_PDU:
send an RP-ACK or RP-ERROR acknowledgement to the incoming SM,
including an acknowledgement PDU containing the envelope response.

Change-Id: Id134dd90611b147fdc8aebc8ccdf0e989a6542a9
/hardware/ril/libril/ril.cpp
5cdc1354de1e1b98347fe67c5fefdb0be7e0f589 15-Oct-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> RIL occasionally stopps event loop on phone process crash

RIL occasionally exits from its event loop due to race condition
upon phone process crash. And there is no recovery mechanism
provided and causing permanent cellular data loss until reset.

The solution is simply to kill rild process to start over when
event loop exits for some reason.

Bug:5428218
Change-Id: I88a9b8e966158f0f943fe3d189d91b1352481d9b
/hardware/ril/libril/ril.cpp
fa8d584ca7984bf7d73ff37c7c2bc1e0dfa5fb71 20-Aug-2011 Jake Hamby <jhamby@google.com> Changes to RIL to support IMS features for LTE.

- There is a new RIL request, RIL_REQUEST_ISIM_AUTHENTICATION, which is
used to perform IMS AKA authentication using the algorithm on the ISIM
application of the UICC. The challenge nonce and response are both encoded
as Base64 strings.

Change-Id: I072b43d2b66b2013f8e58d3bd8251d75a453f167
/hardware/ril/libril/ril.cpp
beb25b58dcb48a2cfa2cfe10f5fb15908ff465f8 17-Jun-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Added a special retry back-off timer value for call retry

Added suggestedRetryTime value in v6 Data_Call_Response
structure so RIL can override retry back-off time
for some special cases.

Bug: 4723641
Change-Id: If5a683be6bcc1f530f0a5512ce3012a6102393d2
/hardware/ril/libril/ril.cpp
ee2745825fae9561c5f83fcf179bbbfa111e5224 17-Apr-2011 Wink Saville <wink@google.com> Fix debug output.

Previously I'd fixed the constant RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED
now I'm fixing the debug output.

Change-Id: I5115ce21141175140645a63d3937c7da21705f11
/hardware/ril/libril/ril.cpp
29487ef2685e5ee38f0348ab031cb96a608296ba 15-Apr-2011 Wink Saville <wink@google.com> Added additional comments to some commands for clarification.

Change RIL_UNSOL_CDMA_SUBSCRIPTION_CHANGED to
RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED.

Change-Id: Id946447c6ee9777696c3d7fa1a664ee7dc7deeba
/hardware/ril/libril/ril.cpp
a9c18d17769ee475cf4fd5e76e18ddfa4070c7cd 13-Apr-2011 Jake Hamby <jhamby@google.com> Fix RIL_UNSOL_RIL_CONNECTED to return the vendor RIL version. DO NOT MERGE.

The new RIL_UNSOL_RIL_CONNECTED call should return the version of
the vendor RIL library and not the version of rild. Fixes data
connectivity on Crespo.

Change-Id: Ib644216677e79b135214a546400372dd61c8d96d
/hardware/ril/libril/ril.cpp
5b9df33c53682addaebc0b6073901a8b441d82f9 07-Apr-2011 Wink Saville <wink@google.com> Add RIL_UNSOL_RIL_CONNECTED.

Change-Id: Id4cc2aff00ad0398f7a24e7f5a24626e5a63425a
/hardware/ril/libril/ril.cpp
2c1fb3a4e7aa8039bdefacceec98aa43cfe5784c 19-Mar-2011 Wink Saville <wink@google.com> Change mock-ril and reference-ril to use include/telephony/ril.h

I've done this by change the copy to a symbolic link, this allows
us to easily change from using the common include/telephony/ril.h
to a separate instance when ril.h is evolving.

Bug: 3457628
Bug: 4132203
Change-Id: Idd8029e57dd0b2afc16c2659dbbc3e587b438f0a
/hardware/ril/libril/ril.cpp
fd7293711394c422711ff07d15a357955ff2194f 23-Feb-2011 Wink Saville <wink@google.com> Fix bugs in responseSimStatus and update comments.

Change-Id: I4b4e6ab712d2a5da6f9102bf818628e9c3d05f3b
/hardware/ril/libril/ril.cpp
c0114b325877907fcdf7a5baa24e54a752e7e58b 18-Feb-2011 Wink Saville <wink@google.com> Changes for ril.h version 6.

- Changes to support LTE and EHRPD radio technology
- Support IPv6 in addition to IPv4 on the modems
- Detailed GPRS registration denied causes
- Access to multiple apps on UICC card
- Access to ISIM app on UICC
- Deprecate RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE as it can
causes problems when several PDN contexts are active. Failure reason
should be returned when setup_data_call returns
- Added RIL_RadioTechnology
- Added RIL_PreferredNetworkType
- Added RIL_CdmaSubscriptionSource
- Added RIL_LTE_SignalStrength
- Added AID to SIM requests as an optional parameter
- Add new error codes for returning disconnect reasons
- RIL_Data_Call_Response_v3/v5
Added fields to support IPv6 and return status as it will
now be returned as part of RIL_REQUEST_SETUP_DATA_CALL
- Rename RIL_REQUEST_REGISTRATION_STATE
to RIL_REQUEST_VOICE_REGISTRATION_STATE
response[3] return RIL_RadioTechnology for voice calls
response[13] more error codes
- Rename RIL_REQUEST_GPRS_REGISTRATION_STATE
to RIL_REQUEST_DATA_REGISTRATION_STATE
Changed response[3] to be RIL_RadioTechnology for data calls
Added response[4] error codes for registration being denied
Added response[5] Max simultaneous data calls
- RIL_REQUEST_SETUP_DATA_CALL
Changed data[0] to be RIL_RadioTechnology
Response is now a RIL_Data_Call_Response_v5
- RIL_REQUEST_DATA_CALL_LIST
Response is now a RIL_Data_Call_Response_v5
- RIL_UNSOL_DATA_CALL_LIST_CHANGED
Response is now a RIL_Data_Call_Response_v5
- RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE
Changed data[0] to be RIL_PreferredNetworkType
- RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE
Changed response[0] to be RIL_PreferredNetworkType
- Rename RIL_REQUEST_SET_CDMA_SUBSCRIPTION
to RIL_REQUEST_SET_CDMA_SUBSCRIPTION_SOURCE
- Added RIL_REQUEST_GET_CDMA_SUBSCRIPTION_SOURCE
- Added support for AID to RIL_UNSOL_SIM_REFRESH
- Added RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED
- Added RIL_UNSOL_PRL_CHANGED
- Added RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE
- Rename RIL_UNSOL_RESPONSE_NETWORK_CHANGED
to RIL_UNSOL_RESPONSE_VOICE_NETWORK_CHANGED

Have refercence-ril and mock-ril use a private copy of
ril.h so the ril may evolve separately from them.

Change-Id: I1b952069f5406f5dc42480d019970d10f0120358
/hardware/ril/libril/ril.cpp
af1298d72fd6a8b2d5bed7db15f6d181240fce83 04-Feb-2011 David 'Digit' Turner <digit@google.com> ril: Fix telephony under emulation.

This patch fixes several regressions that were introduced in
a recent rewrite of the native RIL support code, and which
prevent networking from working under emulation.

- 'apn' and 'type' were incorrectly swapped in the
AT+CGDCONT= command string, so the command was
never executed properly by the emulated modem.

- The PDP context type was not properly written to the
parcel in responseDataCallList() in libril/ril.cpp.
Due to this the Java RIL code ignored the response.

- The dns list returned by requestOrSendDataCallList()
was an empty string, which caused the Java RIL code to
fail with a "unknown host" exception when trying to setup
net.dns1

Change-Id: I7f4e6f6f45d197960ecb20e7e8592272921fe694
Note: You also need to apply this emulator patch to verify
this one: http://review.source.android.com//#change,20965

The code in requestOrSendDataCallList() assumes that
AT+CGACT? and AT+CGDCONT? will have answers with exactly
the same number of lines (this wasn't the case before
the emulator fix).
/hardware/ril/libril/ril.cpp
4380897c6cdc99486a061b819943e3b290ebcf09 14-Jan-2011 Wink Saville <wink@google.com> RIL v5 RIL_REQUEST_SETUP_DATA_CALL.

Change-Id: I30531e103416b1b817b9370304e3301a1c641cf5
/hardware/ril/libril/ril.cpp
57ce1f2709484ef8911cabe9b5629d0c21557bd4 13-Sep-2010 Lorenzo Colitti <lorenzo@google.com> Fix dispatchDataCall parcel length for v4 RILs.

Bug: 2995438
Change-Id: I31400ae2a79c3a6e7cb82158ab529dfddbb7144e
/hardware/ril/libril/ril.cpp
2640571b03bb2a95dbab65882bf7fce331d1e894 11-Sep-2010 Lorenzo Colitti <lorenzo@google.com> Properly handle version 3 vendor RILs.

Change-Id: I5a876aaebc17287a763eb243e2f2cdaff676c90b
/hardware/ril/libril/ril.cpp
4f81dcf2a9bc84cbfbb6d3d658c452c22e9b6e83 02-Sep-2010 Lorenzo Colitti <lorenzo@google.com> RIL changes for IPv6 / IPv4v6 data calls.

- Add a PDP type parameter to REQUEST_SETUP_DATA_CALL.
Make this backwards compatible: if we're called with a PDP type parameter and
the RIL doesn't support it, remove the parameter from the request so the RIL
never sees it.
- Change the description of the address field in the RIL_Data_Call_Response
structure and in the response to RIL_REQUEST_SETUP_DATA_CALL from an address
to a space-separated list of addresses. This preserves both source and binary
compatibility but allows new RILs to return both an IPv4 and an IPv6 address
for dual-stack data calls.

Change-Id: I0a77fc57c042bedfd18068c7faf7637a46f476d5
/hardware/ril/libril/ril.cpp
d855ef4370e1185d79ecb3fb3434c9b5f84d15bd 28-Jul-2010 Xia Wang <xiaw@google.com> Fix index error in the radiooptions enable/disable QXDM Log

Change-Id: I7eb2ac166ccee106751ba5cdb6400e37e8750063
/hardware/ril/libril/ril.cpp
0d9f0c0ea45a0239653e04f2c63ccecb1bc62c6b 26-Jun-2010 Dianne Hackborn <hackbod@google.com> Revert "am 9a2f5113: merge from open-source master"

This reverts commit bb1375f6bdc6cf7d8c3642367cf35565ddb094a8, reversing
changes made to ca5e347ce4b2b51385c4b7395d51c30498c41a6b.
/hardware/ril/libril/ril.cpp
bb1375f6bdc6cf7d8c3642367cf35565ddb094a8 25-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 9a2f5113: merge from open-source master

Merge commit '9a2f5113fd1db1e1605daad47b16b6f960045582'

* commit '9a2f5113fd1db1e1605daad47b16b6f960045582':
Add timer delete support to rild
ca5e347ce4b2b51385c4b7395d51c30498c41a6b 24-Jun-2010 jsh <jsh@google.com> Support for fetching PSC of serving cell.

Instead of adding a new RIL command, just extend RIL_REQUEST_REGISTRATION_STATE.

Bug: 2465036
Change-Id: I36c3a7b730cace66621fc513773ec97c453ea619
/hardware/ril/libril/ril.cpp
563fd7207da27322bf3f3587ef6000a944a617b7 09-Jun-2010 jsh <jsh@google.com> New RIL command to fetch PSC of current serving cell.

Bug: 2465036
Change-Id: Iccd177747bb78e2cd5ec6d9d22e47aa0e7bfd64b
/hardware/ril/libril/ril.cpp
9a2f5113fd1db1e1605daad47b16b6f960045582 22-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I0628d21b4bf629896dad7b9b5b6a9357021e1278
7edd07c9184a3abfaa3f4a161b74b3da9d7bbd56 22-Jun-2010 Naveen Kalla <nkalla@codeaurora.org> Add timer delete support to rild

Change-Id: Ia862f4cac116bf1ee98788c004860cdb2c70f356
/hardware/ril/libril/ril.cpp
7553447d44bb3f494b00d573215d81398f61cfcd 21-Apr-2010 John Wang <johnwang@google.com> Add RIL_E_ILLEGAL_SIM_OR_ME error code.

It is for bug 2571583 to provide better failure information of network operator selection.

Basically, network selection should return RIL_E_ILLEGAL_SIM_OR_ME when the failure is
permanent and don't need retry, such as illegal SIM, ME, HRL config, etc.

Change-Id: Idd5337423a3772febfcfe68b4a87eb3cf5a4696e
/hardware/ril/libril/ril.cpp
3a4840bea36ce53bc0fb181811ebf9d1cd0aa261 07-Apr-2010 Wink Saville <wink@google.com> Remove STOP SHIP logs and comments from ril.cpp.

bug: 2577644
Change-Id: I7021a12950b4a562c88c393ae75ad2394df3d655
/hardware/ril/libril/ril.cpp
3475b8a74bf3d1e94688604326d5dd0f6d441852 30-Jan-2010 John Wang <johnwang@google.com> am 2a7411dc: am 5909cf83: Add RIL_UNSOL_RESEND_INCALL_MUTE.

Merge commit '2a7411dc92f15111e36f72214216f96aab2c51f9'

* commit '2a7411dc92f15111e36f72214216f96aab2c51f9':
Add RIL_UNSOL_RESEND_INCALL_MUTE.
5909cf831f0d687e93164daaecc43a2ff792cc3a 29-Jan-2010 John Wang <johnwang@google.com> Add RIL_UNSOL_RESEND_INCALL_MUTE.

For bug 2400052.

Notification requires user resend mute/unmute to get uplink audio in a call.
/hardware/ril/libril/ril.cpp
7bce082edcee07339ebb06a35970b4b218ab8288 09-Jan-2010 Wink Saville <wink@google.com> Fix bug 2353510 "Sholes can't make a call from device".

Some new code in ril.cpp to handle both old and new rils
needed some tweaking so the new and old size was used.

bug: 2353510
/hardware/ril/libril/ril.cpp
dac5d5a630907424a999459cbd2c93069cdcfe84 24-Dec-2009 Wink Saville <wink@google.com> Fix build.

Change-Id: I2b28f321e48865212c3b970e61a86b578d71e89f
/hardware/ril/libril/ril.cpp
74fa38884320698c1623764850e3131b9769dff0 23-Dec-2009 Wink Saville <wink@google.com> ril interface: Add support for User-User Signaling Information during call setup

Define the UUS data structures and add a pointer to it in RIL_Call for
MT Calls and RIL_Dial for MO calls. UUS information can be used to pass
the skypeId on some networks. Make the corresponding changes to
serialize and deserialize the data at the RIL interface.

Change-Id: Ibbd471cd062910fd4c365f76e809cfb224bd34a2
/hardware/ril/libril/ril.cpp
03c1edf23e76a83b95ac6847e333cb1329bbfa1d 23-Sep-2009 Naveen Kalla <nkalla@quicinc.com> ril.h: Add a failure cause for CDMA call failures, rename
RIL_REQUEST_CDMA_VALIDATE_AKEY and minor clarifications
in the interface definitions.

Add failure cause for CDMA call failures due to access blocked by the
network. Specify the fields in RIL_REQUEST_REGISTRATION_STATE response
that are applicable to EVDO. Rename RIL_REQUEST_CDMA_VALIDATE_AKEY to
RIL_REQUEST_VALIDATE_AND_WRITE_AKEY. Elaborate the meaning of Akey in the
RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY message.
/hardware/ril/libril/ril.cpp
5d621da539abea83309d77317ede40126f47d5f0 19-Sep-2009 John Wang <johnwang@google.com> Add UNSOL_CALL_RINGBACK_TONE to ril.

Some networks may not play ring back tone, RIL will send UNSOL ringback notification.

It indicates to play tone to user for receiving ALERTING message.
/hardware/ril/libril/ril.cpp
084f6708312265b501561a9c6d6e9cb38943985c 19-Aug-2009 Jaikumar Ganesh <jaikumar@google.com> Release mutex locks on error conditions.
/hardware/ril/libril/ril.cpp
ee1fadc192a63724e416b05666844a62d1e75d38 12-Aug-2009 Kenny <gongwuchun@gmail.com> fix return value check issue in sendResponseRaw function
/hardware/ril/libril/ril.cpp
b589a1171e6c4a9524c7bac473514954571b5da1 22-Jun-2009 jsh <jsh@google.com> am 09a68ba3: Add remaining retry count to response for PIN/PUK commands.

Merge commit '09a68ba315ca3d6b092fd8078cc42b93b7934a1a'

* commit '09a68ba315ca3d6b092fd8078cc42b93b7934a1a':
Add remaining retry count to response for PIN/PUK commands.
09a68ba315ca3d6b092fd8078cc42b93b7934a1a 10-Jun-2009 jsh <jsh@google.com> Add remaining retry count to response for PIN/PUK commands.

RIL_REQUEST_ENTER_SIM_PIN
RIL_REQUEST_ENTER_SIM_PUK
RIL_REQUEST_ENTER_SIM_PIN2
RIL_REQUEST_ENTER_SIM_PUK2
RIL_REQUEST_CHANGE_SIM_PIN
RIL_REQUEST_CHANGE_SIM_PIN2
RIL_REQUEST_SET_FACILITY_LOCK
RIL_ENTER_NETWORK_DEPERSONALIZATION

Also add requestToString entry for REPORT_SMS_MEMORY_STATUS.
/hardware/ril/libril/ril.cpp
40202d7a40a84cddf88957de6e042503ebfa1920 10-Jun-2009 Jaikumar Ganesh <jaikumar@google.com> am 920c78f1: Add authType to SETUP_DATA_CALL, errorCode to RIL_SMS_Response.

Merge commit '920c78f166e787dc799bf5df7d6be30034ac0e77'

* commit '920c78f166e787dc799bf5df7d6be30034ac0e77':
Add authType to SETUP_DATA_CALL, errorCode to RIL_SMS_Response.
920c78f166e787dc799bf5df7d6be30034ac0e77 04-Jun-2009 Jaikumar Ganesh <jaikumar@google.com> Add authType to SETUP_DATA_CALL, errorCode to RIL_SMS_Response.

1.Add an additional parameter to specify the
authType (PAP / CHAP) to SETUP_DATA_CALL.
2.Add errorCode to RIL_SMS_Response
/hardware/ril/libril/ril.cpp
a2f6c8a60f349acc9808a7406470d00b7ddc35b2 10-Jun-2009 Wink Saville <wink@google.com> am 7f856808: Cleanup whitespace.

Merge commit '7f8568086f2ea14885b0091c793e14c2656f0da2'

* commit '7f8568086f2ea14885b0091c793e14c2656f0da2':
Cleanup whitespace.
7f8568086f2ea14885b0091c793e14c2656f0da2 09-Jun-2009 Wink Saville <wink@google.com> Cleanup whitespace.
/hardware/ril/libril/ril.cpp
15d535048cf4acac97b24d025dac2162ac449bb0 03-Jun-2009 johnwang <johnwang@google.com> am b2a6184e: Allow response payload on RIL_REQUEST error

Merge commit 'b2a6184ec942c4c1728cbac723db90fbed4f85c5'

* commit 'b2a6184ec942c4c1728cbac723db90fbed4f85c5':
Allow response payload on RIL_REQUEST error
b2a6184ec942c4c1728cbac723db90fbed4f85c5 02-Jun-2009 johnwang <johnwang@google.com> Allow response payload on RIL_REQUEST error

Enable response payload while RIL_REQUEST returns error. RIL must explicitly pass NULL
for the response parameter if there is no response payload.

modified: ril.cpp
/hardware/ril/libril/ril.cpp
2a058e1ad9d1df198a161e40fced963e9f49ca03 29-May-2009 Wink Saville <wink@google.com> am a592eebc: Cleanup and changes of responseCdmaInformationReocrds, Broadcast SMS configuration and reponseRilSignalStrength.

Merge commit 'a592eebc476a3d234f47f93e58252f8c822fc772'

* commit 'a592eebc476a3d234f47f93e58252f8c822fc772':
Cleanup and changes of responseCdmaInformationReocrds, Broadcast SMS
a592eebc476a3d234f47f93e58252f8c822fc772 22-May-2009 Wink Saville <wink@google.com> Cleanup and changes of responseCdmaInformationReocrds, Broadcast SMS
configuration and reponseRilSignalStrength.

From Motorola, change reponseCdmaInformationRecords to use string for
marshalling and simplify by removing duplicate code.

Change Broadcast SMS configuration adding some some new fields
for Gsm Broadcast configuration and some name changes to be
more coherent.

Cleanup responseRilSignalStrength, includes some code refactoring
and removing the sending of the number of intergers. Now it is assumed
that a RIL_SignalStrength structure being sent so it is not necessary to
send the length. There is a corresponding change in
frameworks/base/telephony/java/com/android/internal/telephony/RIL.java.
/hardware/ril/libril/ril.cpp
e5c30e1e3f5bed38915e3ddb7e9f6645031b7b1a 26-May-2009 johnwang <johnwang@google.com> am fdf825f9: Enable new libhtc_ril which supporting new CDMA ril interface.

Merge commit 'fdf825f9d0dc639787b8523638bb61874ed0b540'

* commit 'fdf825f9d0dc639787b8523638bb61874ed0b540':
Enable new libhtc_ril which supporting new CDMA ril interface.
fdf825f9d0dc639787b8523638bb61874ed0b540 23-May-2009 johnwang <johnwang@google.com> Enable new libhtc_ril which supporting new CDMA ril interface.

1) Enable new libhtc_ril and support new RIL_Call structure 2) Remove "#define NEWRIL".
/hardware/ril/libril/ril.cpp
8a3c48c4eac62f9c25ab3f0dbfd8f829a1e32778 20-May-2009 Mathias Agopian <mathias@google.com> move libbinder's header files under includes/binder
/hardware/ril/libril/ril.cpp
3d54e74bc450bb40977e3ae6fab6185fe687bdae 19-May-2009 Wink Saville <wink@google.com> Teleca 2b changes.
/hardware/ril/libril/ril.cpp
000a9fe96fdf9111387d2bc389d2f6bb3e627d0f 11-May-2009 jsh <jsh@google.com> Add get/set SMSC address to ril.h.
/hardware/ril/libril/ril.cpp
af6ecbf0fa03379818038459ee1b61ea393ffd4f 29-Apr-2009 Jaikumar Ganesh <jaikumar@google.com> Add RIL_UNSOL_OEM_HOOK_RAW

Add RIL_UNSOL_OEM_HOOK_RAW to send unsolicited OEM
commands from the baseband.

Tested using radiooptions tool.
/hardware/ril/libril/ril.cpp
f5903dfd25c2ef104b3e9267b53f6ee3e7588063 24-Apr-2009 Wink Saville <wink@google.com> Teleca 090414 & 090423 patches for CDMA to complete phase1 work.
/hardware/ril/libril/ril.cpp
1b5fd23e2bc82e5bed48125317cf2f9837cf6ae8 22-Apr-2009 Wink Saville <wink@google.com> New ril.h & changes to ril.cpp to support it.

There are NEWRIL:TODO's in the code to identify
additional changes needed when a new vendor ril
is delivered.

Also changes to some appendPrintBuf's, apparently
it's been a while since debug has been turn on
as there were quite a few compile time errors.
/hardware/ril/libril/ril.cpp
f4c4d36c410a3501d282dd7de1c7c3350734f27e 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
/hardware/ril/libril/ril.cpp
ff36874070b246c40f2ecfcbd584a2d663fa493d 25-Mar-2009 John Wang <> Automated import from //branches/donutburger/...@140572,140572
/hardware/ril/libril/ril.cpp
34a5108969fbfc6cf8140513b7246da805902b7a 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/hardware/ril/libril/ril.cpp
00f06fc3fdb05d4276e76091cacb42b6f6862222 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/hardware/ril/libril/ril.cpp
c2efc51d848d68147320a5983954f9c76428885c 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/hardware/ril/libril/ril.cpp
31f41943663ccc71bef87d42585b04afb23f6754 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/hardware/ril/libril/ril.cpp
80bb41e3445d96fb8508609e5bfcae6ea477da18 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/hardware/ril/libril/ril.cpp
154a2efc9b75de255cf9c3916d9d778c445df2ae 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/hardware/ril/libril/ril.cpp
a8657f8726ba81b72eb532c884545b4ad52ff471 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/hardware/ril/libril/ril.cpp
dbbb392e15b5ace6f19e76c49c80ea14292e8a4d 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/hardware/ril/libril/ril.cpp