summaryrefslogtreecommitdiffstats
path: root/telephony
Commit message (Collapse)AuthorAgeFilesLines
* am ea75b822: am 234a5ef6: Merge "When the SIM_READY set current preferred ↵Wink Saville2011-12-075-0/+33
|\ | | | | | | | | | | | | network type." into ics-mr1 * commit 'ea75b82221dc9086cf97a791aed3b79ff3731bba': When the SIM_READY set current preferred network type.
| * When the SIM_READY set current preferred network type.Wink Saville2011-12-075-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This looks to fix a problem where the nv_data.bin file file gets corrupted. When greping a radio log for "md5" if something like following is seen: RIL(s) : load_md5_state: MD5 state 1 RIL(s) : check_md5: RIL(s) : compute_md5: path /efs/nv_data.bin RIL(s) : check_md5: MD5 fail. orignal md5 '628647a8e5c6cac2d586199417c0103c' computed md5 '58a635cbaf5fe4ffb2797aeaa2b32709' (rild) RIL(s) : check_md5: RIL(s) : compute_md5: path /efs/.nv_data.bak It means that corruption was detected and a back version was used which is ok. Apparently that backup version can have the default network type revert to 2G only thus causing the symptoms reported in b/5695729 where after taking an OTA 2G becomes the default. By calling setCurrentPreferredNetworkType when the sim is ready we can reset the the network type to 3G. Note: I also tried calling setCurrentPreferredNetworkType in EVENT_RADIO_AVAILABLE but that didn't work and we would see the response to setPreferredNetworkType failing as the ril wasn't ready. RILJ : setCurrentPreferredNetworkType: 0 RILJ : [0004]> REQUEST_SET_PREFERRED_NETWORK_TYPE : 0 RILJ : [0004]< REQUEST_SET_PREFERRED_NETWORK_TYPE error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE Bug: 5695729 Change-Id: Ibbd29cda0b201a8c08f4dcfa5cec211611e1d599
* | am 2de0b07f: am ca0a68cc: Merge "Correct the dialing number of structured ↵John Wang2011-12-071-2/+18
|\ \ | |/ | | | | | | | | | | MMI." into ics-mr1 * commit '2de0b07f47c3561b6e550ff630901d2776a437e3': Correct the dialing number of structured MMI.
| * Merge "Correct the dialing number of structured MMI." into ics-mr1John Wang2011-12-071-2/+18
| |\
| | * Correct the dialing number of structured MMI.John Wang2011-12-071-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to TS 22.030 6.5.2 "Structure of the MMI", the dialing number can not end with #. The format is like *SC*SI#DN. Correct the mmi pattern to exclude DN# case. With this fix, processCode() will tread *NNN#DN#, e.g. *400#16 digit number# in bug 5622718, as USSD and send via RIL_REQUEST_SEND_USSD. bug:5622718 Change-Id: Ifc8d0edff4308602a5f3fc651cf116bf6bad3cbc
* | | am 2ebd3612: am f352491a: Merge "Trim leading zeros from ipv4 addrs." into ↵Robert Greenwalt2011-12-071-3/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | ics-mr1 * commit '2ebd3612d82f728873f87cdbea9fa5513b5cfb39': Trim leading zeros from ipv4 addrs.
| * | Trim leading zeros from ipv4 addrs.Robert Greenwalt2011-12-071-3/+9
| |/ | | | | | | | | | | | | | | Underlying libraries will interpret leading zeros as octal values and fail. bug:5262995 Change-Id: Iff949225bb6b941f7274ee81754e1f41ed719a6c
* | am 00f1ac80: am 2a7b5ab1: Merge "Be careful sharing connections when dun is ↵Robert Greenwalt2011-12-022-1/+22
|\ \ | |/ | | | | | | | | | | in play" into ics-mr1 * commit '00f1ac8001b2bfe2ab70730d9c039ca4e633a2c2': Be careful sharing connections when dun is in play
| * Be careful sharing connections when dun is in playRobert Greenwalt2011-12-022-1/+22
| | | | | | | | | | | | | | | | A request for a DUN connection should only use the carriers requested dun connection. Don't share another connection unless it matches the carriers settings. bug:5701374 Change-Id: I75a65fcfce1b218bd9ca4ce2ab85cbe850813321
* | am c8e643a8: am 22d5d7b6: Merge "Fix state synchronization problem." into ↵Robert Greenwalt2011-12-011-9/+10
|\ \ | |/ | | | | | | | | | | ics-mr1 * commit 'c8e643a86345ef7e2807946107062c9d8635455d': Fix state synchronization problem.
| * Fix state synchronization problem.Robert Greenwalt2011-11-301-9/+10
| | | | | | | | | | | | | | | | | | Don't report that we're disconnected immediately if we're disconnecting when another disconnect comes in. Remove this behavior from the default handler and add a catch all "yeah, we're disconnected already" to the inactive state. bug:5568633 Change-Id: Iff7ccde2069b47f8ad8255f3bca0292b80041388
* | Merge "Add support for country specific emergency number handling."David Brown2011-11-301-70/+61
|\ \
| * | Add support for country specific emergency number handling.Shaopeng Jia2011-11-201-70/+61
| | | | | | | | | | | | | | | Bug: 5247602, 5615428 Change-Id: I1bdfbc987f45e0f2ebbe68adaab215395c83ca35
* | | am 08b52112: am e95f4986: Merge "Fix a build break." into ics-mr1John Wang2011-11-231-2/+2
|\ \ \ | | |/ | |/| | | | | | | * commit '08b52112335dcbcd51fa387c2a9a92dc43efa689': Fix a build break.
| * | Fix a build break.John Wang2011-11-231-2/+2
| | | | | | | | | | | | Change-Id: I2a9ceaace02f442c5e36fa8425b051116c81e76f
* | | am 39c293f4: am 9b108009: Check watingApns before access it.John Wang2011-11-231-2/+8
|\ \ \ | |/ / | | | | | | | | | * commit '39c293f4392f6c4bb4da6182123a0511cabb0df1': Check watingApns before access it.
| * | Check watingApns before access it.John Wang2011-11-231-2/+8
| | | | | | | | | | | | | | | bug:5663125 Change-Id: I66275fafd316f318f9035ac11c16a30fcb32f7c8
* | | am 18f05518: am eaeb4f4e: Merge "Fix some policy-base routing issues." into ↵Robert Greenwalt2011-11-231-0/+8
|\ \ \ | |/ / | | / | |/ |/| | | | | ics-mr1 * commit '18f05518a882eeb778433c65bff27831a8accdc2': Fix some policy-base routing issues.
| * Merge "Fix some policy-base routing issues." into ics-mr1Robert Greenwalt2011-11-231-0/+8
| |\
| | * Fix some policy-base routing issues.Robert Greenwalt2011-11-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Secondary nets sometimes come up with no routes, but parsing errors end up with null routes getting added. Trim that away. Also added some dumpstate logging of the secondary route tables and rules. bug:5615697 Change-Id: I94c9d888bab958df44891b9117236436e046cc7f
* | | am 7d22534b: am 3f51f954: Merge "Fix a crash caused by SIP addresses ↵David Brown2011-11-182-1/+26
|\ \ \ | |/ / | | | | | | | | | | | | | | | containing "%40" instead of "@"" into ics-mr1 * commit '7d22534b4cba49b1bd9d88969c3189a2c6fecf55': Fix a crash caused by SIP addresses containing "%40" instead of "@"
| * | Fix a crash caused by SIP addresses containing "%40" instead of "@"David Brown2011-11-172-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CallerInfo.doSecondaryLookupIfNecessary() was assuming that SIP addresses would always contain the character '@', but that's not always true since the username/domainname delimiter can actually be "%40" (the URI-escaped equivalent.) This would cause the in-call UI to crash if you ever called a SIP address like "xyz%40example.com". TESTED: - Make an outgoing call to the SIP address "xyz%40example.com" ==> The call ultimately fails, but the in-call UI no longer crashes when it first comes up. Bug: 5637074 Change-Id: I62d15a7ccd509924d38b780b92e657b9efa26125
* | | am 19a57bde: am 1733a3de: Merge "SIP addresses containing "911" shouldn\'t ↵David Brown2011-11-171-0/+11
|\ \ \ | |/ / | | | | | | | | | | | | | | | be considered emergency calls" into ics-mr1 * commit '19a57bdedf3f9ccfa4d45cd35ef4b379853c6a81': SIP addresses containing "911" shouldn't be considered emergency calls
| * | SIP addresses containing "911" shouldn't be considered emergency callsDavid Brown2011-11-161-0/+11
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change updates isEmergencyNumberInternal() to always return false if you pass in a SIP address, since the concept of "emergency numbers" is only meaningful for calls placed over the cell network. Previously we *did* try to compare SIP addresses against the list of known emergency numbers, which caused bad behavior with SIP addresses that even contained "911"/"112"/etc as a substring (since we were filtering out non-dialable characters before doing the comparison!) TESTED: - Before this change, calls to "abc911def@example.com" or "911abcdef@example.com" were incorrectly detected as emergency numbers, and fail. - After this change, SIP addresses like "abc911def@example.com" and "911abcdef@example.com" work fine. - Also, confirmed that this change doesn't break the restriction that 3rd party apps shouldn't be able to make emergency calls. Specifically, I fired off ACTION_CALL intents (using the CallDialTest activity) for a bunch of numbers *similar* to emergency numbers, and confirmed that none of them actually resulted in an emergency call being placed. The specific ACTION_CALL intents I tested were: "911" ==> Didn't place the call; brought up dialer instead "tel:911" ==> Didn't place the call; brought up dialer instead "911@foo" ==> Tried to start a SIP call (which failed) "911%40foo" ==> Tried to start a SIP call (which failed) "tel:911@foo" ==> Tried to start a SIP call (which failed) "tel:911%40foo" ==> Tried to start a SIP call (which failed) "911@example.com" ==> Tried to start a SIP call (which failed) "sip:911" ==> Didn't place the call; brought up dialer instead "sip:911@foo" ==> Tried to start a SIP call (which failed) "sip:911%40foo" ==> Tried to start a SIP call (which failed) Bug: 5515452 Change-Id: I6f9f8690b08564c53c7a76f480654477b475d94d
* | am 795fcd07: am 33fe4a36: Merge "Fix TelephonyManager to grab the best ↵Robert Greenwalt2011-11-171-6/+6
|\ \ | |/ | | | | | | | | | | context" into ics-mr1 * commit '795fcd07943ac1aaab309a4fa0d6bad1b67671a8': Fix TelephonyManager to grab the best context
| * Merge "Fix TelephonyManager to grab the best context" into ics-mr1Robert Greenwalt2011-11-161-6/+6
| |\
| | * Fix TelephonyManager to grab the best contextRobert Greenwalt2011-11-161-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It may not be called from an app so the app context may not exist. Check and grab the best one. Also remove the log that nobody paid attention to if the constructor is called again from the same process. One context seems to be as useful as another. bug:5572369 bug:5622514 Change-Id: Iad23b30c7c8fe5b8d1f81a1e060eaf0cd0e3019d
* | | am 0f2dec50: am bd783684: am 7d4046e9: Merge "Fix 3GPP SMS send failure for ↵Jake Hamby2011-11-153-11/+52
|\ \ \ | |/ / | | | | | | | | | | | | | | | 7-bit national language tables." into ics-mr0 * commit '0f2dec5033919fab77a2b52bb3cf33cf4975f2c9': Fix 3GPP SMS send failure for 7-bit national language tables.
| * | am 7d4046e9: Merge "Fix 3GPP SMS send failure for 7-bit national language ↵Jake Hamby2011-11-153-11/+52
| |\ \ | | |/ | |/| | | | | | | | | | | | | tables." into ics-mr0 * commit '7d4046e9b7b95e1d5de12a54109b44d8305a6fdc': Fix 3GPP SMS send failure for 7-bit national language tables.
| | * Fix 3GPP SMS send failure for 7-bit national language tables.Jake Hamby2011-11-143-11/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a NullPointerException when sending a single-part SMS containing characters in one of the enabled national language tables. Also added a few log messages for several error cases to help with debugging any future problems in the SMS dispatcher. Bug: 5553544 Change-Id: I61c1cbe297b2e222027f0db7c833df6a03c2974a
* | | am 6504d74b: am 72a31ab9: Merge "[maguro] Fix STK issues" into ics-mr1John Wang2011-11-144-26/+58
|\ \ \ | |/ / | | | | | | | | | * commit '6504d74b8f7b98f7c2d5fb550042c644510d5f34': [maguro] Fix STK issues
| * | [maguro] Fix STK issuesdujin.cha2011-11-144-26/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Fix Bug 5574160 (Abnormal Setup menu) 2. Fix Bug 5558273 (GetInkey issue) 3. Fix BUg 5558612 (No default alpha id) 4. Fix Vodafone UK ALS issue. Bug : 5574160, 5558273, 5558612 Change-Id: Ief74d0e4f4f28dff7a435e9dab1fab1ca1d9bfaf Signed-off-by: dujin.cha <dujin.cha@samsung.com>
* | | am 99d858b0: am a092ba56: am e562287c: Merge "[maguro] Update ↵Wink Saville2011-11-101-3/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | COMPREHENSION-TLV parser in CAT" into ics-mr0 * commit '99d858b04b27b51e346fb5d3860e6953cee64ecd': [maguro] Update COMPREHENSION-TLV parser in CAT
| * | am e562287c: Merge "[maguro] Update COMPREHENSION-TLV parser in CAT" into ↵Wink Saville2011-11-101-3/+9
| |\ \ | | |/ | | | | | | | | | | | | | | | ics-mr0 * commit 'e562287c85662457864255028cd4bc3b04f13750': [maguro] Update COMPREHENSION-TLV parser in CAT
| | * Merge "[maguro] Update COMPREHENSION-TLV parser in CAT" into ics-mr0Wink Saville2011-11-101-3/+9
| | |\
| | | * [maguro] Update COMPREHENSION-TLV parser in CATWink Saville2011-11-091-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Fix the ClassCastException while handling spec out 'Setup menu' -Ghana MTN simcard and JDI simcard sends abnormal 'setup menu'cmd. -Those 'setup menu' is spec out. -At the end of the proactive cmd,extra bytes '0x00 0x00 0x00 0x00' is followed. - That cause ClassCastException and phone crash. Bug: 5574160 Change-Id: Ieafb6c4efd94bb4e2a39a04612a6761c958654bb Signed-off-by: dujin.cha <dujin.cha@samsung.com>
* | | | am f1633291: am 08b3ffe6: am 16ee60a5: Merge "Increase ↵Wink Saville2011-11-101-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | DATA_STALL_ALARM_DELAY_IN_MS_DEFAULT to 6 minutes." into ics-mr0 * commit 'f1633291aa13ee1bd210a38e007b9e133c178f37': Increase DATA_STALL_ALARM_DELAY_IN_MS_DEFAULT to 6 minutes.
| * | | am 16ee60a5: Merge "Increase DATA_STALL_ALARM_DELAY_IN_MS_DEFAULT to 6 ↵Wink Saville2011-11-101-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | minutes." into ics-mr0 * commit '16ee60a5ae0336a46a417a72bca64a1a04b0fce2': Increase DATA_STALL_ALARM_DELAY_IN_MS_DEFAULT to 6 minutes.
| | * | Merge "Increase DATA_STALL_ALARM_DELAY_IN_MS_DEFAULT to 6 minutes." into ics-mr0Wink Saville2011-11-091-1/+1
| | |\ \
| | | * | Increase DATA_STALL_ALARM_DELAY_IN_MS_DEFAULT to 6 minutes.Wink Saville2011-11-091-1/+1
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially set to 3 minutes this raised the standby current by 12.5% so changing to 6 minutes. Bug: 5534004 Change-Id: I602f5fe4de35d0db2dbacf0c615c300c57dd2d0d
* | | | am 6e82e95c: am b6b44cef: am 59882fb8: Merge "Add "potential" variants for ↵David Brown2011-11-102-49/+244
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | PhoneNumberUtils.isEmergencyNumber()" into ics-mr0 * commit '6e82e95c08bd1e2c46837e9ddb8759e5ca977f84': Add "potential" variants for PhoneNumberUtils.isEmergencyNumber()
| * | | am 59882fb8: Merge "Add "potential" variants for ↵David Brown2011-11-092-49/+244
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | PhoneNumberUtils.isEmergencyNumber()" into ics-mr0 * commit '59882fb8e0ba7c47b780d62c9a9c46b63d779677': Add "potential" variants for PhoneNumberUtils.isEmergencyNumber()
| | * | Merge "Add "potential" variants for PhoneNumberUtils.isEmergencyNumber()" ↵David Brown2011-11-082-49/+244
| | |\ \ | | | |/ | | |/| | | | | into ics-mr0
| | | * Add "potential" variants for PhoneNumberUtils.isEmergencyNumber()David Brown2011-11-082-49/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The phone app needs a way to distinguish between (a) numbers that are definitely emergency numbers, and (b) numbers that *might* result in an emergency call being dialed, but aren't specifically emergency numbers themselves. (The phone app needs this distinction in order to enforce the restriction that 3rd party apps should not be allowed to make emergency calls using the ACTION_CALL intent, while still making sure that the in-call UI only displays the "emergency call" state for numbers that are *definitely* emergency numbers. See bug 5493790 for the full details;) So this change adds a full set of "isPotentialEmergencyNumber()" methods to go along with the "isEmergencyNumber()" methods we've had all along. The "potential" variants behave identically to the original methods, *except* that they ultimately use number.startsWith() rather than number.equals() when comparing against the list of emergency numbers. TESTED: - Unit test 'PhoneNumberUtilsTest#testIsEmergencyNumber' passes. (The PhoneNumberUtilsTest class doesn't pass in its entirety, but it was broken before this change also.) - Also see the commit description of change Ib949fea3c0ce6b341a90e617a03ba3f22c69018b for the exact tests I ran against the phone app. This change should be submitted along with Change-Id: Ib949fea3c0ce6b341a90e617a03ba3f22c69018b in apps/Phone (but this change must go in first to avoid breaking the build.) Bug: 5493790 Change-Id: Ic528cfcc555734cdaf4ca8a18a50199771ba49b1
| * | | am fee5f29b: Merge "Fix exception when sending multi-page SMS with Turkish ↵Jake Hamby2011-11-093-11/+137
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | characters." into ics-mr0 * commit 'fee5f29b22f99bd2891fb2af54669f20832fb851': Fix exception when sending multi-page SMS with Turkish characters.
* | | | am cef1300e: am f3882914: Merge "Make policy data enabled flag static." into ↵Jeff Sharkey2011-11-092-5/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ics-mr1 * commit 'cef1300ebd6bc88e93ee1420e5fec359531533d2': Make policy data enabled flag static.
| * \ \ \ am f3882914: Merge "Make policy data enabled flag static." into ics-mr1Jeff Sharkey2011-11-092-5/+7
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit 'f3882914e668501ee1dabd42207ed18348050c14': Make policy data enabled flag static.
| | * | | Make policy data enabled flag static.Jeff Sharkey2011-11-082-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For devices with both CDMA and GSM stack, ConnectivityService only connects with the GSM variant. Making this flag static communicates the policy state between all DCT. Bug: 5586935 Change-Id: Iff0384027303470dd382d5173558d2d091ce4bf6
* | | | | am 2c6539e8: am fee5f29b: Merge "Fix exception when sending multi-page SMS ↵Jake Hamby2011-11-093-11/+137
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | with Turkish characters." into ics-mr0 * commit '2c6539e83ea80c62ee1a299fb686b4bdf043bfa7': Fix exception when sending multi-page SMS with Turkish characters.
| * | | | am fee5f29b: Merge "Fix exception when sending multi-page SMS with Turkish ↵Jake Hamby2011-11-083-11/+137
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | | | | | | | | | | | | characters." into ics-mr0 * commit 'fee5f29b22f99bd2891fb2af54669f20832fb851': Fix exception when sending multi-page SMS with Turkish characters.