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 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 "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 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 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 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 "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 "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 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 agoMerge "In Cdma Lte SST use CssIndicator for concurrent Voice & Data." into klp-dev
Wink Saville [Thu, 12 Sep 2013 23:51:40 +0000]
Merge "In Cdma Lte SST use CssIndicator for concurrent Voice & Data." into klp-dev

5 years agoMerge "Add code to handle voice radio technology of LTE." into klp-dev
Wink Saville [Thu, 12 Sep 2013 23:50:51 +0000]
Merge "Add code to handle voice radio technology of LTE." into klp-dev

5 years agoMerge "Fix voicemail notification for Sprint." into klp-dev
Jake Hamby [Thu, 12 Sep 2013 23:32:35 +0000]
Merge "Fix voicemail notification for Sprint." into klp-dev

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

5 years agoMerge "Telephony: Ignore events on a destroyed phone" into klp-dev
Wink Saville [Thu, 12 Sep 2013 20:57:37 +0000]
Merge "Telephony: Ignore events on a destroyed phone" into klp-dev

5 years agoTelephony: Ignore events on a destroyed phone
Wink Saville [Thu, 12 Sep 2013 20:40:41 +0000]
Telephony: Ignore events on a destroyed phone

It is possible to receive responses from RIL after phone has released
it's references. Ignore events in such cases, since those events no
longer make sense, and some phone members have been de-initialized.

Make CallTrackers notify UI when ending calls in dispose, since
it has already unregistered, and won't receive the CALL_STATE_CHANGED

Change-Id: I5d8fd9ce3f74b9ae9b5b645565bd24d11be0aebc
CRs-Fixed: 228731, 228005, 415801, 350739

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 agoRemove special code for fake CDMA APN
Robert Greenwalt [Wed, 11 Sep 2013 17:32:52 +0000]
Remove special code for fake CDMA APN

revert of https://android-review.googlesource.com/#/c/62943/2

Solved the need for sprint using bearer-specific APNs instead
as the phone type is not a reliable trigger.

bug: 9315957
Change-Id: I0e5545ab4706df2c5917c7534291644c5d8797b3

5 years agoMerge "CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R" into...
Wink Saville [Wed, 11 Sep 2013 04:49:21 +0000]
Merge "CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R" into klp-dev

5 years agoCatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R
Shriram Ganesh [Tue, 21 Aug 2012 02:30:23 +0000]
CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R

Upon handling OPEN_CHANNEL command, send User confirmation instead of
terminal response as lower layers expect confirmation information.

Bug: 10602211
Change-Id: I99ee5210ff345660559d1656e80c6ab8b0991d8e

5 years agoFix receiving multi-part CDMA WAP messages.
Jake Hamby [Tue, 10 Sep 2013 22:02:23 +0000]
Fix receiving multi-part CDMA WAP messages.

Fix ArrayIndexOutOfBoundsException in CDMA WAP message handling.
Add a new flag to raw DB table to indicate 3GPP2 WAP PDU messages.
Use the new flag to return the correct value for getIndexOffset()
in InboundSmsTracker.

Previously this only worked correctly for single-segment WAP PDUs
of type WAP push.

Bug: 10595053
Change-Id: I8820da124e8fa4707cbee0398690a475d26ff702

5 years agosms: Add exception code instead of low memory status
Sungmin Choi [Wed, 4 Sep 2013 06:32:36 +0000]
sms: Add exception code instead of low memory status

Add exceptoin code, after receiving Duplicated SMS.

Bug: 10484923
Change-Id: Ic9465adeb8a09d11fdd2e5b35108410baf56a2fc
Signed-off-by: daehun.ju <daehun.ju@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>

5 years agoUICC: get ICCID from SIM for CDMAPhone state
duho.ro [Fri, 6 Sep 2013 17:07:04 +0000]
UICC: get ICCID from SIM for CDMAPhone state

If the phone state is CDMAPhone and the UICC does not have a CDMA application,
getIccSerialNumber() can not read the ICCID from SIM.
This changes are changing the reference of the card application object
from RUIMRecords to SIMRecords. So, this method is able to get the ICCID
from SIMRecords, if the UICC has a SIM/USIM.

Bug: 10564873
Change-Id: Id55f794828f1f1a89905298776500df90088b17e

5 years agotelephony: Fix roaming icon setting
Sungmin Choi [Thu, 5 Sep 2013 20:14:29 +0000]
telephony: Fix roaming icon setting

Currently, if data roaming is true and gsm roaming is true,
roaming icon is always true.
But, in this case, roamin icon shoould depends on other condition,
i.e., same named operators or operator considered non-roaming.

Bug: 10642211
Change-Id: Ia98ffeec5dc013cf045b15c9a7c53c4a24f2eeb5

5 years agoMerge "UICC : Add MCC MNC codes having 3 digits MNC" into klp-dev
Vineeta Srivastava [Thu, 5 Sep 2013 07:08:47 +0000]
Merge "UICC : Add MCC MNC codes having 3 digits MNC" into klp-dev

5 years agoMerge commit 'ebca826a' into manualmerge
Wink Saville [Thu, 5 Sep 2013 03:21:09 +0000]
Merge commit 'ebca826a' into manualmerge

* commit 'ebca826a':
  Add provisioning apn timeout.

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

Change-Id: Ic89a22167b91e05068160a6ef0a194215913bfe7

5 years agoam e9063f69: Add provisioning apn timeout.
Wink Saville [Thu, 5 Sep 2013 01:14:08 +0000]
am e9063f69: Add provisioning apn timeout.

* commit 'e9063f6973039d66e12d0d930af03906d377969e':
  Add provisioning apn timeout.

5 years agoAdd provisioning apn timeout.
Wink Saville [Wed, 4 Sep 2013 23:00:44 +0000]
Add provisioning apn timeout.

Bug: 10609993
Change-Id: I2dd4fe23fa2b22ef8f4849c161c630d1a85cdb4b

5 years agoUICC : Add MCC MNC codes having 3 digits MNC
duho.ro [Tue, 3 Sep 2013 04:54:34 +0000]
UICC : Add MCC MNC codes having 3 digits MNC

Old Rogers, Fido, TMUS and Malaysia cards having incorrect MNC length.

Bug: 9892341

Change-Id: I4bc24bd929e3822732e88282d0a64f59623a4c41

5 years agoFix receiving class 2 SMS messages.
Jake Hamby [Wed, 4 Sep 2013 22:24:08 +0000]
Fix receiving class 2 SMS messages.

SIMRecords class was creating the wrong type of SmsMessage object
for class 2 messages, causing a ClassCastException error. Verified
that this change fixes the bug using MD8475A call box.

Bug: 9578184
Change-Id: Ia325c6b1594d625237dc0966c05f56f586bb4baf

5 years agoDon't prefer APNs with no type for initial attach.
Lorenzo Colitti [Wed, 4 Sep 2013 05:07:34 +0000]
Don't prefer APNs with no type for initial attach.

When choosing an APN for initial attach, we currently treat an
APN with no type the same as an APN that explicitly sets a type
of "ia". Such an APN will take priority over the preferred APN,
and will even take priority over APNs with the type explicitly
set to "ia".

This breaks attach on networks where there are multiple
MVNOs with the same MCC/MNC and one or more of them has an APN
with no type.

This seems to be unintentional, because the comments say that
APNs with a type of "ia" are preferred over default APNs. Fix it
by only considering an APN to be an initial attach APN if it
explicitly specifies a type of "ia".

Bug: 10614153
Change-Id: I8ed81ab3b58ae2aab2c76b644b653bb2c08da163

5 years agoam 7cc3a309: (-s ours) am c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE...
Ed Tam [Sat, 31 Aug 2013 01:14:59 +0000]
am 7cc3a309: (-s ours) am c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev

* commit '7cc3a309e6833d854fc41f0e53f32f5a6cbbe08b':
  Telephony: SMS over IMS, DO NOT MERGE

5 years agoam c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev
Ed Tam [Fri, 30 Aug 2013 21:06:48 +0000]
am c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev

* commit 'c55cf0666ebbd4c00fb8092f40dc26e77c56273e':
  Telephony: SMS over IMS, DO NOT MERGE

5 years agoMerge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev
Ed Tam [Fri, 30 Aug 2013 20:50:41 +0000]
Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev

5 years agoMerge "Don't show roaming icon for specific operators" into klp-dev
Robert Greenwalt [Thu, 29 Aug 2013 23:17:18 +0000]
Merge "Don't show roaming icon for specific operators" into klp-dev

5 years agoam 25cebe4f: (-s ours) Merge commit \'43c93591\' into manualmerge
Wink Saville [Thu, 29 Aug 2013 22:15:35 +0000]
am 25cebe4f: (-s ours) Merge commit \'43c93591\' into manualmerge

* commit '25cebe4f95bfee61477d4048219a6644aa0aa03b':
  Add support for a provisioning apn.

5 years agoMerge "Add support for a provisioning apn." into klp-dev
Wink Saville [Thu, 29 Aug 2013 22:10:59 +0000]
Merge "Add support for a provisioning apn." into klp-dev

5 years agoAdd support for a provisioning apn.
Wink Saville [Thu, 29 Aug 2013 21:54:28 +0000]
Add support for a provisioning apn.

When there is a provisioning apn, such as lwaactivate from AT&T it is
not necessary nor desireble to try to make network connections as
they will be no TCP ACK's to SYN messages, except for a limited set
of operator white listed addresses.

This is implemented by adding two commands CMD_IS_PRVISIONING_APN
and CMD_ENABLE_MOBILE_PROVISIONING. These are used by ConnectivityService
CheckMp and to know when we are connected to a provisioning apn and to
turn actually bring up the connection when the user needs to provision.

Also, incorporate the sEnableFailFastRefCounter change from klp to make
a singleton and remove the RuntimeException.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5

5 years agoMerge "UICC : add support empty alpha id for BIP" into klp-dev
Vineeta Srivastava [Thu, 29 Aug 2013 19:22:14 +0000]
Merge "UICC : add support empty alpha id for BIP" into klp-dev

5 years agoDon't show roaming icon for specific operators
Sungmin Choi [Fri, 19 Jul 2013 05:17:13 +0000]
Don't show roaming icon for specific operators

Bug: 9896815
Bug: 10100304
Bug: 10097969
Bug: 10101601
Change-Id: I81b988376dd61a30bc92bb9666510abbcc47788e

5 years agoMerge commit '43c93591' into manualmerge
Wink Saville [Thu, 29 Aug 2013 18:48:50 +0000]
Merge commit '43c93591' into manualmerge

* commit '43c93591':
  Add support for a provisioning apn.

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

Change-Id: If78b4af0c466c6ca6939ef475726ad7a9688386a

5 years agofix trysetupdata when mAutoAttachOnCreation true
sy.yun [Fri, 23 Aug 2013 22:44:18 +0000]
fix trysetupdata when mAutoAttachOnCreation true

mAutoAttachOnCreation=true means that device can attach PS network
automatically. To do this, DCT should setup data call even PS is detached.
but when mAttached is false (PS detached) It blocks to setup data call
regardless of mAutoAttachOnCreation value. So changed to allow setup
data call when mAutoAttachOnCreation is true and mAttached is false.

Bug: 10196651
Change-Id: Ia121eb75cbbe932b94efe4c09eb3cb26f1ca1c52

5 years agoUICC : add support empty alpha id for BIP
duho.ro [Wed, 3 Jul 2013 03:08:17 +0000]
UICC : add support empty alpha id for BIP

"If the alpha identifier is provided by the UICC and is a null data
object (i.e. length = '00' and no value part), this is an indication
that the terminal should not give any information to the user
or ask for user confirmation;"
- 6.4.27.2 OPEN CHANNEL related to packet data service bearer, ETSI TS 102.223

Bug: 9671401
Change-Id: Iece01f3775baf2c6438776f899ed53b1f1fb942f

5 years agoAdd support for a provisioning apn.
Wink Saville [Wed, 28 Aug 2013 23:19:25 +0000]
Add support for a provisioning apn.

When there is a provisioning apn, such as lwaactivate from AT&T it is
not necessary nor desireble to try to make network connections as
they will be no TCP ACK's to SYN messages, except for a limited set
of operator white listed addresses.

This is implemented by adding two commands CMD_IS_PRVISIONING_APN
and CMD_ENABLE_MOBILE_PROVISIONING. These are used by ConnectivityService
CheckMp and to know when we are connected to a provisioning apn and to
turn actually bring up the connection when the user needs to provision.

Also, incorporate the sEnableFailFastRefCounter change from klp to make
a singleton and remove the RuntimeException.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5

5 years agoTelephony: SMS over IMS, DO NOT MERGE
Rika Brooks [Mon, 20 Dec 2010 23:07:34 +0000]
Telephony: SMS over IMS, DO NOT MERGE

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: I87ca9841b4ace931c55e2d379fe6d7589b2dc8a5

5 years agoam a6855ef9: am 876763e9: Make EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:45:53 +0000]
am a6855ef9: am 876763e9: Make EnableFailFastRefCounter a singleton.

* commit 'a6855ef9a8cfcbe9ee01a437d5b35804c29fa5b5':
  Make EnableFailFastRefCounter a singleton.

5 years agoam 876763e9: Make EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:43:33 +0000]
am 876763e9: Make EnableFailFastRefCounter a singleton.

* commit '876763e93ad0fa8006d290cc122f12d5e614efa2':
  Make EnableFailFastRefCounter a singleton.

5 years agoMake EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:34:33 +0000]
Make EnableFailFastRefCounter a singleton.

Since there is only one DCT the mEnableFailFastRefCounter can be a
static/singleton and thus properly refcount the
CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA. There is still one problem
and that is if the PhoneApp crashes the singleton will be reinstantiated
and we'll have the same problem, but the frequency of this is small.
Also, the consequence of this is the DCT will be behaving "normally"
in that it will be attempting to do data-stall recovery although we
might like it not to it is the "normal" behavior.

Bug: 10304904
Change-Id: I4197c4236a402aa247f775e480e747620fd189bd

5 years agoMerge "fix mvno_match_data OutOfBounds Exception" into klp-dev
Robert Greenwalt [Fri, 23 Aug 2013 17:41:48 +0000]
Merge "fix mvno_match_data OutOfBounds Exception" into klp-dev

5 years agoMerge "Properly notify of precise call state change after connection hangup." into...
Wink Saville [Fri, 23 Aug 2013 03:06:38 +0000]
Merge "Properly notify of precise call state change after connection hangup." into klp-dev

5 years agoProperly notify of precise call state change after connection hangup.
Danny Baumann [Fri, 2 Aug 2013 07:56:31 +0000]
Properly notify of precise call state change after connection hangup.

When disconnecting connections via Connection.hangup(), previously no
precise call state notification was sent out.

Change-Id: I4439d7d8ed47e72da9d061b885ec9a0e6e1b784d

5 years agofix mvno_match_data OutOfBounds Exception
Robert Greenwalt [Mon, 19 Aug 2013 17:08:42 +0000]
fix mvno_match_data OutOfBounds Exception

When the length of mvno_match_data is greater than GID from IccRecord,
it will generate StringIndexOutOfBoundsException.
Threrefore, codes are changed to use startsWith() instead of subString().

Bug: 10171336
Change-Id: I827b1d3b861d74e736875bbec1ba5bd28c6c3941

5 years agoChange set position of mAttached
Sungmin Choi [Tue, 13 Aug 2013 23:56:36 +0000]
Change set position of mAttached

When re-attach network after detaching, mAttached.get() is always false.
Although network is attached in modem side and state is connected,
phone cannot know whether connection state or not.
Because nobody notifies to phone.
So before notifyDataConnection(Phone.REASON_DATA_ATTACHED), set mAttached true

Bug: 10070685
Change-Id: Id1356e1c7e188bd484d892dc4255c3aefc81a032

5 years agoMerge "Make EnableFailFastRefCounter a singleton." into klp-dev
Wink Saville [Wed, 14 Aug 2013 18:19:27 +0000]
Merge "Make EnableFailFastRefCounter a singleton." into klp-dev

5 years agoMake EnableFailFastRefCounter a singleton.
Wink Saville [Wed, 14 Aug 2013 04:22:51 +0000]
Make EnableFailFastRefCounter a singleton.

Since there is only one DCT the mEnableFailFastRefCounter can be a
static/singleton and thus properly refcount the
CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA. There is still one problem
and that is if the PhoneApp crashes the singleton will be reinstantiated
and we'll have the same problem, but the frequency of this is small.
Also, the consequence of this is the DCT will be behaving "normally"
in that it will be attempting to do data-stall recovery although we
might like it not to it is the "normal" behavior.

Bug: 10304904
Change-Id: I38ff37445788ec952ca26be45b0374bc0a7ae34d

5 years agoam af532402: (-s ours) Reconcile with jb-mr2-zeroday-deb-release - do not merge
The Android Open Source Project [Tue, 13 Aug 2013 17:11:57 +0000]
am af532402: (-s ours) Reconcile with jb-mr2-zeroday-deb-release - do not merge

* commit 'af532402a56c845c39bcfd77a3dc4312e1b62ab0':
  Add mEnableFailFastRefCounter.
  Restart, cleanup or retry inactve connections.
  DataConnection should not retry permanent errors.

5 years agoReconcile with jb-mr2-zeroday-deb-release - do not merge
The Android Open Source Project [Tue, 13 Aug 2013 17:10:06 +0000]
Reconcile with jb-mr2-zeroday-deb-release - do not merge

Change-Id: I3ec5004207ab6c9ff30793e840a5010c4c4ba015

5 years agoam d1eb383d: am a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev
Wink Saville [Fri, 9 Aug 2013 00:10:38 +0000]
am d1eb383d: am a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev

* commit 'd1eb383d9bd58140607f212e46db64559f408780':
  Add mEnableFailFastRefCounter.

5 years agoam bc42667e: am 97978662: Restart, cleanup or retry inactve connections.
Wink Saville [Fri, 9 Aug 2013 00:10:37 +0000]
am bc42667e: am 97978662: Restart, cleanup or retry inactve connections.

* commit 'bc42667e465b7dfacfe4592390b14c5518a05e41':
  Restart, cleanup or retry inactve connections.

5 years agoam 585e9609: am 2ae42257: DataConnection should not retry permanent errors.
Wink Saville [Fri, 9 Aug 2013 00:10:37 +0000]
am 585e9609: am 2ae42257: DataConnection should not retry permanent errors.

* commit '585e96097525e593c2ae7edb9fcf62526ab958ae':
  DataConnection should not retry permanent errors.

5 years agoAdd mEnableFailFastRefCounter.
Wink Saville [Wed, 7 Aug 2013 17:47:21 +0000]
Add mEnableFailFastRefCounter.

Use a reference counter to control enabling fail fast
as there are now two entities which control failing fast:
ConnectifityService.checkProvisioningUrl and
MobileDataStateTracker.captivePortalCheckComplete.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e

5 years agoRestart, cleanup or retry inactve connections.
Wink Saville [Tue, 6 Aug 2013 17:50:48 +0000]
Restart, cleanup or retry inactve connections.

Instead of retrying all inactive connections, restart radio on very bad
errors, clean those that are permanent failures and retry
the others.

Bug: 10131736
Change-Id: I2527b18d6cda52c55fb94be58fbb1a7a86818ef9

5 years agoDataConnection should not retry permanent errors.
Wink Saville [Tue, 21 May 2013 21:18:11 +0000]
DataConnection should not retry permanent errors.

Update DcFailCause with the "no retry" info from ril.h

Bug: 9040015
Change-Id: Ib94af9996c79800322251a45349b117e1f913269

5 years agoam a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev
Wink Saville [Thu, 8 Aug 2013 22:46:57 +0000]
am a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev

* commit 'a76fa59574734cd1528dff2937231b78ea96e8f3':
  Add mEnableFailFastRefCounter.

5 years agoam 97978662: Restart, cleanup or retry inactve connections.
Wink Saville [Thu, 8 Aug 2013 22:46:57 +0000]
am 97978662: Restart, cleanup or retry inactve connections.

* commit '979786625e7ceacf4a545a25704ef8a15338a854':
  Restart, cleanup or retry inactve connections.

5 years agoam 2ae42257: DataConnection should not retry permanent errors.
Wink Saville [Thu, 8 Aug 2013 22:46:57 +0000]
am 2ae42257: DataConnection should not retry permanent errors.

* commit '2ae42257ebafdbb0470cedeab41c2f1b418b285c':
  DataConnection should not retry permanent errors.

5 years agoMerge "Add mEnableFailFastRefCounter." into jb-mr2-dev
Wink Saville [Thu, 8 Aug 2013 22:02:38 +0000]
Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev

5 years agoam 7982f3e5: Merge "Initialize RIL with the correct CDMA subscription mode setting"
Wink Saville [Thu, 8 Aug 2013 20:24:43 +0000]
am 7982f3e5: Merge "Initialize RIL with the correct CDMA subscription mode setting"

* commit '7982f3e57aaa53699ff3a00071280a88a5ac0c82':
  Initialize RIL with the correct CDMA subscription mode setting

5 years agoMerge "Change the SMS event logging to "packages" aggregation, which requires the...
William Luh [Wed, 7 Aug 2013 18:58:22 +0000]
Merge "Change the SMS event logging to "packages" aggregation, which requires the app uid."

5 years agoAdd mEnableFailFastRefCounter.
Wink Saville [Wed, 7 Aug 2013 17:47:21 +0000]
Add mEnableFailFastRefCounter.

Use a reference counter to control enabling fail fast
as there are now two entities which control failing fast:
ConnectifityService.checkProvisioningUrl and
MobileDataStateTracker.captivePortalCheckComplete.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e

5 years agoUnregistering a null receiver is now fatal.
Wink Saville [Wed, 7 Aug 2013 00:48:25 +0000]
Unregistering a null receiver is now fatal.

This causes user builds to break, so only unregister
if we are actually registered.

Bug: 9657468
Change-Id: Ie801e6db37962e9de7559c8451806de1972cf430

5 years agoRestart, cleanup or retry inactve connections.
Wink Saville [Tue, 6 Aug 2013 17:50:48 +0000]
Restart, cleanup or retry inactve connections.

Instead of retrying all inactive connections, restart radio on very bad
errors, clean those that are permanent failures and retry
the others.

Bug: 10131736
Change-Id: I2527b18d6cda52c55fb94be58fbb1a7a86818ef9

5 years agoMerge "Initialize RIL with the correct CDMA subscription mode setting"
Wink Saville [Tue, 6 Aug 2013 17:35:09 +0000]
Merge "Initialize RIL with the correct CDMA subscription mode setting"

5 years agoWhen disposing only unbind if actually bound.
Wink Saville [Tue, 6 Aug 2013 13:49:51 +0000]
When disposing only unbind if actually bound.

Change-Id: Icef7f050088d648fdf60f9a1ed690af46deb36e0

5 years agoInitialize RIL with the correct CDMA subscription mode setting
Naveen Kalla [Wed, 29 Aug 2012 16:40:25 +0000]
Initialize RIL with the correct CDMA subscription mode setting

Users choice of CDMA Subscription Source is stored in CDMA_SUBSCRIPTION_MODE
setting in database.
If telephony restarts after a crash, use CDMA_SUBSCRIPTION_MODE instead
of PREFERRED_CDMA_SUBSCRIPTION in PhoneFactory to prevent
mismatch with the value in the settings database chosen by the user.

Also, remove the Setting PREFERRED_CDMA_SUBSCRIPTION from the database.
With this change the special treatment for LTE on CDMA will not be needed.
The correct value can be set in the database for CDMA_SUBSCRIPTION_MODE
and that will be taken on power-up by this code.

Change-Id: I11fff596a5fe721c64f192c889672326517dc43d

5 years agoMerge "Initialize RIL with the correct CDMA subscription mode setting"
Wink Saville [Tue, 6 Aug 2013 04:17:19 +0000]
Merge "Initialize RIL with the correct CDMA subscription mode setting"

5 years agoFix build.
Ying Wang [Tue, 6 Aug 2013 03:20:17 +0000]
Fix build.

Reference:
https://android-review.googlesource.com/#/c/61723/5

Change-Id: I327733be1c2ab3cda933b9f0c7c0a63332223ae8

5 years agoMerge "Stop using implicit intents with bindService()."
Dianne Hackborn [Tue, 6 Aug 2013 00:16:29 +0000]
Merge "Stop using implicit intents with bindService()."

5 years agoChange the SMS event logging to "packages" aggregation, which requires the app uid.
William Luh [Tue, 6 Aug 2013 00:09:33 +0000]
Change the SMS event logging to "packages" aggregation, which requires the app uid.

Change-Id: Ic3927b5764909b4ec8dc64fc41118f9057814656

5 years agoam f6dced1a: Merge "Telephony: Fix issue in handling null alpha identifier"
Wink Saville [Mon, 5 Aug 2013 15:59:16 +0000]
am f6dced1a: Merge "Telephony: Fix issue in handling null alpha identifier"

* commit 'f6dced1ac15dc219bb87658a242d74abb9fb5ae2':
  Telephony: Fix issue in handling null alpha identifier

5 years agoMerge "Telephony: Fix issue in handling null alpha identifier"
Wink Saville [Mon, 5 Aug 2013 15:50:24 +0000]
Merge "Telephony: Fix issue in handling null alpha identifier"

5 years agoStop using implicit intents with bindService().
Dianne Hackborn [Sun, 4 Aug 2013 23:53:54 +0000]
Stop using implicit intents with bindService().

The behavior of this case is not defined.

Change-Id: I6e858190d7b0c3b8976a1657de81a682cd989eee

5 years agoDataConnection should not retry permanent errors.
Wink Saville [Tue, 21 May 2013 21:18:11 +0000]
DataConnection should not retry permanent errors.

Update DcFailCause with the "no retry" info from ril.h

Bug: 9040015
Change-Id: Ib94af9996c79800322251a45349b117e1f913269

5 years agoam a1915f28: Merge "If telephony wants ASCII casing, it needs to ask for it."
Elliott Hughes [Fri, 2 Aug 2013 19:41:40 +0000]
am a1915f28: Merge "If telephony wants ASCII casing, it needs to ask for it."

* commit 'a1915f289fbada7f7c716eed0078098bbb40adc1':
  If telephony wants ASCII casing, it needs to ask for it.

5 years agoam 4ce0e815: Merge "Create ApnSetting if none are found in database."
Wink Saville [Fri, 2 Aug 2013 19:41:39 +0000]
am 4ce0e815: Merge "Create ApnSetting if none are found in database."

* commit '4ce0e815f8b0a796685fbc931cd6760c27172a0f':
  Create ApnSetting if none are found in database.

5 years agoMerge "If telephony wants ASCII casing, it needs to ask for it."
Elliott Hughes [Fri, 2 Aug 2013 18:55:02 +0000]
Merge "If telephony wants ASCII casing, it needs to ask for it."

5 years agoMerge "Create ApnSetting if none are found in database."
Wink Saville [Fri, 2 Aug 2013 18:40:30 +0000]
Merge "Create ApnSetting if none are found in database."

5 years agoIf telephony wants ASCII casing, it needs to ask for it.
Elliott Hughes [Fri, 2 Aug 2013 17:40:09 +0000]
If telephony wants ASCII casing, it needs to ask for it.

http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: I5c2721f36861694928101c771ec6699424cf9aa3

5 years agoCreate ApnSetting if none are found in database.
Alex Yakavenka [Tue, 18 Jun 2013 16:49:13 +0000]
Create ApnSetting if none are found in database.

Bug: 9315957
Change-Id: I0cf0debb703f6a4cad35300315922a5566871f85