5 years agoFew PIN/PUK fixes
Wink Saville [Thu, 24 Oct 2013 23:56:09 +0000]
Few PIN/PUK fixes

Following changes have been made as part of this:
-> Changes done to display retry counter on wrong entry of
   PIN1,and message to indicate Code accepted/PIN1 blocked
   during PIN1 verification as per certain carrier requirements.
-> The current APIs that are used to verify the PIN and PUK only convey
   whether the operation succeeded or failed. As a result on ANY failure
   clients ask the user to re-enter the PIN.
   Add 2 new APIs that report the actual error code and returns the
   number of attempts remaing in case of failure.
-> FDN Service state was derived based on the state of PIN2. Update the
   state of FDN service based on the FACILTY_LOCK messages instead.
-> Change the default value of function getIccLockEnabled to false.
   When sim is deactivated/absent & user navigates to
   Settings->Security->Set up SIM/RUIM card lock,
   checkbox for "Lock Sim Card" option should be
   unchecked by default.
-> PIN1 can be changed only after enabling SIM lock. RIL returns
   REQUEST_NOT_SUPPORTED error if user tries to change PIN1 without
   enabling SIM lock.
   Handle the error and display appropriate message when trying to
   change PIN1 using MMI code.
-> Added MMI support for change PIN1/PIN2 and unblocking PIN2

Bug: 9928717
Change-Id: I73718c9e6a8aa7244097e0dd4593a6226ff0ac08

5 years agoMerge "more sms provider docs" into klp-dev
Scott Main [Thu, 24 Oct 2013 00:13:16 +0000]
Merge "more sms provider docs" into klp-dev

5 years agoFix bug in isOperatorConsideredNonRoaming
Robert Greenwalt [Tue, 22 Oct 2013 22:30:05 +0000]
Fix bug in isOperatorConsideredNonRoaming

Mistakenly exits if the first check of many doesn't match.

bug:11136023
Change-Id: I04883d75f32214def360292c90b2f628c4e60991

5 years agomore sms provider docs
Scott Main [Mon, 21 Oct 2013 20:47:14 +0000]
more sms provider docs

Change-Id: I1967446a9709d88625cbcbc89b70228744dbf38a

5 years agoMerge "Change how we use provisioning url so post works" into klp-dev
Robert Greenwalt [Thu, 17 Oct 2013 23:00:56 +0000]
Merge "Change how we use provisioning url so post works" into klp-dev

5 years agoChange how we use provisioning url so post works
Robert Greenwalt [Thu, 17 Oct 2013 19:38:32 +0000]
Change how we use provisioning url so post works

Needed to do an http post instead of a get for one carrier.
Do this by putting an auto-submitting form in the data to be
interpreted as a html doc by the browser.  The ACTION_VIEW
intent only works on http uri, but by specifying ACTION_MAIN/
CATEGORY_APP_BROWSER we could use data:text/html.

bug:11168810
Change-Id: Ifd33e1c3c7f9f40b6add39e446e6a7d7cde22549

5 years agoMerge "Do not allow SMS event receivers to abort the broadcast" into klp-dev
Wei Huang [Thu, 17 Oct 2013 01:52:13 +0000]
Merge "Do not allow SMS event receivers to abort the broadcast" into klp-dev

5 years agoMerge "Persist SMS messages sent by other than the default SMS app" into klp-dev
Wei Huang [Thu, 17 Oct 2013 01:47:10 +0000]
Merge "Persist SMS messages sent by other than the default SMS app" into klp-dev

5 years agomerge in klp-release (no-op)
Ed Heyl [Thu, 17 Oct 2013 00:43:18 +0000]
merge in klp-release (no-op)

5 years agoClear CDMA latitude/longitude when location setting is off.
Jake Hamby [Wed, 16 Oct 2013 21:27:56 +0000]
Clear CDMA latitude/longitude when location setting is off.

Clear CDMA base station latitude/longitude when returning
cell locations if user's location setting is disabled.

Bug: 11104404
Change-Id: I120c236ee57e37417ba7db3356678d33a087cc3d

5 years agoDo not allow SMS event receivers to abort the broadcast
David Braun [Wed, 16 Oct 2013 23:17:28 +0000]
Do not allow SMS event receivers to abort the broadcast

This prevent apps from aborting the SMS related broadcasts so that all
apps interested in seeing them will now receive the broadcast.

Bug: 11259375 Do not allow apps to abort SMS/MMS broadcasts
Change-Id: I2620899b580b8861efebcc39408c875b4033cc53

5 years agoPersist SMS messages sent by other than the default SMS app
David Braun [Wed, 16 Oct 2013 23:08:42 +0000]
Persist SMS messages sent by other than the default SMS app

Bug: 11256715 SmsManger.sendTextMessage() and SmsManager.sendMultiPartTextMessage() need to store the message in SmsProvider if called from non-default SMS app
Change-Id: I9f08435edd767f39863d018d59ec1d44e3d2128b

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 16 Oct 2013 04:14:10 +0000]
merge in klp-release history after reset to klp-dev

5 years agotelephony: Fix "R" icon displayed when device is searching or in LTE
Wink Saville [Wed, 16 Oct 2013 02:11:51 +0000]
telephony: Fix "R" icon displayed when device is searching or in LTE

Bug: 10745813, 10771508
Change-Id: I6741e14785484fe6af19d60487f4d545e568ccf9

5 years agoFix b10864885
Wink Saville [Tue, 15 Oct 2013 19:42:50 +0000]
Fix b10864885

Created getLocaleForLanguageCountry so that only one updateConfiguration
was needed to update Configuration.mcc/mnc/locale/userSetLocale. Previously
it took two updates, this streamlines the update making it more efficient.

Removed the conditional that was in setLocalFromMccIfNeeded on
getLteOnCdmaModeStatic which causes world phones that support cdma on
lte as well as gsm to not set the locale. This condiational was add to
support the multi logical SIMs for Verizon which has NV, RUIM and CSIM.

The intent of the conditional was to allow the EFpl/EFli fields of the
CSIM to be used to set the locale. But it doesn't work because of the
technique of using reading the current configuration, modifying it and
then writing it back would cause the current mode to be persisted because
of bug 11171996.

In short, bug 11171996 set the userSetLocale flag to true so when the
mcc/mnc is updated it also caused the current locale, en_US, to be
persisted not the "new" locale based on the mcc/mnc. Thus later, when the
CSIM was loaded it wouldn't be persisted anyway, because en_US was
already persisted.

Added the "persist.always.persist.locale" system property so that
you can test MccTable.updateMccMncConfiguration being called after
SetupWizard starts. Typically when starting a device that has been wiped
MccTable.updateMccMncConfigration is called before SetupWizard starts.
This means SetupWizard has the "proper" locale rather than en_US, the
default setup, when ActivityManagerService is constructed.

But, if you set persist.always.persist.locale to 1, persist.sys.language
to "en" and persist.sys.country to "US" and then reboot without wiping
SetupWizard will start first. As such SetupWizard will start with en_US
as its locale. A short time later MccTable.updateMccMncConfiguration will
be called and it will set the locale to the "proper" value based on the
mcc/mnc if you've set persist.always.persist.locale to 1. This allows the
testing of SetupWizard running first.

Finally I'm using Slog for logging as it makes it easier to debug the
interaction of MccTable, SetupWizard and ActivityManagerService.

Bug: b10864885
Change-Id: I19709ebf18f6d32af1b1b16ced511d331e145cf7

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 14 Oct 2013 02:20:32 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "Make SmsApplication checks more defensive" into klp-dev
David Braun [Sun, 13 Oct 2013 23:17:54 +0000]
Merge "Make SmsApplication checks more defensive" into klp-dev

5 years agoMake SmsApplication checks more defensive
David Braun [Sun, 13 Oct 2013 21:23:17 +0000]
Make SmsApplication checks more defensive

When SmsApplication::getApplication is called it will check to see if the
configured default SMS app and the phone package have the needed app ops
to work properly. If the call was made from a privilidged caller where
updateIfNeeded == true then the issue will be corrected, if the call was
made from an insecure caller we will return null indicating no default SMS
app which will cause client apps to know that they are not properly set
as the default SMS app. Either way we log an error.

When SmsApplication::setDefaultApplication is called we will ensure that
even if the previous app is no longer enabled or no longer set up as a
valid SMS app, we will still revoke it's OP_WRITE_SMS permission.

Bug: 11071837 Hangouts on KLP lost the WRITE_SMS permission
Change-Id: Ifea39a3d63e4ec3a30a6a1fa5834878dcc9ccfa0

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 13 Oct 2013 13:02:04 +0000]
merge in klp-release history after reset to klp-dev

5 years agotelephony: redirect call barring MMI code to other purpose
duho.ro [Fri, 27 Sep 2013 07:50:32 +0000]
telephony: redirect call barring MMI code to other purpose

Some operators redirect call barring MMI codes to other purpose.
For instance, *333# should be processed as USSD code with Indonesia
Axis SIM and Indonesia Hutchison SIM.  This change is adding an array
for call barring MMI code to config.xml. So, we can redefine the array
for redirecting the call barring MMI codes. The MMI code is compared
with the call barring MMI codes from config.xml.

Bug: 10101303

Change-Id: Ib21540a90c64e105cd4bc1864238329d594cd056

5 years agotelephony: Set profile DATA_PROFILE_TETHERED when DUN type
Sungmin Choi [Sat, 7 Sep 2013 07:22:48 +0000]
telephony: Set profile DATA_PROFILE_TETHERED when DUN type

Bug: 11152852
Change-Id: I018e3dfb9c8183b11faedc83cc40be658173c4a3

Conflicts:
src/java/com/android/internal/telephony/dataconnection/DcTracker.java

5 years agoSupport SMS over IMS
Sukanya Rajkhowa [Sat, 14 Sep 2013 02:06:47 +0000]
Support SMS over IMS

ImsSMSDispatcher is part of IccSmsInterfaceManager.
It always receives calls to send sms first and decides
whether to use ims call flow or gsm/cdma based on response
to REQUEST_IMS_REGISTRATION_STATE.

When ims is registered and sms is supported, the request also returns
sms format to use.

In case of sms over ims failure, RIL_REQUEST_IMS_SEND_SMS sets
messageRef from RIL_SMS_RESPONSE of corresponding failed MO SMS, and
sets retry field to non-zero. If voice is available, sends
RIL_REQUEST_IMS_SEND_SMS retries with data encoded based on voice tech
available.  If voice is not available, sets retry counter to max and
skips retries and sends failure to client.

Bug: 9626411

Change-Id: I4c63c8fc0eb2191847b509e66772e3de27d491ed
Signed-off-by: Ed Tam <etam@google.com>

Conflicts:
src/java/com/android/internal/telephony/gsm/GSMPhone.java

5 years agoReorganize IccSmsInterfaceManager
Sukanya Rajkhowa [Sat, 14 Sep 2013 02:01:05 +0000]
Reorganize IccSmsInterfaceManager

Move duplicate functionality of RuimSmsInterfaceManager and
SimSmsInterfaceManager to the parent IccSmsInterfaceManager.
Earlier IccSmsInterfaceManagerProxy could only support RUIM
on CDMALTEPhone and SIM on GSMPhone.New architecture allows
for RUIM and SIM support for both GSMPhone and CDMALTEPhone

Change-Id: I8a3046fd0e8c366beefea267a79e14e4b1941d09

5 years agotelephony: Set profile DATA_PROFILE_TETHERED when DUN type
Sungmin Choi [Sat, 7 Sep 2013 07:22:48 +0000]
telephony: Set profile DATA_PROFILE_TETHERED when DUN type

Bug: 11152852
Change-Id: I018e3dfb9c8183b11faedc83cc40be658173c4a3

Conflicts:
src/java/com/android/internal/telephony/dataconnection/DcTracker.java

5 years agomerge in KQS81M
Ed Heyl [Tue, 8 Oct 2013 22:40:51 +0000]
merge in KQS81M

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 8 Oct 2013 13:00:50 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "Do not allow default SMS application to be set or get on non-phone devices...
David Braun [Mon, 7 Oct 2013 18:10:44 +0000]
Merge "Do not allow default SMS application to be set or get on non-phone devices" into klp-dev

5 years agoam bffd2117: am ef3149f4: Fix build.
Wink Saville [Mon, 7 Oct 2013 00:10:55 +0000]
am bffd2117: am ef3149f4: Fix build.

* commit 'bffd2117a84bec9cfadef300177efe3b2ac4d89d':
  Fix build.

5 years agoam 7351fdfb: (-s ours) am 1b8d3498: Hipri should not be enabled by default. DO NOT...
Wink Saville [Mon, 7 Oct 2013 00:10:54 +0000]
am 7351fdfb: (-s ours) am 1b8d3498: Hipri should not be enabled by default. DO NOT MERGE.

* commit '7351fdfb5b61da990f72cdc18dead250a9e5379c':
  Hipri should not be enabled by default. DO NOT MERGE.

5 years agoam e3e070ec: (-s ours) am 59986fee: Remap NONE to UNKNOWN on GENERIC_FAILURES for...
Wink Saville [Mon, 7 Oct 2013 00:10:54 +0000]
am e3e070ec: (-s ours) am 59986fee: Remap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL. DO NOT MERGE.

* commit 'e3e070ec720cceb3f12d9c720e42519797aff583':
  Remap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL. DO NOT MERGE.

5 years agoam e065bce5: (-s ours) am e188b658: Fix NPE when exiting DcDefaultState. DO NOT MERGE.
Wink Saville [Mon, 7 Oct 2013 00:10:54 +0000]
am e065bce5: (-s ours) am e188b658: Fix NPE when exiting DcDefaultState. DO NOT MERGE.

* commit 'e065bce5478efc479d37466fd8923e0e2422ec5d':
  Fix NPE when exiting DcDefaultState. DO NOT MERGE.

5 years agoam 16758906: (-s ours) am f02d966c: Handling data registration and radio technology...
Wink Saville [Mon, 7 Oct 2013 00:10:53 +0000]
am 16758906: (-s ours) am f02d966c: Handling data registration and radio technology changing. DO NOT MERGE.

* commit '1675890645834ed5d9aee23b8de2c0d5d66d6d15':
  Handling data registration and radio technology changing. DO NOT MERGE.

5 years agoam 2f25f745: (-s ours) am ec56ef5d: Change DcTracker to not connect or retry if detac...
Wink Saville [Mon, 7 Oct 2013 00:10:53 +0000]
am 2f25f745: (-s ours) am ec56ef5d: Change DcTracker to not connect or retry if detached. DO NOT MERGE.

* commit '2f25f74592dcc0d13035f8adfdb90b7bc6a54e06':
  Change DcTracker to not connect or retry if detached. DO NOT MERGE.

5 years agoam 74abae35: (-s ours) Merge commit \'89518902\' into merge-conflict
Wink Saville [Mon, 7 Oct 2013 00:10:53 +0000]
am 74abae35: (-s ours) Merge commit \'89518902\' into merge-conflict

* commit '74abae3576f9ae6f8ad96762851d880d3853e553':
  Change DcTracker construction so only initialization is preformed. DO NOT MERGE.

5 years agoam ef3149f4: Fix build.
Wink Saville [Mon, 7 Oct 2013 00:03:52 +0000]
am ef3149f4: Fix build.

* commit 'ef3149f4e736344e55f0fc8ceb419edf66119969':
  Fix build.

5 years agoam 1b8d3498: Hipri should not be enabled by default. DO NOT MERGE.
Wink Saville [Mon, 7 Oct 2013 00:03:51 +0000]
am 1b8d3498: Hipri should not be enabled by default. DO NOT MERGE.

* commit '1b8d3498dde73d31c8d6e48050b6240164a8fcc1':
  Hipri should not be enabled by default. DO NOT MERGE.

5 years agoam 59986fee: Remap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL. DO NOT...
Wink Saville [Mon, 7 Oct 2013 00:03:51 +0000]
am 59986fee: Remap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL. DO NOT MERGE.

* commit '59986fee9e72a2298e08d118d51f22f3c86be3b4':
  Remap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL. DO NOT MERGE.

5 years agoam e188b658: Fix NPE when exiting DcDefaultState. DO NOT MERGE.
Wink Saville [Mon, 7 Oct 2013 00:03:50 +0000]
am e188b658: Fix NPE when exiting DcDefaultState. DO NOT MERGE.

* commit 'e188b6586d6683ef1fa8dc781cbf4e66ee71a4c3':
  Fix NPE when exiting DcDefaultState. DO NOT MERGE.

5 years agoam f02d966c: Handling data registration and radio technology changing. DO NOT MERGE.
Wink Saville [Mon, 7 Oct 2013 00:03:49 +0000]
am f02d966c: Handling data registration and radio technology changing. DO NOT MERGE.

* commit 'f02d966cc7e87eaea595f05714857c4ca99a36e6':
  Handling data registration and radio technology changing. DO NOT MERGE.

5 years agoam ec56ef5d: Change DcTracker to not connect or retry if detached. DO NOT MERGE.
Wink Saville [Mon, 7 Oct 2013 00:03:49 +0000]
am ec56ef5d: Change DcTracker to not connect or retry if detached. DO NOT MERGE.

* commit 'ec56ef5d31886afbae233e5cccb8fbf78cfa01c4':
  Change DcTracker to not connect or retry if detached. DO NOT MERGE.

5 years agoMerge commit '89518902' into merge-conflict
Wink Saville [Sun, 6 Oct 2013 23:59:07 +0000]
Merge commit '89518902' into merge-conflict

* commit '89518902':
  Change DcTracker construction so only initialization is preformed. DO NOT MERGE.

5 years agoDo not allow default SMS application to be set or get on non-phone devices
David Braun [Fri, 4 Oct 2013 23:52:29 +0000]
Do not allow default SMS application to be set or get on non-phone devices

Bug: 11072894 People app should not launch into default SMS app on tablets
Change-Id: I9cedf3840f46bbc135f535b60659e5527f79a5aa

5 years agoRevert "Stop using the sim mnc/mcc to set wifi country."
Robert Greenwalt [Thu, 3 Oct 2013 21:14:32 +0000]
Revert "Stop using the sim mnc/mcc to set wifi country."

This reverts commit 78d801a78087b6a2419f0820628d0273df53203f.

bug:11064682
Change-Id: I46f5b90de417636d03bfa5932684f0ace68a3f6e

5 years agoMerge "Revert "Stop using the sim mnc/mcc to set wifi country."" into klp-dev
Robert Greenwalt [Fri, 4 Oct 2013 18:34:07 +0000]
Merge "Revert "Stop using the sim mnc/mcc to set wifi country."" into klp-dev

5 years agoFix build.
Wink Saville [Thu, 3 Oct 2013 23:42:08 +0000]
Fix build.

The merge conflicts I'd resolved internally got overwritten when pushed
up the other changes.

Change-Id: I6a3cd569e6cf1a0fb09a19379d65724d43c11bdf

5 years agoRevert "Stop using the sim mnc/mcc to set wifi country."
Robert Greenwalt [Thu, 3 Oct 2013 21:14:32 +0000]
Revert "Stop using the sim mnc/mcc to set wifi country."

This reverts commit 78d801a78087b6a2419f0820628d0273df53203f.

bug:11064682
Change-Id: I46f5b90de417636d03bfa5932684f0ace68a3f6e

5 years agoHipri should not be enabled by default. DO NOT MERGE.
Wink Saville [Fri, 16 Aug 2013 16:35:09 +0000]
Hipri should not be enabled by default. DO NOT MERGE.

This can cause it to become to become the default connection
which it is not and get started instead of default.

Change-Id: I3a223099c53423856e6adfaef4abc0274f9d4c2a

5 years agoRemap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL. DO NOT MERGE.
Wink Saville [Fri, 16 Aug 2013 16:34:50 +0000]
Remap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL. DO NOT MERGE.

Bug: 9040003
Change-Id: I749d502529fc5542b910f4e49460730070b3e4b9

5 years agoFix NPE when exiting DcDefaultState. DO NOT MERGE.
Wink Saville [Fri, 16 Aug 2013 16:34:32 +0000]
Fix NPE when exiting DcDefaultState. DO NOT MERGE.

Bug: 9263045
Change-Id: Ib3b599b2502130af248a0cffc226d8916047dc6d

5 years agoHandling data registration and radio technology changing. DO NOT MERGE.
Wink Saville [Fri, 16 Aug 2013 16:34:11 +0000]
Handling data registration and radio technology changing. DO NOT MERGE.

When the DataRegistrationState (aka DRS) or RilDataRadioTechnology changes
aka Radio Access Technology or RAT) while retrying the DataConnection
StateMachine will return the connection as lost immediately. This allows
the connection to be retried with the correct handling of the changed
DRS or RAT quickly, rather than having to wait until retires are exhausted.

Changes:

- Pass RAT in bringUp
- Add the capability to register for DRS/RAT changes with SST
- When DRS/RAT changes in DcRetryState return LOST_CONNECTION to DcTracker

Bug: 9069568
Change-Id: I897168baf17ecaedd0f1df4ef3c2263066d70ece

5 years agoChange DcTracker to not connect or retry if detached. DO NOT MERGE.
Wink Saville [Fri, 16 Aug 2013 16:33:46 +0000]
Change DcTracker to not connect or retry if detached. DO NOT MERGE.

If we're detached than there is no possibility of connecting
so fail early. Upon attaching enabled connections will be retried.

Bug: 9024828
Change-Id: I7b3f8f872ae9b205cf0a71a9bc4ac73df664f48d

5 years agoChange DcTracker construction so only initialization is preformed. DO NOT MERGE.
Wink Saville [Wed, 2 Oct 2013 17:31:51 +0000]
Change DcTracker construction so only initialization is preformed. DO NOT MERGE.

In initApnContexts applyNewState and onSetDependency met could cause
calls to trySetupData which can send notifications or even try to
bring up a connection. This can cause problems as not all objects are
initialized. In particular when I tried to change ApnContext#isReady
to be false it caused a call to mPhone.notifyDataConnection but mPhone
wasn't completely initialized and an NPE occurred.

Bug: 9022095
Change-Id: Ie817db2c0c1b381b1f58e87817f4b2336c7a3159

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 1 Oct 2013 13:01:05 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "Stop using the sim mnc/mcc to set wifi country." into klp-dev
Robert Greenwalt [Mon, 30 Sep 2013 21:13:37 +0000]
Merge "Stop using the sim mnc/mcc to set wifi country." into klp-dev

5 years agoMerge "Add Telephony intent class to public API." into klp-dev
Jake Hamby [Mon, 30 Sep 2013 17:18:42 +0000]
Merge "Add Telephony intent class to public API." into klp-dev

5 years agoStop using the sim mnc/mcc to set wifi country.
Robert Greenwalt [Fri, 27 Sep 2013 22:10:40 +0000]
Stop using the sim mnc/mcc to set wifi country.

bug:10513734
Change-Id: Idac32892db8ff9b5ca4c5bde4f3f3b12f0df1196

5 years agoHandle SIGNAL_LOST(-3) as a retryable error.
Wink Saville [Fri, 27 Sep 2013 17:53:46 +0000]
Handle SIGNAL_LOST(-3) as a retryable error.

Qualcomm reports SIGNAL_LOST when a signal is lost temporarily
and should be retired. If a radio technology changes then the
DataConnection will stop retrying and the DcTracker will get a
new configuration and setup a new data call. If the rat doesn't
change then DataConnection will reestablish the call on the next
retry attempt.

Bug: 10804691
Change-Id: I4d310e7f2ea2dc46c7bcdd2b8687d1ef6b901e01

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 29 Sep 2013 13:01:20 +0000]
merge in klp-release history after reset to klp-dev

5 years agoHandle SIGNAL_LOST(-3) as a retryable error.
Wink Saville [Fri, 27 Sep 2013 17:53:46 +0000]
Handle SIGNAL_LOST(-3) as a retryable error.

Qualcomm reports SIGNAL_LOST when a signal is lost temporarily
and should be retired. If a radio technology changes then the
DataConnection will stop retrying and the DcTracker will get a
new configuration and setup a new data call. If the rat doesn't
change then DataConnection will reestablish the call on the next
retry attempt.

Bug: 10804691
Change-Id: I4d310e7f2ea2dc46c7bcdd2b8687d1ef6b901e01

5 years agoMerge "Revert "Revert "telephony: Set roam though same named operator""" into klp-dev
Vineeta Srivastava [Thu, 26 Sep 2013 20:18:17 +0000]
Merge "Revert "Revert "telephony: Set roam though same named operator""" into klp-dev

5 years agoRevert "Revert "telephony: Set roam though same named operator""
Vineeta Srivastava [Thu, 26 Sep 2013 20:11:19 +0000]
Revert "Revert "telephony: Set roam though same named operator""

This reverts commit cd338fdb16422f47788c3bc3cdf6391f1268bbfe.

Change-Id: Ib7aa6ce911a22098461c76b5e0be191852d34bb1

5 years agoMerge "Revert "telephony: Set roam though same named operator"" into klp-dev
Vineeta Srivastava [Thu, 26 Sep 2013 19:34:47 +0000]
Merge "Revert "telephony: Set roam though same named operator"" into klp-dev

5 years agoRevert "telephony: Set roam though same named operator"
Vineeta Srivastava [Thu, 26 Sep 2013 19:34:39 +0000]
Revert "telephony: Set roam though same named operator"

This reverts commit ce0eb1a929a8abb9a99b042813e403b0d6f74fdd.

Change-Id: I324343a218e155ece9f8243cdc44ce9fffe8e5d5

5 years agoMerge "telephony: Set roam though same named operator" into klp-dev
Vineeta Srivastava [Thu, 26 Sep 2013 18:44:40 +0000]
Merge "telephony: Set roam though same named operator" into klp-dev

5 years agotelephony: Set roam though same named operator
Sungmin Choi [Mon, 23 Sep 2013 06:06:26 +0000]
telephony: Set roam though same named operator

Show roaming icon though same named operators.
Though same mcc and same operator name, some operator want to roam.
For example, users of 40485 should see the roaming icon as using 40483
network though same Reliance network.

Bug: 10699045, 10703022
Change-Id: Ife1024ef10a29e43e32040800b25feca9f51fb62

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 26 Sep 2013 13:01:29 +0000]
merge in klp-release history after reset to klp-dev

5 years agowappush: Use valid index for pdu including garbages
Sungmin Choi [Thu, 29 Aug 2013 00:12:06 +0000]
wappush: Use valid index for pdu including garbages

For some operators, pdu has garbages. As a result, device does not receive
MMS or operator some requests.
To fix it, re-index pdu to use valid index for operators.

Bug: 10492745
Change-Id: Ic7262f7369403bd060d94c5da0e09f18c96ff3db

5 years agoMerge "UICC: to avoid overwriting ICC operator numeric" into klp-dev
Vineeta Srivastava [Wed, 25 Sep 2013 23:09:48 +0000]
Merge "UICC: to avoid overwriting ICC operator numeric" into klp-dev

5 years agoUICC: to avoid overwriting ICC operator numeric
duho.ro [Mon, 16 Sep 2013 20:54:24 +0000]
UICC: to avoid overwriting ICC operator numeric

When the SIM card is inserted and the radio tech is CDMA,
init() of CDMAPhone overwrites the ICC operator numeric as
CDMA_HOME_OPERATOR_NUMERIC. It makes some abnormal state when the
CDMA_HOME_OPERATOR_NUMERIC has a wrong value or empty.
This change is skipping the overwriting ICC operator numeric when UICC
card has a SIM/USIM application because the application has its own
operator numeric.

Bug: 10774885
Change-Id: I0171000ef38fad23858f7266ab0cae3bd314b6b1

5 years agowappush: Use valid index for pdu including garbages
Sungmin Choi [Thu, 29 Aug 2013 00:12:06 +0000]
wappush: Use valid index for pdu including garbages

For some operators, pdu has garbages. As a result, device does not receive
MMS or operator some requests.
To fix it, re-index pdu to use valid index for operators.

Bug: 10492745
Change-Id: Ic7262f7369403bd060d94c5da0e09f18c96ff3db

5 years agoAdd Telephony intent class to public API.
Jake Hamby [Fri, 13 Sep 2013 21:13:03 +0000]
Add Telephony intent class to public API.

Remove @hide from android.provider.Telephony for K release for
SMS and MMS related tables, and APN database (for MMSC info).
Helper methods are hidden except for two that use non-public APIs.

Bug: 10653081
Change-Id: I3509b122ae4e762c1c44e6b4aa8b36c8d0b62224

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 25 Sep 2013 13:01:49 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "Update the requirements for being an SMS app in KLP" into klp-dev
David Braun [Wed, 25 Sep 2013 00:23:21 +0000]
Merge "Update the requirements for being an SMS app in KLP" into klp-dev

5 years agoUpdate the requirements for being an SMS app in KLP
David Braun [Tue, 24 Sep 2013 23:29:55 +0000]
Update the requirements for being an SMS app in KLP

SMS applications need to handle repsond-via-message (for rejecting a phone
call with an SMS message) and SENDTO with the smsto Uri scheme so that
contact applications can direct the user to the right app. This change also
adds permission requirements for the existing intents that SMS apps
implement.

Bug: 10870624 System should direct "SENDTO" intent with "sms" and "mms" schemes to the default SMS app
Bug: 10818880 Telephony needs to direct RESPOND_VIA_MESSAGE intent only to the default SMS app
Change-Id: I373268bb694f155fb08e2864ae86af345a85c4ff

5 years agotelephony: Add Explicit Call Transfer (ECT) feature
Sungmin Choi [Thu, 6 Jun 2013 20:38:48 +0000]
telephony: Add Explicit Call Transfer (ECT) feature

Use ECT as "4 + Send".

Bug: 9745857
Change-Id: If94d7ad33eb72dede86030c26e8a8c1b5b8125e3

5 years agoUICC : fix read EF Image Instance
duho.ro [Thu, 11 Jul 2013 00:32:18 +0000]
UICC : fix read EF Image Instance

The EFs(4Fxx) path under DF Graphics are not distinguish with
the EFs(4Fxx) path under DF Phonebook. So, getEFPath(EF_IIDF)
is not able to return correct path. Because getEFPath(EF_IMG)
is correct path, DF graphics, getEFPath(EF_IMG) is used instead of getEFPath(EF_IIDF),

EF_IMG is a linear fixed EF. The result of loading EF_IMG should be
processed as a LoadLinearFixedContext. So, it is needed to calculate the
number of EF_IMG records. If those changes are added, the changes are
duplicated with the codes of EVENT_GET_RECORD_SIZE_DONE. The codes
of EVENT_GET_RECORD_SIZE_IMG_DONE are removed and the event is treated
by the logic of the EVENT_GET_RECORD_SIZE_DONE. And then remove incorrect handler
events(EVENT_READ_IMG_DONE and EVENT_READ_ICON_DONE) are moved to the handler
events which have the procedure for loading same type EFs (EVENT_READ_RECORD_DONE
and the EVENT_READ_BINARY_DONE).

Bug: 9767739

Change-Id: I754ec5c40cff99adef11a9dfdc31b8e0446befbb

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 24 Sep 2013 13:01:14 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMove RIL_REQUEST_SET_INITIAL_ATTACH_APN to RILConstants.java
Wink Saville [Mon, 23 Sep 2013 21:53:19 +0000]
Move RIL_REQUEST_SET_INITIAL_ATTACH_APN to RILConstants.java

Bug: 9626411
Change-Id: I0c278d9f4c6fd7e12c495c2411ab94ac87e1f316

5 years agoUpdate API used to determine default SMS app.
David Braun [Mon, 23 Sep 2013 17:16:16 +0000]
Update API used to determine default SMS app.

In order to direct intents that make sense to send only to the default SMS
app, we need to update the API to return the package rather than just
having it check the package name.

Bug: 10870624 System should direct "SENDTO" intent with "sms" and "mms" schemes to the default SMS app
Change-Id: I1aa44a8a1113c42a13b4cb1f813fcaed347c1f47

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Sun, 22 Sep 2013 17:51:13 +0000]
merge in klp-release history after reset to klp-dev

5 years agoAdd config setting for default sms app.
David Braun [Thu, 19 Sep 2013 23:13:28 +0000]
Add config setting for default sms app.

Different devices can have different default SMS apps.

Bug: 10818725 Allow OEM to specify or override a default SMS app (package)
Change-Id: I11c9832d2246677231e6a54cb03eb76650c85c98

5 years agoEnsure that a default SMS app is configured at boot
David Braun [Thu, 19 Sep 2013 19:14:09 +0000]
Ensure that a default SMS app is configured at boot

Make sure that two things are true on boot so that SMS/MMS will work
properly:
1) We have selected a default SMS/MMS app that will have write permission
to the SMS database
2) The Phone app always has permission to the database because it needs
to write to the raw tables when delivering MMS messages.

Note: If you change the default app explicitly the problems sending SMS
and MMS messages in Messaging will still happen. Preventing this requires
a larger change to prevent Mms from trying to send when it is not the
default app.

Bug: 10819150 Messaging App crashes while sending MMS
Bug: 10837862 Unable to send messages in Messaging app
Change-Id: Ie920e308b9b4067f0bbe1b6b2184c22aaf663065

5 years agoMerge "Fix potential NPE in ApnContext.isProvisioningApn" into klp-dev
Wink Saville [Thu, 19 Sep 2013 20:08:40 +0000]
Merge "Fix potential NPE in ApnContext.isProvisioningApn" into klp-dev

5 years agoEnsure that a default SMS app is configured at boot
David Braun [Thu, 19 Sep 2013 19:14:09 +0000]
Ensure that a default SMS app is configured at boot

Make sure that two things are true on boot so that SMS/MMS will work
properly:
1) We have selected a default SMS/MMS app that will have write permission
to the SMS database
2) The Phone app always has permission to the database because it needs
to write to the raw tables when delivering MMS messages.

Note: If you change the default app explicitly the problems sending SMS
and MMS messages in Messaging will still happen. Preventing this requires
a larger change to prevent Mms from trying to send when it is not the
default app.

Bug: 10819150 Messaging App crashes while sending MMS
Bug: 10837862 Unable to send messages in Messaging app
Change-Id: Ie920e308b9b4067f0bbe1b6b2184c22aaf663065

5 years agoFix potential NPE in ApnContext.isProvisioningApn
Wink Saville [Thu, 19 Sep 2013 18:43:26 +0000]
Fix potential NPE in ApnContext.isProvisioningApn

Bug: 10839016
Change-Id: Ifa0f974c0df69928a5d1e29c215b5bcf8c4a5fb1

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 19 Sep 2013 13:01:51 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "Fix permission check for reading SMS on UICC." into klp-dev
Jake Hamby [Wed, 18 Sep 2013 22:28:12 +0000]
Merge "Fix permission check for reading SMS on UICC." into klp-dev

5 years agoTelephony: Update CF number in EF_CFIS.
Wink Saville [Wed, 18 Sep 2013 21:03:33 +0000]
Telephony: Update CF number in EF_CFIS.

When call forwarding is enabled, only status is updated in EF_CFIS.
CF number is not updated. Added support to update CF number as well.

Bug: 10642929
Change-Id: Ia764b872b7837d71ffad206e37e9b261e4db7a83

5 years agoFix permission check for reading SMS on UICC.
Jake Hamby [Wed, 18 Sep 2013 19:26:53 +0000]
Fix permission check for reading SMS on UICC.

When accessing SMS stored on UICC via TelephonyProvider, we need to
use the com.android.phone UID for the call to IccSmsInterfaceManager
to avoid a UID mismatch failure in the app ops check. Change the
permission check method call from enforceCallingPermission() to
enforceCallingOrSelfPermission() so the check doesn't fail.

Bug: 10131077
Change-Id: I0d7e0925be1fc69a95298865a1632a1fd953add0

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 18 Sep 2013 04:11:30 +0000]
merge in klp-release history after reset to klp-dev

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 18 Sep 2013 00:39:56 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "Telephony: Handle RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE" into klp-dev
Wink Saville [Wed, 18 Sep 2013 00:02:19 +0000]
Merge "Telephony: Handle RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE" into klp-dev

5 years agoMerge "Implement new method for handling SMS/MMS on the platform" into klp-dev
David Braun [Tue, 17 Sep 2013 22:15:04 +0000]
Merge "Implement new method for handling SMS/MMS on the platform" into klp-dev

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 17 Sep 2013 13:01:02 +0000]
merge in klp-release history after reset to klp-dev

5 years agotelephony: Increase the MAX_CONNECTIONS to 8
Sungmin Choi [Sun, 15 Sep 2013 21:47:36 +0000]
telephony: Increase the MAX_CONNECTIONS to 8

The problem is that Telephony does not handle call id 2 for CDMA.
When back to back calls are made, RIL stores the previous call information
for some time as it needs to give failure reason for the last call
that failed when telephony asks for it.
So for the next call it assigns a call ID of 2.

Bug: 10355466
Change-Id: I9a4a188780bde9e66aacc7a43d54df1118b10dfb

5 years agoImplement new method for handling SMS/MMS on the platform
David Braun [Mon, 16 Sep 2013 20:44:51 +0000]
Implement new method for handling SMS/MMS on the platform

Multi project change:
The changes in this project implement the actual change in the SMS related
intent behavior (defining and using the new events).

Bug: 10449618
Change-Id: Ia707ed561d89428db78203a2ed54504d867a3e43

5 years agoTelephony: Handle RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE
Anshul Jain [Tue, 22 Nov 2011 20:23:14 +0000]
Telephony: Handle RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE

Handle RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE as a way to exit from
Emergency Callback Mode

Bug: 10749583
Change-Id: Ia572ac5a4d5ab38166453dcdf26fb0a667bba74e

5 years agoIn Cdma Lte SST use CssIndicator for concurrent Voice & Data.
Wink Saville [Thu, 12 Sep 2013 19:28:31 +0000]
In Cdma Lte SST use CssIndicator for concurrent Voice & Data.

This will break concurrent voice and data on mysid, but because
mysid is EOL and to keep this change simple we're not trying to
mitigate that using config variables.

Bug: 10100317
Change-Id: I7960a8d68258621de1fd9c140c3fefcdfcea8804

5 years agoAdd code to handle voice radio technology of LTE.
Wink Saville [Thu, 12 Sep 2013 06:56:00 +0000]
Add code to handle voice radio technology of LTE.

Sometimes the Voice Radio Technology is reported as LTE but Voice
over LTE (VoLte) is not currently supported and for Sprint we
should default to CDMAPhone in that case. Otherwise the could stay
as a GSMPhone and handling voice calls will fail.

Bug: 10673760
Change-Id: Ic77411b5da415c620fce5a185ca1d7542dfe3b7f

5 years agoFix voicemail notification for Sprint.
Jake Hamby [Thu, 12 Sep 2013 21:55:34 +0000]
Fix voicemail notification for Sprint.

Sprint voicemail notification wasn't showing up because we were
looking for a CSIM application on the UICC and couldn't find it.
Added code to CDMAPhone.onUpdateIccAvailability() to load the USIM
application if we fail to get the CSIM application.

Bug: 9908333
Change-Id: I5c69c9eea6972e377b10a4057492f9ecc8233028