aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed invalid pdu issueHEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004cm-13.0Pengquan Meng2018-06-191-0/+29
| | | | | | | | | | | | | | | | | | The device may receive invalid sms pdu, i.e the pdu contins sms header with an invalid seqNumber. This caused InboundSmsHandler crashed constantly. This CL added the range check for the seqNumber to ensure the InboundSmsHandler will not crash even if the seqNumber is invalid. Test: runtest -x GsmInboundSmsHandlerTest -m testMultiPartSmsWithInvalidSeqNumber Bug: 72298611 Merged-In: Icf291c8530abdc2a528c5cf227cf00135281b899 Change-Id: Icf291c8530abdc2a528c5cf227cf00135281b899 (cherry picked from commit 9eec9d02937dd41fc94ad1c874f8467f4698df5c) (cherry picked from commit d2f410c0ff07c5a7b79e61bc36527b0259677de7) (cherry picked from commit e8955271c5ca1595ae7c495b6cd7c5f8515d65ea) CVE-2018-9362
* telephony: Remove leftover translationsAndreas Blaesius2018-06-112-73/+0
| | | | Change-Id: I233777b244391cd003f26b9a517fb40c7f08ebcb
* SubscriptionInfoUpdater: Unbreak usage of TelephonyPluginreplicant-6.0-0003replicant-6.0-0002replicant-6.0-0001Ricardo Cerqueira2016-11-161-3/+7
| | | | | | | | | | | | | | | | | Change I5b829662b466f609cd22adfa7d3b754757258463 made some changes to how and when we accept to update the subInfo records which depend on state flags and messages added the SubscriptionInfoUpdater. However, a delegated TelephonyPlugin (say... QTI extensions) isn't aware of those, won't manipulate them, and won't generate the expected update messages, resulting in missed data updates and inconsistent subscriptionInfo objects (in particular, as a result of hot swaps) So... return the behavior of the exported updateSubscriptionInfoByIccId() to the original expectations, and reserve the new behavior for internal calls. Change-Id: I4c9e9c40756d049d346145cb03e0c3c5c84e13ad
* MSIM: Pass slotId to EVENT_SIM_LOCKED_QUERY_ICCID_DONESandeep Gutta2016-11-161-1/+1
| | | | | | | While obtaining message for event EVENT_SIM_LOCKED_QUERY_ICCID_DONE pass slotId in message arg1 field as it is being used at proprietary space. Change-Id: If37f1337ed1a23195f1fbaf4d63715444250551f
* MSIM: Change access modifier of handleSimLoadedSandeep Gutta2016-11-161-2/+2
| | | | | | | | | | Change access modifier of below method and enum to protected - handleSimLoaded() - EVENT_SIM_LOCKED_QUERY_ICCID_DONE Change-Id: Ie676caf2fc4de5cbc1cc500d0bea104f6a264f11 CRs-Fixed: 1033865
* properly check empty stringMarcos Marado2016-10-261-3/+1
| | | | | | Also, remove no-op "else" clause. Change-Id: I0146d6aaefab1c4700738f8cf1bcb0e016e37368
* Don't send MMS reception notices to the wap push handlerRicardo Cerqueira2016-10-131-1/+1
| | | | | | That's for SL/SI only... Change-Id: I0fe834b2270f79f87813bc8081e064bf4c24f26b
* Telephony: Show the sender address of WAP push messageyanglv2016-10-042-3/+18
| | | | | | | | | Deliver sender address of WAP PUSH message to Messaging application. Issue: PAELLA-286 Change-Id: I2a3370b6065ce5bedf9bfee152058a9575d16c32 CRs-Fixed: 593718
* Allow to define a default app to handle Wap PushMarcos Marado2016-10-032-1/+16
| | | | | | | | | | | | | | Android handles Wap Push messages by sending them to the default MMS package, if one exists, and broadcasts it if not. This patch creates an overlayable string which, if set, will announce what should be the Wap Push receiver app. If that string (and package) is available, then the message will be sent to it instead. If not, the previous behavior is maintained: message will go to the default MMS package (if there's one), or broadcasted. Issue: PAELLA-286 Change-Id: I0e4624dab4e51abfc4e3e048c2d88932aa4af616
* CdmaServiceStateTracker: Load CarrierConfig for NV SubscriptionAaron Knight2016-09-191-0/+25
| | | | | | | | | | | | | | | | | | Currently CDMA devices using an NV subscription end up with the default set of CarrierConfig values, leading to many wrong behaviors as their vendor overrides do not get loaded. This is because the CarrierConfig is loaded based on the SIM events, which are not issued for NV since its not a SIM card. This patch triggers the CarrierConfig to be loaded on the NV_READY event. This fixes many buggy behaviors for NV subscriptions, most notably in the mobile network settings menu, where things such as the world_phone menu and APN settings menu could be drawn incorrectly or not at all for the device, despite the correct overrides being set. Change-Id: I1fde4f520d94bc88479a6b10c19c23518bbf7e78
* Merge tag 'android-6.0.1_r66' into HEADJessica Wagantall2016-09-071-1/+58
|\ | | | | | | Android 6.0.1 release 66
| * Do not allow premium SMS during SuWfionaxu2016-07-211-0/+6
| | | | | | | | | | | | Bug: 29420123 Change-Id: I41ef7138635f11fbe7f495dd81103458cb969c35 (cherry picked from commit 15f55ca2f204e664807e047b5f898693b274bab6)
| * DO NOT MERGE add private function convertSafeLablefionaxu2016-07-201-1/+52
| | | | | | | | | | | | | | | | | | Bug: 28557603 Change-Id: I8d6a13a71011c38e7dd7039fa7ae0a69cf6adc2e Merge conflict resolution of ag/1193341 to mnc-dr1.6-release Change-Id: I44cec7b2f841fb01a0dcaf2d512de2e53b59dad6
* | Revert "Revert "Fix problem with cell data service after SIM swap""Vineeta Srivastava2016-09-071-6/+1
| | | | | | | | | | | | | | | | This reverts commit 39f58e35ce1615ebef918562299b8c349a68f463. Bug: 25602190 Bug: 25953443 Change-Id: Iae0dea164d6c25771e79759715f4e39d13303949
* | Telephony: fix SMS NPERoman Birg2016-09-021-1/+1
| | | | | | | | | | | | | | Ticket: CYNGNOS-1094 Change-Id: Ia3c4327a185e4c182a4e4ad6c91c01fd0e62a3aa Signed-off-by: Roman Birg <roman@cyngn.com>
* | Skip unknown tags instead of aborting when parsing UICC TLV dataThomas Wendt2016-08-241-3/+6
| | | | | | | | | | | | | | This fixes issues like broken mobile data and no outgoing calls for SIM cards that return unkown tags (at least F1 has been seen in the wild). Change-Id: I4fe5ddc7992b1b3bb025f2a5f9e2b3f410d54841
* | Implement UICC TLV Data decoding.Shantur Rathore2016-08-202-28/+217
| | | | | | | | | | | | | | | | | | | | | | | | Some phones / SIMs returns data in TLV format as decribed in ETSI TS 102 221 11.1.1 This enables parsing of TLV data if it finds one. This fixes reading of SIM_IO data like ICCID, MSISDN, etc on affected SIMs. In CM-12 this is needed for phone to function properly. In CM-12 Multisim support requires ICCID. If ICCID is not found then user is unable to make any outgoing calls. User is shown "Call not sent" error. Change-Id: I0fe20a9ec4cdd6021e7cb614ae578bc1c2c1d1fd
* | DCT: Tear down MMS+default connections raised by ↵Ricardo Cerqueira2016-08-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | config_enable_mms_with_mobile_data_off If the tracker lets an MMS connection go through even if data is off, make sure it's torn down once the disabled state gets applied. More often than not, APNs configured as MMS+data would remain alive, and the tracker's state machine would get stuck out of sync Ref: CYNGNOS-3239 Change-Id: Ia13e9ff5beea44ecfda40a4910990dab53af25dd
* | Merge tag 'android-6.0.1_r61' into HEADJessica Wagantall2016-08-022-0/+12
|\| | | | | | | | | | | Android 6.0.1 Release 61 (MOB30Z) Change-Id: I1579189596cf269ec8c80b7efb006711ae2236a9
| * backport security fix: avoid set NITZ time to 2038fionaxu2016-06-242-0/+12
| | | | | | | | | | Bug: 29083635 Change-Id: I21c5f4147d8146f92b7e33f0967a179ae644a263
* | DctController: fix mismerge with getTopPriorityRequestPhoneId()Roman Birg2016-07-181-0/+12
| | | | | | | | | | | | | | | | Add back logic from change-id I57fee028d9ac0e91d94eb70f8ea75c7fcb5f7087 Change-Id: Ice8026fa75126903bdb756c663008b68fafef60b Signed-off-by: Roman Birg <roman@cyngn.com>
* | GsmSS: Use per-slot resources for carrier-bound optionsRicardo Cerqueira2016-07-141-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | The decision of whether an MVNO operator is roaming or not comes from an mcc/mnc-specific resource. Relying on the global system resources to provide the appropriate result for each of the slots on a multi-SIM device is just wrong, since each SIM will have (and need) its own separate preferences and arrays of compatible/blocked carriers. Ref CYNGNOS-2534, CYNGNOS-3190 Change-Id: If3b45a4a4702cf45bc1d965e26c8df7ef3ff783b
* | Subscription updater: don't post messages on events in BroadcastReceiverAltaf-Mahdi2016-07-021-7/+9
| | | | | | | | | | | | | | * for dual sim devices with 2 sims inserted, this fixes sims not being detected on boot when QTI telephony extension is present. Change-Id: I478b150055f21d210ccba7459f55ff75786e4723
* | TelephonyProvider: Add CDMA call forwarding/waiting functionkaiyiz2016-07-021-1/+32
| | | | | | | | | | | | | | | | | | | | There isn't CDMA call forwarding and waiting function. Add CDMA call forwarding/waiting function. CRs-Fixed: 748144 Change-Id: Ic817678c6973ba6bdf8378481e6e71b3ed23af23
* | dct: Sync with upstreamSteve Kondik2016-07-021-37/+35
| | | | | | | | Change-Id: I3193a98e61e3bef2e496b4caba476a219cbdf3d2
* | MSIM: Send FINISH request on flex map START failSandeep Gutta2016-07-021-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When flex map START request fails send FINISH with failure status. - While sending FINISH pass new RAF/modem Uuid if overall request is success. - Treat null radio capability response received for phase finish due to SSR as valid. Change-Id: Iad23b8a0d72430bc22e3b7f8c576370cbb4eae5f CRs-Fixed: 1001601
* | Set additional info for LaunchBrowser error case.Umashankar Godachi2016-07-021-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent change in 3GPP TS 31.124 27.22.4.26 spec for LAUNCH BROWSER SEQ 1.6. expects an additional info 'Default URL unavailable' incase where default url is not set. Fix: In CatService, while handling the Launch Browser error response include the additonal info 'Default URL unavailable'. 3GPP Ref link: http://www.etsi.org/deliver/etsi_ts/131100_131199/131124/ 13.02.00_60/ts_131124v130200p.pdf Change-Id: Idb80c1b8f36749a0ad6e5d53c7a4ac693917d884 CRs-Fixed: 1002699
* | Telephony: Reduce back to back same APN activation delay.Yashdev Singh2016-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - The default delay to activate same APN in quick succession is 20 seconds. - Some application like embms may want to activate APN quickly in short burst. Current 20 seconds would result in artificial delays in such applications. - Hence changing the default delay value to be equivalent of fail-fast delay which is 3 seconds. Change-Id: I792c9697e8ff2d90ec0e9bf2fda8ccf1b3dd9074
* | Fix emergency ims pdn setup issueSusheel nyamala2016-07-021-0/+4
| | | | | | | | | | | | | | Add network capability EIMS for emergency apn type Change-Id: I6ddc23c656fb2fc8e208f093879a2b5b1bc9f701 CRs-Fixed: 984318
* | Fix ims pdn issue on non dds sub on iwlanSusheel nyamala2016-07-022-1/+5
| | | | | | | | | | | | | | | | Set Dds flag if top sub id doesnt match dds sub id. Allow Dds switch in iwlan, only if dds flag is set. Change-Id: I39695cf11b27fcffe222620ce0ea0ac046bc9683 CRs-Fixed: 998685
* | Fix to resolve data call issue for sim hot swap caseRavindra2016-07-021-8/+8
| | | | | | | | | | | | | | | | | | | | Update the setting for MOBILE_DATA irrespective of mUserDataEnabled memeber varible because there are scenarios where the value of this variable will be true for dummy subId which prevents updating the actual value to data base. Change-Id: I3324703c6c1df76a3b5ffc505ea8239d2c1c9bad CRs-Fixed: 990158
* | Notify disconnect on phone disposeRavindra Thattahalli Javaraiah2016-07-022-0/+12
| | | | | | | | | | | | | | | | While disposing a phone object if there are any active connections then notify disconnect to the registrants to update the ui. Change-Id: I74a3d5c9e3919083a786df43053b2b70ad9deb15 CRs-Fixed: 954722
* | Use EVS codec for HD if carrier supports it.Dheeraj Shetty2016-07-021-5/+38
| | | | | | | | | | | | | | | | If the audio codec is EVS_WB, EVS_NWB or EVS_FB and the carrier config to use HD for EVS codec is set to true, then set HD to true. Change-Id: I5550e6c9660c0ccd25418a33c44ee2c71ddd47b9 CRs-fixed: 986961
* | Fix Dds switch issue for wifi and IWLAN scenariosSusheel nyamala2016-07-022-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | In wifi on case, internet requests are released and there are no oustanding requests to process, so user triggered Dds switch will be blocked. Add a dummy network request to force Dds switch. If IWLAN is reported on non dds sub, move state machine to Attached state, to process any on demand network requests possible over IWLAN Change-Id: I38a917906808511705eedb7d39534781759296cb CRs-Fixed: 993272
* | Fix to avoid unnecessary PS attach.Ravindra2016-07-022-3/+17
| | | | | | | | | | | | | | | | When data attach event is received in IDLE state send PS attach only if the attached RAT is CDMA. Change-Id: Id4b1b8267f7052101eaea115e49849b4a09cd694 CRs-Fixed: 995959 963959
* | Fix ims pdn request issueSusheel nyamala2016-07-021-1/+1
| | | | | | | | | | | | Make onSubInfoReady protected for inheritance Change-Id: Ifa8763909cf4e0d636e73fbdd952e8ce2d4eec95
* | Parse the record number from byte to intYujing Gu2016-07-021-8/+10
| | | | | | | | | | | | | | | | ADN won't be retrieved correctly if the record number is more than 127. Need to Parse the record number from byte to int. Change-Id: I0b324c3a0ca0fff07609b84079541d2099b964cc CRs-Fixed: 985649
* | Finer grained character boundaries in computing SMS fragment lengthspengfeix2016-07-021-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | The standard Java character iterator has potentially unbounded distance between character boundaries, meaning that when breaking an SMS message into fragments it's not safe to assume that the fragment will contain such a boundary. This patch special-cases flags (pairs of Regional Indicator Symbols) and also guarantees some progress in the case of no boundary found. Change-Id: I35990b44ad72887e1fdd436223808e18b04bd578 CRs-Fixed: 994916
* | MSIM: Use SIM specific subId for setMccMncSandeep Gutta2016-07-021-2/+5
| | | | | | | | | | | | | | | | While updating MccMnc value use the subId corresponds to the SIM slotId. Change-Id: Ifd7295a264f48e1210d87cb83ac76f5ad46df356 CRs-Fixed: 956103
* | IMS: Fix phone app crash at setOutgoingCallerIdDisplay().Suchand Ghosh2016-07-021-2/+1
| | | | | | | | | | | | | | | | | | | | | | Phone process crash due to duplicate callback received at GsmPhone when launch additional call settings and click on Caller ID->Hide number. Correct logic to receive messge EVENT_SET_CLIR_COMPLETE by the requested phone (GsmPhone or ImsPhone), not by both. Change-Id: Iec19577b7bf567c769089c40c05c656754b694ae CRs-Fixed: 990931
* | Fix DDS switch issues for CDMA and IWLAN scenarios.Muhammed Siju2016-07-022-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Maintain data allowed flags for each phone, based on the current DDS switch scenerio. Ignore ATTACHed event in DcSSM IdleState, if data is not allowed on that phone. This helps to prevent unnecessary ALLOW_DATA(T) requests when CDMA or IWLAN data registration is reported after PS detach is initiated for the phone. It also helps to avoid wrong DDS switch in case of race condition between PS detach and data registration indication. Change-Id: I4bb1923e39182dd3df80207fcd6841273c67d75c CRs-Fixed: 986052
* | Add the slot id when broadcasting card state to STK app.Yujing Gu2016-07-021-1/+2
| | | | | | | | | | | | Add the slot id when broadcasting card state to STK app. Change-Id: Iad6df264a0223c5097a1983ae13911485a6d269e
* | Fix default data reset issue on device powerupSusheel nyamala2016-07-021-4/+8
| | | | | | | | | | | | | | | | Subinfo null check is leading to default data call reset. Replace it with sim state check. Change-Id: I64c255c667e7ed667e004b361c0a68e507b30e5d CRs-Fixed: 980485
* | Send shutdown command to modemWileen Chiu2016-07-023-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | - The shutdown command is not sent to the modem for a graceful shutdown when the modem is in offline state in which, the RADIO_POWER off request is rejected - Send the shutdown command as soon as the device has been given a chance to power down the radio Change-Id: I2fc2eae04918f3927e93924f6ae7b3e19f920de2 CRs-Fixed: 977534
* | Telephony: CDMA: allow MT SMS when in ECBMHuaibin Yang2016-07-021-17/+0
| | | | | | | | | | | | | | | | | | | | Currently CDMA telephony ignores MT SMS when phone is in Emergency Callback Mode (ECBM), so app layer won't be able to receive SMS. This may not be desired when a carrier requires app to receive MT SMS in ECBM. This change allows ECBM MT SMS from ril on telephony side. CRs-Fixed: 948338 Change-Id: I43cd4fd97bdede931864ef29cfc65c7e0573c022
* | IMS: Exit ECBM before dialing a pending non-emergency MO callSuresh Kumar Sugguna2016-07-021-4/+42
| | | | | | | | | | | | | | | | When the device is in Emergency CallBack Mode, then exit the ECBM before dialing a pending non-emergency mobile originating call. Change-Id: I7f24b9cadb83351965b00cf17be0fb061197ac43 CRs-Fixed: 948702
* | IMS: Fix null pointer exception for call forwardingBenergy Meenan Ravuri2016-07-021-1/+4
| | | | | | | | | | | | | | | | Check if ICCrecords are present, before setting the call forwarding flag in ICCrecrods. Change-Id: I7fe632acd4a9b42caf8c8bf6fee7d2cd97c41102 CRs-Fixed: 955679
* | Setup data on new APNs only when APN changesSukanya Rajkhowa2016-07-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | - If new records are loaded due to RAT change 1x->LTE or vice versa, connections need to be restarted - If CDMA subscription change event is received, APN list needs to be created before setting up data call - For all other cases, setup data connections if there is also a change in APN CRs-Fixed: 960246 Change-Id: I5093f506daed8b8d5e8a1fd5220043d0cd55918c
* | MSIM: Fix ECBM dialog issue in G+CSandeep Kunta2016-07-021-2/+2
| | | | | | | | | | | | | | | | Fix ECBM dialog issue by setting ECM mode property value as single SIM instead of comma separation in MSIM. Change-Id: I7bb3c169dc0e0216afbf773236e4d08fda33a0c0 CRs-Fixed: 732984
* | Do not set "gsm.operator.idpstring" per phoneIdRichard LIU2016-07-021-3/+2
| | | | | | | | | | | | | | Do not set "gsm.operator.idpstring" per phoneId, otherwise PhoneNumberUtils could not get the right value Change-Id: I540846d9208f84ff48b6830d45c66abfb16a8a54