aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
Commit message (Collapse)AuthorAgeFilesLines
* Fixed invalid pdu issuecm-11.0Pengquan Meng2018-06-071-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)
* Blacklist : Add helper methodsDanesh M2017-01-071-3/+81
| | | | | | issue-id: CYNGNOS-980 Change-Id: I806b70da553adad9e9e03a39c63049ae2c73d7fa
* Do not allow premium SMS during SuWfionaxu2016-10-211-0/+6
| | | | | | | Bug: 29420123 Change-Id: I41ef7138635f11fbe7f495dd81103458cb969c35 (cherry picked from commit 15f55ca2f204e664807e047b5f898693b274bab6) (cherry picked from commit d8764991caedd2cd5f6b92de0ea609313cbead03)
* DO NOT MERGE fix build breakagefionaxu2016-10-211-0/+1
| | | | | Bug: 28557603 Change-Id: I4542dd8f11903522ce19d9d832324a3f7abdf766
* DO NOT MERGE add private function converSafeLabelfionaxu2016-10-211-1/+50
| | | | | Bug: 28557603 Change-Id: I48fda34700ea389a13110530f1d9f4b3df65cf28
* backport security fix: avoid set NITZ time to 2038fionaxu2016-08-032-0/+12
| | | | | | Bug: 29083635 Change-Id: I21c5f4147d8146f92b7e33f0967a179ae644a263 (cherry picked from commit 6c2365a258381ac0ecb34f143b620a32649d3d32)
* Externally-reported Moderate severity vulnerability in SMS: Apps can bypass ↵Tom Taylor2015-11-091-3/+3
| | | | | | | | | | | | the SMS short code notification prompt Bug 22314646 When android.permission.SEND_SMS_NO_CONFIRMATION was renamed to android.permission.SEND_RESPOND_VIA_MESSAGE in JB-MR2, the necessary change in SmsDispatcher was accidentally overlooked. Change-Id: I58aef2d044b8a48b1b42311a471cb112e3a258e4
* DO NOT MERGE Change to add STK_PERMISSION for stk related commands.Amit Mahajan2015-08-182-4/+7
| | | | | | | And make stk commands protected. Bug: 21697171 Change-Id: I7649c7341428194963ac74e9ae622dfa76ea738b
* RIL: Allow RILReceiver to be overridenstable/cm-11.0-XNG2SVarun Chitre2015-01-041-3/+7
| | | | Change-Id: I9b0fb9c0a1c3175581edf3eeff9e2766a7409251
* Telephony: If no wrapped message, originating address is nullWilliam C. Garrison III2015-01-011-1/+1
| | | | | | | | | | | | | | | | A Verizon HTC m8 user reported this error: http://pastebin.com/3LaYGB6X which means that mWrappedSmsMessage is null, meaning it wasn't created successfully by createFromPdu(pdu, format). Let's let getOriginatingAddress() report this as a null, and see if createFromPdu(pdu) can create the wrapped message properly. Even if it's still a null, TextUtils.isEmpty will return true, meaning the message's address won't be returned (better than crashing com.process.phone). Change-Id: I419bc3e6045b0cf7d62a348a0be02555e0f7b76e
* Store correct IMSI when retreived from SIMRecords and use it for RuimRecordsIan Roy2014-12-165-0/+127
| | | | | | | | | Stock stores the IMSI gathered with SIMRecords and uses that value when RuimRecords wants to get the APN/operator number. Set System prop "ro.telephony.get_imsi_from_sim=true" to enable this function Change-Id: I5e766951313afe4dedb0b6bccfdc83acf701f440
* Telephony: Always allow ignored sms packages for premium sms.Adnan2014-12-081-7/+31
| | | | | | Also clean up redundant code by creating a new method (resolvePackageName). Change-Id: I14eafe2c1ae007c1a8d9c1270a832a2c92f3a04e
* Telephony: Find creator package if sms is sent from systemuid.Ricardo Cerqueira2014-12-011-1/+20
| | | | Change-Id: I72a8e479eab903a8354b5a3eb5aaf11a41570294
* Telephony: Fall back on deprecated createFromPdu.Adnan Begovic2014-11-251-0/+12
| | | | | | | | | | | | Since some of our legacy cdma devices utilizes legacy RIL blobs and hacky implementations, we can't wholly rely on getting a correct format from the InboundSmsTracker. Thus we fallback on the deprecated createFromPdu which attempts to guess the format of the SmsMessage by looking at the voice tech and falling back to the other format if it's incorrect. Change-Id: I90dc185071de827510f2bcec1c837c0024182c41
* Fix crash of Samsung phonesFlamefire2014-11-181-2/+2
| | | | | | | | Using an alternative SMS app like chompSMS leads to a crash as sendResult is an array without any entries (sendResult[0] is accessed) The default SMS app does not show this because mCurrntCmd == null Change-Id: Icfef6d20f9082dd1f64ed29b67031d2575896513
* Telephony service: add ability to always request focus for callsRoman Birg2014-11-172-2/+16
| | | | | | | | Add in the ability to overlay a config value to allow for incoming calls to always request focus no matter the current ring volume. Change-Id: Ie1fdbf7f0783772e3a0dae9606e3b5c3ea8e1e2b Signed-off-by: Roman Birg <roman@cyngn.com>
* Ignore certain sms-sending packages.Adnan2014-11-131-0/+10
| | | | Change-Id: I1a704a3a15ba43a29332412e2453ee0f48fd6c41
* Check for null on originating address in an SMSMessage.Adnan2014-11-111-2/+5
| | | | | | | | | - Don't attempt to normalized an address if the originating address isn't given to us. - BUGDUMP-251344 Change-Id: I78c47f7c82886c1b6386f50d238850b51e1fc69d
* Telephony: remove libphonenumbergoogle dependencyRoman Birg2014-11-112-4/+19
| | | | | | | This was breaking some apps which bundle libphonenumbergoogle. Change-Id: Iaabb7463ff4dd91da9b310672d5d5dc1014a81f0 Signed-off-by: Roman Birg <roman@cyngn.com>
* Telephony: Hide getNormalizedAddressesFromPdusAdnan2014-11-101-0/+1
| | | | Change-Id: Id5200c33aab4dd7c039396e34df8fdabc9464ee7
* Telephony: Add PROTECTED_SMS_RECEIVED_ACTION.Adnan2014-11-062-1/+71
| | | | | | | | - If an address matches against a whitelist for known reg/auth, broadcast it as a protected sms received action. Not for third party applications. Change-Id: Ibc62b5bb0110192620ef35f197553065a8c5345f
* Telephony: Close the FileReader when finishedcretin452014-10-301-9/+17
| | | | Change-Id: I12865e8d974515d4f349d476bcf775e015008e16
* MSIM(DSDA): Update setMode properly.Venkata Ram Prakash Kotni2014-10-301-4/+6
| | | | | | | | | | | | | When user accepts MT call mSpeedUpAudioForMtCall should be set to true, but this is not happening when there is already a call active and user accepts an MT call. As a result when setAudioMode()is called after user accepting call, audio mode is again set to RINGING. As part of the change, mSpeedUpAudioForMtCall is set to true, when user accepts MT call, regardless of whether there is already an active call or not. Change-Id: I08cc4955c5d8dbb100bd33b5ef2db2532d43fb56 CRs-Fixed: 690366
* Fix MMS sending issue in LTE on CDMA networks.Muhammed Siju2014-10-303-30/+15
| | | | | | | | | | | | | | | | | For CDMA-LTE mode, operator numeric based on USIM is used for configuring MMSC settings in APN db. Currently CSIM based operator numeric is set as current carrier in CDMALTEPhone and hence MMS app cannot find MMSC setting when camped to LTE in CDMA-LTE mode. However for CDMA only networks, MMSC settings are added based on CSIM/RUIM operator numeric. To make both configurations work, update the current carrier operator numeric based on current data RAT from DcTracker. Also make sure that only DcTracker updates the current carrier in case of CDMA/CDMA-LTE modes to avoid overwriting with wrong value in case of multi app UICC cards. Change-Id: I465369811520cf345605ad70d7dadf9532b74017 CRs-Fixed: 642640
* Correct order of parameter in iccExchangeApdu()Satish Singh2014-10-151-1/+2
| | | | | | | | The class must be in 1st place for RIL_REQUEST_SIM_TRANSMIT_BASIC or RIL_REQUEST_SIM_TRANSMIT_CHANNEL requests to map hardware/RIL component. Change-Id: Idcf6faee0f6259704ea07b62ce713ebdd4c5da1b
* Telephony: Decode Virgin Mobile US MMSMerudo2014-10-142-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes receiving MMS as one or more sms from a 9999999999 number full of gibberish. Back in the CM7 days, a developer named Blarf (Blarfiejandro) started a repo called Inferior Human Organs for the optimus S/V (LG LS670 and VM670) when no-one could figure out how to get Virgin Mobile MMS working in CM. His MMS patch to decode Virgin's weird system for MMS was eventually absorbed by CM10.2 by rukin5197. Without it, MMS comes in as one or more sms from a 9999999999 number full of gibberish. bigsupersquid took the CM10.2 patch for this fix and updated it enough to work in CM11. However because he doesn't have Gerrit, he asked others to integrate the fix for him. More information here: http://forum.xda-developers.com/showthread.php?t=2663277 http://androidforums.com/virgin-mobile-galaxy-s3-all-things-root/840298-mod-universal-lte-virgin-mobile-apn-fix-wip-cm-aosp-4-4-x-2.html Change-Id: I6518538e941fdbfb7d7441b6db49d1309e87aa9e
* Telephony: Scrub debug messages for identifiable information.Adnan2014-10-011-2/+2
| | | | Change-Id: I70fd8d9b4900dc9e070be24e7efa8d3458caef99
* SIMRecords: If there's no EF_SPN record, fallback to EF_PNNRicardo Cerqueira2014-10-011-0/+6
| | | | | | | | Turns out some SIM (TMobile US, at least) don't fill in the SPN, but do insert a PNN record for home network (which in the case of a non-MVNO are the same. a MVNO should always have the SPN filled anyway). Change-Id: I18388bb071a49698015c76abefb58798f800946c
* Support for SEEK on Android.Satish Kumar Singh2014-09-198-1/+281
| | | | | | | | | | | | | | Support for following apis have been added: 1. exchangeApdu() 2. openLogicalChannel() 3. closeLogicalChannel() 4. getAtr() Conflicts: src/java/com/android/internal/telephony/sip/SipCommandInterface.java src/java/com/android/internal/telephony/test/SimulatedCommands.java Change-Id: I267d0d6fd229f20671411b130f7654ee705f14ca
* DcTracker: Expedite data stall recoveryRicardo Cerqueira2014-09-121-1/+2
| | | | | | | | | | | | | | The current stall recovery process has a pending packet queue which needs to fill up before a stall is determined. But that process is also multi-step, and it is currently expecting that queue to fill between steps. Waiting for the unacknowledged packets to grow after running the connection cleanup step looks like something that would never happen, or would take a very long time to, so expedite the stall recovery after it begins: if any single packet stalls and there's already a recovery in progress, run the follow up step immediately. Change-Id: Ib16b2c47b5c832a812c8bd2a3d940862741ed9db
* Telephony:Copying MO/MT SMS of SUB2 to its SIM memory is fail in C+G.Sridhar Dubbaka2014-09-092-3/+90
| | | | | | | | | | Fix: In C+G configuration, While copying MO/MT SMS of SUB2 to its SIM memory, in process of getting current Phonetype is returned with default sub's(i.e,SUB1's)Phonetype which is CDMA type. To fix this, get current Phonetype based on subscription id. Change-Id: I394eadfb091c4901a553cf66192e8ee965b69eda CRs-Fixed: 689036
* Telephony: Get SIM card capacity count of SMS.Zhang Fang2014-09-099-1/+112
| | | | | | | | Add one API: - getSmsCapacityOnIcc: get the capacity of stored SMS on ICC card. Change-Id: I63c1431cf02db2dbdee3553afc2448b4ec2cdfa3 CRs-Fixed: 645022
* SamsungQualcommRIL: make isGSM protectedDan Pasanen2014-09-031-1/+1
| | | | Change-Id: I580057791e3a37e084c870446e07195fbe3d96d0
* Merge "SamsungQualcommRIL: Handle ResponseCallList in our subclass" into cm-11.0Shareef Ali2014-09-032-6/+75
|\
| * SamsungQualcommRIL: Handle ResponseCallList in our subclassinvisiblek2014-09-032-6/+75
| | | | | | | | Change-Id: I25e8ae7a41070b7554697439ae8ec81c2fea2131
* | Telephony: Add an API for getting recipient address of SubmitPduyanglv2014-09-024-4/+30
|/ | | | | | | | | | | | There is no API to get the recipient address of submit pdu for SIM card message. getDisplayOriginatingAddress() return null for submit pdu, it will cause applicatoin can not get address of sent message. Thread ID can not be created for this invalid message record. Add an API getRecipientAddress() for SubmitPdu in SmsMessage. Change-Id: I8b8af6002b5b309cba5383adb37275642487f1f0 CRs-Fixed: 627278
* MSIM(DSDA): Add conversation subSandeep Kunta2014-09-022-21/+31
| | | | | | | Add conversation sub Change-Id: I67f508baf66ba5ebc86a4f430af739d6ba8180ba CRs-Fixed: 659123
* Add support to send dtmf for SCH toneSandeep Kunta2014-08-254-2/+20
| | | | | | | Add methods to send/stop dtmf as per subscription. Change-Id: Ia17a733bd6ec1cd0163024d12c021e1e21032078 CRs-Fixed: 610582
* IMS: Add API to set create time for a Connection.Muhammed Siju2014-07-313-0/+20
| | | | | | | | | setCreateTime() API is added to Connection class so that create time can be transferred from IMS to CS connection during SRVCC. Change-Id: I20dc536171e3e91ac13c0897bf2121c56762785b CRs-Fixed: 682041
* IMS : Notifying CallModifyRequest Fail or sucessBasudev Achary Konderpu2014-07-315-0/+110
| | | | | | | | | | | 1)Added new registrant to handle CallModifyRequest Fail or success. 2)Added Error codes. 3)This will ensure failed response to be propagated properly. Change-Id: Ib5671d57e227e4e46bb548cb99703292eb6d4f6e CRs-Fixed: 667503
* Add ServiceStatus class for uniform capability handlingShriram Ganesh2014-07-312-16/+78
| | | | | | | | | Add ServiceStatus class to support different access tech and create uniform way of storing information for local/peer ability and service status updates Change-Id: I418c273e8b7f4cd5912e9b9cde85e9d83419cbf4 CRs-Fixed: 639446
* Change to return proper MNC in case of CSIMRakesh Pallerla2014-07-311-1/+5
| | | | | | | | As per spec C.S0065 section 5.2.2 MNC length in case of CSIM IMSI is 2. So modify the code to return the MNC of proper length. Change-Id: Id046b9ff3173c038fb2196e18625f077b1897beb CRs-Fixed: 656508
* Fix voicemail count issue.Suchand Ghosh2014-07-312-2/+3
| | | | | | | | | | | | | Telephony checks voicemail count stored in persist memory if SIM record returns count zero. Add code not to check voicemail count stored in persist phone memory if card read success and valid count is returned from card. Change-Id: I69ea6e5087dd49a550bbb4b6f6721729e8cd7f15 CRs-Fixed: 655038
* Merge branch 'LNX.LA.3.5.2.2_rb1' of ↵nextSteve Kondik2014-06-136-19/+77
|\ | | | | | | | | | | git://codeaurora.org/platform/frameworks/opt/telephony into cm-11.0 Change-Id: Iea6b1df02ab59e2f897d589e5b9575546e09dd17
| * Merge tag 'android-4.4.3_r1' into merge_branchSridhar Gujje2014-06-0510-60/+119
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 4.4.3 release 1 Conflicts: src/java/com/android/internal/telephony/ServiceStateTracker.java src/java/com/android/internal/telephony/WapPushOverSms.java src/java/com/android/internal/telephony/cdma/SmsMessage.java src/java/com/android/internal/telephony/uicc/RuimRecords.java src/java/com/android/internal/telephony/uicc/SIMRecords.java Change-Id: I6fb33d6bac56c6a98e6f19d06d6d86a004a49fde
| * \ Merge "Notify data connection changed on CSS indicator update."Linux Build Service Account2014-05-192-2/+16
| |\ \
| | * | Notify data connection changed on CSS indicator update.Muhammed Siju2014-05-122-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the phone moves from a DTM cell to a non DTM cell while in active voice call, data connection is not suspended. To fix this, consider CSS indicator change also for notifying data connection. Change-Id: I57c445ee28be4e1c0f2934cb136a70d39447511c CRs-Fixed: 641116
| * | | Merge "Do not inform user when the alpha identifier is a null data."Linux Build Service Account2014-05-181-0/+4
| |\ \ \
| | * | | Do not inform user when the alpha identifier is a null data.Umashankar Godachi2014-05-151-0/+4
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a condition to distinguish between alpha identifier with null data and no alpha identifier. Ref spec: 3GPP TS 11.14, 6.4.5. Play Tone. Change-Id: Ibfe211653c34206e4326d4b4f234c9dd1e9778f2 CRs-Fixed: 631723
| * / / Fix to set CDMA roaming state.Ravindra2014-05-152-8/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | Roaming status needs to be determined based on both voice and data registration states. Change-Id: Icf49ac1ab1bfe48bdaf3f84d0ca712d221105f5d CRs-Fixed: 656114