summaryrefslogtreecommitdiffstats
path: root/telephony
Commit message (Collapse)AuthorAgeFilesLines
* Allow apps with SEND_SMS_NO_CONFIRMATION to bypass short code check.Jake Hamby2012-05-252-32/+6
| | | | | | | | | | | | Change SMSDispatcher to bypass SMS premium short code confirmation dialog when caller has "android.permission.SEND_SMS_NO_CONFIRMATION" permission (instead of checking package name against hardcoded list). This permission is only available to system apps or those signed with the same certificates as those in the system image. Bug: 6502817 Change-Id: I6098d448892cc5e842ba6dc10cf494295e7226af
* Add debug for tracking down connectivity issues.Wink Saville2012-05-246-44/+75
| | | | | bug: 6529189 Change-Id: I5dc4316ceacf48625f0839e0200b77a1e0984465
* Improve sim ready event handling for CdmaLte.Kazuhiro Ondo2012-05-212-4/+15
| | | | | bug: 6463933 Change-Id: I751f760badb87c1fe4b78fd68921257cec4a4b9d
* Merge "Only reset time from NITZ in zone fix." into jb-devJohn Wang2012-05-212-32/+45
|\
| * Only reset time from NITZ in zone fix.John Wang2012-05-182-32/+45
| | | | | | | | | | | | | | | | When timezone property gets reset by mcc change, SST only adjusts time to reflect new timezone settings if there is NITZ string w/o timezone. bug:6465783 Change-Id: I1a27b3f371f79aa532de1c94ec5cb12285bdfdb4
* | Change "uk" to "gb" in COUNTRY_CODES.John Wang2012-05-181-1/+1
|/ | | | | | | Since MccTable uses "gb" instead of "uk" for United Kingdom. bug:6465783 Change-Id: Ifc2e2e7e72bd8405c698474d2ab9d01cb4ca006b
* Enable SMS short code patterns to be updated from secure settings.Jake Hamby2012-05-171-45/+211
| | | | | | | | | | | The premium SMS short code detector loads patterns from an XML resource by default (frameworks/base/core/res/res/xml/sms_short_codes.xml). Add support for updated patterns to be loaded on a per-country basis from a secure setting named "sms_short_codes_" + the country code. Updated patterns can be pushed to Google devices via Gservices. Bug: 5513975 Change-Id: Ibfc0be4f12227ba45c28396ec7cdbc307442af81
* Merge "Log more RetryManager information." into jb-devRobert Greenwalt2012-05-162-14/+28
|\
| * Log more RetryManager information.Robert Greenwalt2012-05-162-14/+28
| | | | | | | | | | | | | | | | 6505637 had unexplainable behavior. Add some logging so we can see what's going on. bug:6505637 Change-Id: I43c2ce7f8d12271d988b112f47589d0fba2b6955
* | Merge "Restore ready apns once voice call ended" into jb-devJohn Wang2012-05-161-3/+2
|\ \
| * | Restore ready apns once voice call endedyoonsung.nam2012-05-161-3/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently GsmDCT does not setup default data if secondary APNs are connected but default is disconnected. Sometimes retry alarm of default expries during voice call but it's rejected due to voice calling and eHRPD attached status. Fix onVocieCallEnded() to restore all ready apns inclduing defautl regardless of isConnected(). bug:6502005 Change-Id: I25db9be010cb588dfee51bdaf435f24055ecb431 Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
* | Don't start data-stall checks if not connectedRobert Greenwalt2012-05-161-0/+1
|/ | | | | | | | | We did this only if connected in most places, but screen-on/off didn't care. On no-radio devices it caused extra timers/wakeups that didn't help anybody. bug:6375908 Change-Id: Iba72da323de716acb0e67361b955c7381f18f67d
* Merge "Change SMS security check to enforceCallingPermission()." into jb-devJake Hamby2012-05-141-1/+1
|\
| * Change SMS security check to enforceCallingPermission().Jake Hamby2012-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The permission check for IccSmsInterfaceManager.sendText() was changed from enforceCallingPermission() to enforceCallingOrSelfPermission() to enable the Phone app to send SMS's directly for the "reply by SMS" feature. That feature was implemented in a different way (handled by the MMS app), so the permission check can be changed back to the original enforceCallingPermission(). Verified that SMS can still be sent, including "reply by SMS" for an incoming call. Bug: 4686733 Change-Id: If844a0c485de0a87857d8f82a3452e776005153e
* | Move power HAL interactions to PowerManagerService.Jeff Brown2012-05-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This refactoring sets the stage for a follow-on change that will make use additional functions of the power HAL. Moved functionality from android.os.Power into PowerManagerService. None of these functions make sense being called outside of the system server. Moving them to the PowerManagerService makes it easier to ensure that the power HAL is initialized exactly once. Similarly, moved ShutdownThread out of the policy package and into the services package where it can tie into the PowerManagerService as needed. Bug: 6435382 Change-Id: I958241bb124fb4410d96f5d5eb00ed68d60b29e5
* | Merge "Add additional debug for time zone handling." into jb-devWink Saville2012-05-104-24/+25
|\ \
| * | Add additional debug for time zone handling.Wink Saville2012-05-104-24/+25
| | | | | | | | | | | | Change-Id: Ie46bba7e0ef7737a865f7efadbf963c2d14e488f
* | | Fix some apn settings issues.Robert Greenwalt2012-05-092-24/+11
| |/ |/| | | | | | | | | | | | | Correct some logging that was misleading and be more precise in our removal of things from the waiting list. bug:6445253 Change-Id: I97b20b851617149a24303276392de403dbde2a8f
* | Remove STOPSHIP part of the logging in telephonyDaisuke Miyakawa2012-05-091-20/+1
| | | | | | | | | | | | | | We still need the log itself to trap the exceptional case. Bug: 6201805 Change-Id: I62d12f6a1ed41817ee12c0f5c7fc4aa0a967a60f
* | Set provider name in airplane mode.John Wang2012-05-071-2/+8
|/ | | | | | | Set eriText to correct provider alpha during power_off state. bug:5262482 Change-Id: Ic72aaf0465cde6934a2b46d4b9520627ac0ac335
* Rename isTimeZoneFixNeeded to shouldFixTimeZoneNow.Wink Saville2012-05-034-6/+6
| | | | Change-Id: I01c73a0afaa17793f9dea1b78c9fe49fa138f787
* Merge "Time can become incorrect when no sim is present or mcc changes." ↵Wink Saville2012-05-034-48/+69
|\ | | | | | | into jb-dev
| * Time can become incorrect when no sim is present or mcc changes.Wink Saville2012-05-034-48/+69
| | | | | | | | | | bug: 6393147 Change-Id: I07ad74998b03af532ccf704a8a7e4844f5829b14
* | Enable restart in getSpnFsm().John Wang2012-05-021-1/+18
| | | | | | | | | | | | | | | | | | | | | | If the FSM gets restart while waiting for one of SPN EFs results (i.e. a SIM refresh occurs after issuing read EF_CPHS_SPN), it will re-initialize only after receiving and discarding the unfinished SPN EF result. bug:5499225 Change-Id: I715fc2feabdd03435903f7dcb785c8f0154619bc
* | Fix data roaming notification.Robert Greenwalt2012-04-303-0/+16
|/ | | | | | | | | | | | | | | | We shouldn't tell people we're not connected due to roaming if it's really because of data-disabled. Use the data-disabled setting to decide if we should inform people about data-discon due to roaming. Note this doesn't effect other notifications about roaming. Also fix the data-enable/disable code to take roaming into account and clear/set the roaming notification as needed (if data is enabled while we can't get on due to roaming we should put up the roaming notifcation.. if data is disabled while that notification is up we should take it down). bug:5805666 Change-Id: I5c925dfdca4abc27e0034b113508df5719f04fae
* Prefer the preferred APN for all types it supportsRobert Greenwalt2012-04-251-15/+14
| | | | | | | | We used to only prefer it when connecting for default connection purposes, but it makes sense to use the preference for all apn types it supports. bug:6377793 Change-Id: I8b26b77fc0787121749cce9d32303ab24cc72c75
* Add debug log for 5914560 and 6383850Daisuke Miyakawa2012-04-251-0/+22
| | | | | | | | | | | This won't be shown in usual condition since in most cases the method will just use the block just above the logging and return true/false there. On the other hand this might be useful if the case is truely exceptional and thus this path is really used. Bug: 5914560 Bug: 6383850 Change-Id: I2242f93a9b905b5a39d997aa30d9fd6f5bfbdf49
* Set AuthType to NONE if username of APN is not setYe Jingjing2012-04-201-2/+2
| | | | | | | | | | | | | | | When APN is edited, if authType and username are both not set, authType should be set to NONE before setup of data call. The code today checks mApn.user for NULL, but if user has edited APN the mApn.user field will be set to an empty string. Change the check of mApn.user to also take care of this case. Change-Id: I0e49247d46e1ba93da6dd951bbb75acc63fac73f
* Merge "Add ContentProvider for apps to read received SMS cell broadcasts."Jake Hamby2012-04-191-0/+422
|\
| * Add ContentProvider for apps to read received SMS cell broadcasts.Jake Hamby2012-04-181-0/+422
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CellBroadcastReceiver app will allow apps with the new permission "android.permission.READ_CELL_BROADCASTS" to read previously received cell broadcast messages from a new ContentProvider database at URI "content://cellbroadcasts". This will enable third parties to provide additional information to users in the event of emergencies without delaying or interfering with the initial system alert dialog to warn the user when the alert is received. Includes a new android.telephony.CellBroadcastMessage class which can be instantiated from the Cursor retrieved from the ContentProvider. This was previously a part of the CellBroadcastReceiver app, but can now be used by third party apps with read permission on the ContentProvider. Change-Id: I2c31f62b63c050c7946de2d81c28a5f4dc6f00b0
* | Merge "Fix calcuation of CMD_TO_STRING_COUNT."Wink Saville2012-04-192-2/+2
|\ \
| * | Fix calcuation of CMD_TO_STRING_COUNT.Wink Saville2012-04-182-2/+2
| |/ | | | | | | Change-Id: I03ae1a545474d7dcd4e65c58d9befd020d5b9c54
* | Revert "Telephony: Dynamically instantiate IccCard"Wink Saville2012-04-1821-635/+274
|/ | | | | | | | | | | | | | | | | This reverts commit fe37acae729529b8bf3a3140fa397bddce42b1e0 There are two bugs that are weekend release blockers: b/6357558 b/6357880 6357558 is easily fixed with: https://android-git.corp.google.com/g/#/c/182228/ But there are still questions. Bug 6357880 has unknown causes at the moment but this change is the most likely candidate. So for today's pre-weekend build we are reverting this change.
* Telephony: Dynamically instantiate IccCardAlex Yakavenka2012-04-1721-274/+635
| | | | Change-Id: I8c4d800158fb1eb12de66d437cb0d76695ff98d3
* Merge "Introduce cachedPhotoIcon for notification's large icon"Daisuke Miyakawa2012-04-171-2/+26
|\
| * Introduce cachedPhotoIcon for notification's large iconDaisuke Miyakawa2012-04-161-2/+26
| | | | | | | | | | Bug: 6336293 Change-Id: I492384fdb819dfd6574b0dbc84a0324c917c392c
* | Added API to replace unicoded digits to ascii numbersjshin2012-04-161-0/+21
| | | | | | | | | | | | | | | | | | | | Users can enter arabic phone number or click arabic phone number to send MMS. Works for generic Unicode digits (full-width, etc.). bug:5615791 Change-Id: Ieec8c5c6c3736ee2b4ac8ddf17f8c41b2001460e Signed-off-by: Jake Hamby <jhamby@google.com>
* | Convert Arabic phone numbers to ASCII when sending SMS.Jake Hamby2012-04-161-34/+23
|/ | | | | | | | | | | | | | | | Modify PhoneNumberUtils to automatically convert non-ASCII digits, such as Arabic-Indic numbers, CJK full-width digits, etc., to ASCII in normalizeNumber(), extractNetworkPortion(), and stripSeparators(). This enables the SMS application to support sending SMS's to phone numbers written with Arabic, or other non-ASCII digits. The number will be converted to ASCII digits and formatted for the user according to the country formatting rules. Bug: 5615791 Change-Id: I42039285db5795b1dda22e4251f54af302e27f13 Signed-off-by: Jake Hamby <jhamby@google.com>
* Merge "Enhance the debug output for StateMachines."Wink Saville2012-04-132-7/+114
|\
| * Enhance the debug output for StateMachines.Wink Saville2012-04-132-7/+114
| | | | | | | | | | | | | | | | Allow some messages to be ignored and allow the subclass to add additional information. In particular, the information can be used to decode the msg.what to a string. Change-Id: I4f53becc6f0cb77399f99702084efef9d8785d67
* | Add user confirmation dialog before sending SMS to short code.Jake Hamby2012-04-136-112/+945
|/ | | | | | | | | | | | | | | | | | | Non-system apps now require user confirmation before sending an SMS to a short code that may potentially cost the user money. The number is tested against regex patterns for short codes for the country matching the user's SIM card or network. The user is warned if the phone number is potentially or definitely a premium SMS number. The regex patterns are loaded from core/res/res/xml/sms_short_codes.xml. If the user's country is not found, then phone numbers of 5 digits or less (excluding known emergency phone numbers) are considered to be potential SMS short codes. Command to run test cases: $ runtest -c com.android.internal.telephony.SmsUsageMonitorShortCodeTest frameworks-telephony Bug: 5513975 Change-Id: Ic0b483153390e974c632302f3061300bc2a2274a
* Fix phone is sometimes in America/Dawson canadian time zoneWink Saville2012-04-123-27/+83
| | | | | | | | | | | Add code that updates the time zone whenever the country code or time zone changes. In bug 6269708 the device initially reported the mcc as 001 and then a short time later it got the correct code, 311. This could cause the time zone to be reported as America/Dawson instead of America/Los_Angeles. Bug: 6269708 Change-Id: Ibfb40ea1158d3b99c121ed9960a1f0b1a45980bd
* Merge "Telephony: Fix NV ready state"Wink Saville2012-04-091-1/+3
|\
| * Telephony: Fix NV ready stateWink Saville2012-04-091-1/+3
| | | | | | | | | | | | | | | | Don't trigger RuimRecords onReady so that it doesn't overwrite mccmnc property value set by CdmaPhone in NV case. Bug: 6153667 Change-Id: I2f25f6a69deecd085f11dbe1dbf752c2fd51cecb
* | Add some additional debug for set operator numeric.Wink Saville2012-04-093-4/+7
|/ | | | Change-Id: I7e22a33f893984c1ad5bd9dd79428ad72d2b4d7c
* Merge "Enhance Cell Location Api."John Wang2012-04-0517-3/+861
|\
| * Enhance Cell Location Api.John Wang2012-04-0517-3/+861
| | | | | | | | | | | | | | | | | | | | | | | | To boost accurary and enhance capability of cell location api, two new APIs, TelephonyManager.getAllCellInfo() and TelephonyManager.listen(LISTEN_CELL_INFO), are added. Two new Class, CellInfo and CellIdentity, are created. This API change returns all information of one cell locaiton at the same time. It also provides additional LTE and timestamp information. Change-Id: I4d0f813107e625ec4ac88c8d980ffd171aa5fc30
* | Support metered Wi-Fi NetworkPolicy.Jeff Sharkey2012-04-051-1/+4
|/ | | | | | | | | | | | Add networkId field to NetworkIdentity to identify Wi-Fi networks by SSID. Add support for policies without usage cycles. Only apply mobile policies when SIM state is ready, which is cleaner than just checking for airplane mode. Also avoids creating no-op default policies when subscriberId is null. Bug: 3001465, 3291052 Change-Id: I1f8aaa49a5db306df022c402ea7f3f5d4bc0cfc7
* Merge "Add DebugService."Wink Saville2012-04-0220-0/+577
|\
| * Add DebugService.Wink Saville2012-04-0220-0/+577
| | | | | | | | | | | | | | | | | | | | | | | | This will dump the state of the telephony stack using: adb shell dumpsys activity service android.phone.TelephonyDebugService The service is located in packages/app/Phone and TelephonyDebugService instantiates DebugService and calls its dump method when asked via the dumpsys command above. Change-Id: I4d34c741544cafdadce2532de8b9c117a4d435a5