summaryrefslogtreecommitdiffstats
path: root/reference-ril
Commit message (Collapse)AuthorAgeFilesLines
* reference-ril: fix asan errorbohu2018-03-201-1/+1
| | | | | | BUG: 74981776 Change-Id: I9e321fd6b34fe2a37a5e22668f7070f6da7d9f46
* Revert "Emulator: add CSIM authentication support"Bo Hu2018-03-161-81/+14
| | | | | | | | | This reverts commit 1a0999f5359912a5f8b43ecb242b6fcb1de6c769. Reason for revert: regression Change-Id: Iaccff16f66132418e744531db117c7d6af21a90a BUG: 75284151
* Emulator: add CSIM authentication supportbohu2018-03-151-14/+81
| | | | | | | | | | | | BUG: 72886046 BUG: 37719621 BUG: 70507162 Test: run cts -m CtsCarrierApiTestCases -t android.carrierapi.cts.CarrierApiTest#testGetIccAuthentication Change-Id: I4438eab706ba4c0bd360600a1eb7322b186c9e82 Signed-off-by: Roman Kiryanov <rkir@google.com>
* Emulator: use RIL_CellInfo_v12bohu2018-03-121-1/+4
| | | | | | | | | | | RIL_CellInfo is deprecated and it fails CTS test BUG: 72886046 Test: run cts -m CtsTelephonyTestCases -t android.telephony.cts.CellInfoTest#testCellInfo Change-Id: I814322824836c91e9a9ad7807a6edb06f2047245 Signed-off-by: Roman Kiryanov <rkir@google.com>
* Emulator: use APPTYPE_USIM instead of APPTYPE_SIMbohu2018-03-121-5/+5
| | | | | | | | | | | | The USIM is assumed to be available by default now. (previously SIM is default) BUG: 72886046 Test: run cts -m CtsTelephonyTestCases -t android.telephony.cts.TelephonyManagerTest#testGetForbiddenPlmns Change-Id: I7161df9eb0317cf2c6978b5b4af2332ce91da8a9 Signed-off-by: Roman Kiryanov <rkir@google.com>
* Emulator: set correct MEID for non-CDMA phonebohu2018-03-091-0/+1
| | | | | | | | | | For GSM phone, the MEID should be empty. BUG: 72886046 Test: un cts -m CtsTelephonyTestCases -t android.telephony.cts.TelephonyManagerTest#testGetMeid Change-Id: Id0cabe87f417fe284b41f5394c755cfbd3bd689c
* Emulator: support querying device identitybohu2018-03-091-3/+7
| | | | | | | | | | | | Current reference-ril only support CDMA type; Changed it to support Non-CDMS type (such as GSM) as well. BUG: 72886046 Test: run cts -m CtsTelephonyTestCases -t android.telephony.cts.TelephonyManagerTest#testGetImei Change-Id: I8a5f61d96568b22f990da2004248436fcef7a51a Signed-off-by: Roman Kiryanov <rkir@google.com>
* Use system property gateway if not using WiFiBjoern Johansson2018-03-091-4/+10
| | | | | | | | | | | | | | | | | When running with WiFi the IPv4 gateway for the radio interface is known and can be hardcoded, even if TAP is enabled. This is because the gateway is the internal address in the router namespace. Without WiFi the radio interface is eth0, the public interface. The gateway for this interface can be dynamic if running with TAP networking so in that case it can't use a hardcoded gateway the way it used to. The DHCP client will set the net.eth0.gw system property to the gateway of the host network so use that property to give the correct gateway to the radio interface. Bug: 72886046 Test: manual, build and ran the emulator (steps from CTS tests) Change-Id: I110a1216cccc846a48befe4c8cb2e602ed63752f (cherry picked from commit cf111309af68ab095371ef495d2c78e1faf885a6) (cherry picked from commit 0de94de9dc67db550f50bf2ffe3360b7ce02907d)
* Merge "Enable/disable radio interface on setup/deactivate" into pi-devTreeHugger Robot2018-03-081-12/+81
|\
| * Enable/disable radio interface on setup/deactivateBjoern Johansson2018-03-071-12/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a RIL request to setup or deactivate data calls the radio interface would previously be left up. This caused some problems for IPv6 when switching between WiFi and radio. When WiFi was disable the radio interface would not send a router solicitation and so the IPv6 router table would not be populated with a default gateway. Disabling and enabling the interface solves this since enabling the interface triggers the router solicitation. Additionally this also makes networking unavailable when radio data is turned off as one might expect. Bug: 72886046 Test: manual, build and ran the emulator (steps from CTS tests) Change-Id: I658ebd8ea6e691a6ffb829e38e1ebbec67002645 (cherry picked from commit 9d552844e9936d03cc5a8856040fca18a2d2f5ac) (cherry picked from commit 857f2d522c5163d8bbcf4ba5c9394d043fbc5b82) Signed-off-by: Roman Kiryanov <rkir@google.com>
* | reference-ril: add owner from emulator teambohu2018-03-051-0/+9
|/ | | | | | | | | | | | The emulator team has been modifying reference-ril and would like to have a owner on this subdir for quicker turn around of bug fixes This cl copied the OWNERS file from hardware/ril to reference-ril/ and added bohu@ Change-Id: I6598af1827da32f67fed71c732fee111605d1186 (cherry picked from commit c89f255e8bb17cf2b91e4e46b6b5e937a908131f)
* Add support for WiFi in the emulatorBjoern Johansson2018-02-261-5/+26
| | | | | | | | | | | | | The way WiFi works in the emulator requires changes to the reference RIL in setting up interfaces. The interface name and gateway provided by RIL changes when the emulator indicates support for WiFi. This information is used to set up default routes which is needed for internet connectivity. Exempt-From-Owner-Approval: Change-Id: I5dface583519ac36d12d16315b059866baaf73a5 (cherry picked from commit 021f5783a6c3c2a9793e3ac46e9ba0c9a6607235) (cherry picked from commit 4710ed193d827066d08b46d75ce6315a983c7402) Signed-off-by: Roman Kiryanov <rkir@google.com>
* Merge "Revert "reference-ril: fix emulator gateway""Tao Wu2018-01-241-1/+1
|\
| * Revert "reference-ril: fix emulator gateway"Tao Wu2018-01-241-1/+1
| | | | | | | | | | | | | | | | This reverts commit 0c389bf755acc18fb44dff5f3a32385352e69656. Reason for revert: the right fix should be r.android.com/597929 Change-Id: Icc97c003b6dee7ada22748950e08cd5e0d5913c8
* | Fix more VTS HAL Radio testsJim Kaye2017-12-071-72/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With VTS 8.0 r4, 16 new VTS failures appeared in the Emulator. These failures were all due to unexpected responses (some error, some no-error) from the Radio Interface Layer. This CL has reference-ril give the expected responses. With this CL, 122 of 129 of these tests pass (again). (The remaining 7 tests still fail. These 7 are related to SAP.) The 16 previously-failing tests were in HidlHalGTest#RadioHidlTest: setNetworkSelectionModeAutomatic_32bit startLceService_32bit pullLceData_32bit sendSms_32bit sendSMSExpectMore_32bit acknowledgeLastIncomingGsmSms_32bit sendCdmaSms_32bit writeSmsToSim_32bit hangup_32bit hangupWaitingOrBackground_32bit hangupForegroundResumeBackground_32bit switchWaitingOrHoldingAndActive_32bit conference_32bit rejectCall_32bit cancelPendingUssd_32bit separateConnection_32bit Bug: 62137708 Test: VTS tests: VtsHalRadioV1_0Target Change-Id: Ic1d89e1d09d8ef1976cb6b78c863a84d7b1505e1
* | Merge "Fix VTS HAL Radio tests" am: 4af7529e39 am: 9e633f3956Jim Kaye2017-10-181-31/+125
|\ \ | | | | | | | | | | | | | | | am: 61e17974bc Change-Id: I902e8a3e0c5dd30906c9b93fea64ac563f90ec54
| * \ Merge "Fix VTS HAL Radio tests"Jim Kaye2017-10-181-31/+125
| |\ \ | | | | | | | | | | | | | | | | | | | | am: 4af7529e39 Change-Id: I6204d090a9d4b527eee00e5ed76ec15cb4769176
| | * | Fix VTS HAL Radio testsJim Kaye2017-10-111-36/+125
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get VTS HAL Radio tests working for Emulator. With this CL, 122 of 129 of these tests pass. (The remaining 7 tests still fail. These are related to SAP.) Bug: 62137708 Test: VTS tests: VtsHalRadioV1_0Target Merged from If8b100c448f7f6b605d28af6a2ac2f03197c0137 Change-Id: Ieab832ab1a836087ca0f6d542128520000fffc71
* | | Merge "reference-ril: fix emulator gateway" am: a66fd94317 am: 82ab4714c8bohu2017-10-041-1/+1
|\| | | | | | | | | | | | | | | | | am: 5d16d0f41f Change-Id: Ib79c54fd107b418f7a457f04d5284cd7fad0cb78
| * | Merge "reference-ril: fix emulator gateway"bohu2017-10-041-1/+1
| |\| | | | | | | | | | | | | | | | am: a66fd94317 Change-Id: I0d2dd97cf0bd96d4d1a25d51265599c97108fea7
| | * reference-ril: fix emulator gatewaybohu2017-10-041-1/+1
| | | | | | | | | | | | | | | BUG: 67221233 Change-Id: I2927d5ca9887f9cd23a810c097b3bbd0756a49b7
* | | Merge "Fix VTS test case HidlHalGTest#RadioHidlTest.getIccCardStatus_32bit ↵kun.tang2017-07-131-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | failed." am: 78b80ee72d am: c7d49fa255 am: 417202e99c am: 3a533d8882 Change-Id: Ic634e1a7f183f26c27e2a4c926ec2aa8bb205a6a
| * | Merge "Fix VTS test case HidlHalGTest#RadioHidlTest.getIccCardStatus_32bit ↵kun.tang2017-07-121-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | failed." am: 78b80ee72d am: c7d49fa255 am: 417202e99c Change-Id: I1772de0212eaa47d55a9bd58e3b5d4db5a64e0a3
| | * Merge "Fix VTS test case HidlHalGTest#RadioHidlTest.getIccCardStatus_32bit ↵kun.tang2017-07-121-3/+3
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | failed." am: 78b80ee72d Change-Id: Ic3f8b88e1b96d190ba09852f5436e65d017d8442
| | | * Fix VTS test case HidlHalGTest#RadioHidlTest.getIccCardStatus_32bit failed.kun.tang2017-07-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the ril.h, the annotation of gsm_umts_subscription_app_index is "value < RIL_CARD_MAX_APPS, -1 if none". But in the reference-ril.c, the gsm_umts_subscription_app_index is initialized to RIL_CARD_MAX_APPS. The VTS test case HidlHalGTest#RadioHidlTest.getIccCardStatus_32bit failed with the reason :"Expected: (cardStatus.gsmUmtsSubscriptionAppIndex) < ((int)RadioConst::CARD_MAX_APPS), actual: 8 vs 8" gsm_umts_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ cdma_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ ims_subscription_app_index; /* value < RIL_CARD_MAX_APPS, -1 if none */ Test:build Change-Id: I3f7ade93e2f0f7099d934a1b50e01ff04c8c01da
| | * | Merge "Fix loc of libreference-ril LOCAL_VENDOR_MODULE" am: 22f2df2fa0Steven Moreland2017-06-161-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | am: af4d205bd3 Change-Id: I24f5ca8c3ebe1e05818f360a3ab38cbf6733259a
| | | * Fix loc of libreference-ril LOCAL_VENDOR_MODULESteven Moreland2017-06-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wasn't being applied before. Test: build with BOARD_VNDK_VERSION current Bug: 37429672 Merged-In: I4f55d4d165a5e14c46726c6325e704ca8a6ceebc Change-Id: I4f55d4d165a5e14c46726c6325e704ca8a6ceebc (cherry picked from commit eeebae62179fe2085411fa7463615068bc19e8f6)
| | * | Merge "Move librilutils to vendor." am: fdbf7cd9f5Steven Moreland2017-06-161-0/+2
| | |\| | | | | | | | | | | | | | | | | | | | | am: ed4665aefc Change-Id: Id29bca8809bc4848b5386dafea9e7b3210e9d2b5
| | | * Move librilutils to vendor.Steven Moreland2017-06-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: CleanSpec.mk works Test: Works with BOARD_VNDK_VERSION := current Test: Phone call works Fixes: 37429672 Merged-In: I605732a88dc57132d8fa4bbfa70a3c9b47b0e0ff Change-Id: I605732a88dc57132d8fa4bbfa70a3c9b47b0e0ff (cherry picked from commit 4ef3e136c440153bb1173457f64bec9f2fecb81e)
* | | | rild: fix missing simcard in emulatorbohu2017-07-021-5/+31
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds one additional application: ims, in addition to existing gsm and cdma applications. Test: build sdk_phone_x86-eng, launch emulator and the radio should work. Change-Id: Icc2a2ba77741b4ec504d521f994af666aa168bdc
* | | Merge "Also setup IPv6 gateway for emulator." am: f75ebd7434 am: 9b42a8c2d1 ↵Tao Wu2017-06-011-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | am: a30b650899 am: 9ee260040c Change-Id: Ice58078a225b1dbca0636a11d5973a081f4d8c64
| * | Merge "Also setup IPv6 gateway for emulator." am: f75ebd7434 am: 9b42a8c2d1Tao Wu2017-06-011-2/+1
| |\| | | | | | | | | | | | | | | | am: a30b650899 Change-Id: I5ba96bb910231ad261cb0d1620f852f00ddaf889
| | * Also setup IPv6 gateway for emulator.Tao Wu2017-05-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this, after switch on/off flight mode, emulator IPv6 network stops working. Test: manual - switch of/off flight mode and then visit ipv6.google.com Bug: 38496839 Change-Id: I3f33b0f8784a83ba99e25a0062f1829e9cfc0485 Signed-off-by: Tao Wu <lepton@google.com>
* | | Fix loc of libreference-ril LOCAL_VENDOR_MODULESteven Moreland2017-05-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Wasn't being applied before. Test: build with BOARD_VNDK_VERSION current Bug: 37429672 Change-Id: I4f55d4d165a5e14c46726c6325e704ca8a6ceebc
* | | Move librilutils to vendor.Steven Moreland2017-04-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Test: CleanSpec.mk works Test: Works with BOARD_VNDK_VERSION := current Test: Phone call works Fixes: 37429672 Change-Id: I605732a88dc57132d8fa4bbfa70a3c9b47b0e0ff
* | | Fix warnings and set Werror flags to not let them happen again.Tomasz Wasilczyk2017-04-122-11/+3
| | | | | | | | | | | | | | | | | | Test: it builds. Bug: b/37159108 Change-Id: I3b0d6376d81615774b60e71a6eebf6f38224df88
* | | Allow newer message format indicating signal strengthJim Kaye2017-04-031-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code expected v6 of the cellular signal strength message. The framework allows up to v10, which takes more memory. In fact, the framework requires that it be given a buffer that is the right size for a v10 message. This code now uses a buffer that is sized for v10. It accepts either a v6 or a v10 message. Bug: b.android.com/316334 Test: Manually verified correct behavior with Emulator. Change-Id: Iaf8dda0e441393b6fde899fa30bcc90a4413f0ef
* | | Revert "Revert "Emulator: adjust reference-ril to the refactored qemu_pipe""bohu2017-03-302-1/+3
| | | | | | | | | | | | | | | | | | This reverts commit 05bab0b719b75925482ab8631ceefc279ecb8656. Change-Id: I9064151573cf6fdc6b84f9708b5ae223ef42d318
* | | Revert "Emulator: adjust reference-ril to the refactored qemu_pipe"bohu2017-03-282-4/+2
| | | | | | | | | | | | | | | | | | | | | This reverts commit 4799b529349e229cba4c2d5fe48454a8b3d32d09. This change is being reverted because it broke the git_master build for full-eng and other targets.
* | | Emulator: adjust reference-ril to the refactored qemu_pipebohu2017-03-172-2/+4
|/ / | | | | | | | | | | | | | | qemu_pipe is refactored into a library in system/core/qemu_pipe, and reference-ril needs to adjust accordingly. Change-Id: I13160ce6a07a721501fd893dd9c5a9931927e767 (cherry picked from aosp commit 7b7267ac17fa6d557a762f23cb5b7e97de21372f)
* | Fix warning in reference rilWei Wang2017-02-081-1/+1
| | | | | | | | | | | | Bug: None Test: mma Change-Id: I899adb43c908aefb0bf9cd1c34a3faa16fe1c185
* | Fix race condition in at_send_command_*Weilun Du2017-02-074-18/+41
| | | | | | | | | | | | | | b/34883617 Change-Id: I946125e1c4db44e05afbc0e5d1fb22cc880f1d89 Signed-off-by: Weilun Du <wdu@google.com>
* | Implement support for logical channelsBjoern Johansson2017-01-121-12/+142
| | | | | | | | | | | | | | | | | | | | This implements support for RIL_REQUEST_SIM_OPEN_CHANNEL, RIL_REQUEST_SIM_CLOSE_CHANNEL and RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL requests, translating these into the proper AT commands. BUG: 31808032 Change-Id: I0444df4a0a031c429c9128b9df73bf4c6f87e5b6 (cherry picked from commit d800fdcae8786ef65abee53228f14fab817a8146)
* | resolve merge conflicts of 56ad8b4 to masterNaveen Kalla2016-11-081-2/+2
|\| | | | | | | | | | | Test: Build successfully Change-Id: Ie317dca9dccf4d9cb77c821f7c97643fd8f34a19
| * Merge "Remove deprecated RADIO_STATES"Naveen Kalla2016-11-091-2/+2
| |\ | | | | | | | | | | | | | | | am: b7f1226866 Change-Id: I15c5c754fdcb36391cbe6032fc11ca2dbf138005
| | * Remove deprecated RADIO_STATESNaveen Kalla2016-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove deprecated radio states which carried the SIM state information. Vendor RILs are not expected to send one of the 3 RADIO states (ON, OFF or UNAVAILABLE) and support the RIL requests RIL_REQUEST_VOICE_RADIO_TECH and RIL_REQUEST_CDMA_SUBSCRIPTION_SOURCE. Bug: 32224323 Test: Ensure device boots and camps on network. Basic voice calls and mobile data works Change-Id: I2ae4a71c33c43263c64822c294d43363baeb5ad5
* | | Merge "Retire socket_loopback_client." am: ecc7336e5c am: 14f6f0c59c am: ↵Elliott Hughes2016-10-131-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | c056e49a99 am: 87e2f3e918 Change-Id: Iafc545ca74cd6b9175ea06e6723c6bcefc4c566f
| * | Merge "Retire socket_loopback_client." am: ecc7336e5c am: 14f6f0c59cElliott Hughes2016-10-131-1/+1
| |\| | | | | | | | | | | | | | | | am: c056e49a99 Change-Id: I862d1d234394ba6e5ef76993cb4a39454f76b478
| | * Retire socket_loopback_client.Elliott Hughes2016-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Making the world safe for IPv6. Bug: http://b/31537253 Test: builds Change-Id: If8478aec17892f49e856d6220b72e4585ee9c078
* | | Merge "Fix memory leak in requestSendSMS" am: 07b1732d84 am: 3fbcb63219 am: ↵Sanket Padawe2016-09-231-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | 2ea3dd7197 am: a9a25549dd Change-Id: Icf3801cfa0a37dca0e9f27fec4c744a3981fc154