]> nv-tegra.nvidia Code Review - android/platform/frameworks/opt/telephony.git/log
android/platform/frameworks/opt/telephony.git
10 years agoFix voicemail notification for Sprint.
Jake Hamby [Thu, 12 Sep 2013 21:55:34 +0000 (14:55 -0700)]
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

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

10 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 (04:49 +0000)]
Merge "CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R" into klp-dev

10 years agoCatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R
Shriram Ganesh [Tue, 21 Aug 2012 02:30:23 +0000 (19:30 -0700)]
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

10 years agoFix receiving multi-part CDMA WAP messages.
Jake Hamby [Tue, 10 Sep 2013 22:02:23 +0000 (15:02 -0700)]
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

10 years agosms: Add exception code instead of low memory status
Sungmin Choi [Wed, 4 Sep 2013 06:32:36 +0000 (23:32 -0700)]
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>
10 years agoUICC: get ICCID from SIM for CDMAPhone state
duho.ro [Fri, 6 Sep 2013 17:07:04 +0000 (02:07 +0900)]
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

10 years agotelephony: Fix roaming icon setting
Sungmin Choi [Thu, 5 Sep 2013 20:14:29 +0000 (13:14 -0700)]
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

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

10 years agoMerge commit 'ebca826a' into manualmerge
Wink Saville [Thu, 5 Sep 2013 03:21:09 +0000 (20:21 -0700)]
Merge commit 'ebca826a' into manualmerge

* commit 'ebca826a':
  Add provisioning apn timeout.

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

Change-Id: Ic89a22167b91e05068160a6ef0a194215913bfe7

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

* commit 'e9063f6973039d66e12d0d930af03906d377969e':
  Add provisioning apn timeout.

10 years agoAdd provisioning apn timeout.
Wink Saville [Wed, 4 Sep 2013 23:00:44 +0000 (16:00 -0700)]
Add provisioning apn timeout.

Bug: 10609993
Change-Id: I2dd4fe23fa2b22ef8f4849c161c630d1a85cdb4b

10 years agoUICC : Add MCC MNC codes having 3 digits MNC
duho.ro [Tue, 3 Sep 2013 04:54:34 +0000 (13:54 +0900)]
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

10 years agoFix receiving class 2 SMS messages.
Jake Hamby [Wed, 4 Sep 2013 22:24:08 +0000 (15:24 -0700)]
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

10 years agoDon't prefer APNs with no type for initial attach.
Lorenzo Colitti [Wed, 4 Sep 2013 05:07:34 +0000 (14:07 +0900)]
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

10 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 (18:14 -0700)]
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

10 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 (14:06 -0700)]
am c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev

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

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

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

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

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

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

10 years agoAdd support for a provisioning apn.
Wink Saville [Thu, 29 Aug 2013 21:54:28 +0000 (14:54 -0700)]
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

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

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

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

10 years agoMerge commit '43c93591' into manualmerge
Wink Saville [Thu, 29 Aug 2013 18:48:50 +0000 (11:48 -0700)]
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

10 years agofix trysetupdata when mAutoAttachOnCreation true
sy.yun [Fri, 23 Aug 2013 22:44:18 +0000 (07:44 +0900)]
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

10 years agoUICC : add support empty alpha id for BIP
duho.ro [Wed, 3 Jul 2013 03:08:17 +0000 (12:08 +0900)]
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

10 years agoAdd support for a provisioning apn.
Wink Saville [Wed, 28 Aug 2013 23:19:25 +0000 (16:19 -0700)]
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

10 years agoTelephony: SMS over IMS, DO NOT MERGE
Rika Brooks [Mon, 20 Dec 2010 23:07:34 +0000 (15:07 -0800)]
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

10 years agoam a6855ef9: am 876763e9: Make EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:45:53 +0000 (13:45 -0700)]
am a6855ef9: am 876763e9: Make EnableFailFastRefCounter a singleton.

* commit 'a6855ef9a8cfcbe9ee01a437d5b35804c29fa5b5':
  Make EnableFailFastRefCounter a singleton.

10 years agoam 876763e9: Make EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:43:33 +0000 (13:43 -0700)]
am 876763e9: Make EnableFailFastRefCounter a singleton.

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

10 years agoMake EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:34:33 +0000 (13:34 -0700)]
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

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

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

10 years agoProperly notify of precise call state change after connection hangup.
Danny Baumann [Fri, 2 Aug 2013 07:56:31 +0000 (09:56 +0200)]
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

10 years agofix mvno_match_data OutOfBounds Exception
Robert Greenwalt [Mon, 19 Aug 2013 17:08:42 +0000 (10:08 -0700)]
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

10 years agoChange set position of mAttached
Sungmin Choi [Tue, 13 Aug 2013 23:56:36 +0000 (16:56 -0700)]
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

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

10 years agoMake EnableFailFastRefCounter a singleton.
Wink Saville [Wed, 14 Aug 2013 04:22:51 +0000 (21:22 -0700)]
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

10 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 (10:11 -0700)]
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.

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

Change-Id: I3ec5004207ab6c9ff30793e840a5010c4c4ba015

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

* commit 'd1eb383d9bd58140607f212e46db64559f408780':
  Add mEnableFailFastRefCounter.

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

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

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

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

10 years agoAdd mEnableFailFastRefCounter.
Wink Saville [Wed, 7 Aug 2013 17:47:21 +0000 (10:47 -0700)]
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

10 years agoRestart, cleanup or retry inactve connections.
Wink Saville [Tue, 6 Aug 2013 17:50:48 +0000 (10:50 -0700)]
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

10 years agoDataConnection should not retry permanent errors.
Wink Saville [Tue, 21 May 2013 21:18:11 +0000 (14:18 -0700)]
DataConnection should not retry permanent errors.

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

Bug: 9040015
Change-Id: Ib94af9996c79800322251a45349b117e1f913269

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

* commit 'a76fa59574734cd1528dff2937231b78ea96e8f3':
  Add mEnableFailFastRefCounter.

10 years agoam 97978662: Restart, cleanup or retry inactve connections.
Wink Saville [Thu, 8 Aug 2013 22:46:57 +0000 (15:46 -0700)]
am 97978662: Restart, cleanup or retry inactve connections.

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

10 years agoam 2ae42257: DataConnection should not retry permanent errors.
Wink Saville [Thu, 8 Aug 2013 22:46:57 +0000 (15:46 -0700)]
am 2ae42257: DataConnection should not retry permanent errors.

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

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

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

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

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

10 years agoAdd mEnableFailFastRefCounter.
Wink Saville [Wed, 7 Aug 2013 17:47:21 +0000 (10:47 -0700)]
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

10 years agoUnregistering a null receiver is now fatal.
Wink Saville [Wed, 7 Aug 2013 00:48:25 +0000 (17:48 -0700)]
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

10 years agoRestart, cleanup or retry inactve connections.
Wink Saville [Tue, 6 Aug 2013 17:50:48 +0000 (10:50 -0700)]
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

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

10 years agoWhen disposing only unbind if actually bound.
Wink Saville [Tue, 6 Aug 2013 13:49:51 +0000 (06:49 -0700)]
When disposing only unbind if actually bound.

Change-Id: Icef7f050088d648fdf60f9a1ed690af46deb36e0

10 years agoInitialize RIL with the correct CDMA subscription mode setting
Naveen Kalla [Wed, 29 Aug 2012 16:40:25 +0000 (09:40 -0700)]
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

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

10 years agoFix build.
Ying Wang [Tue, 6 Aug 2013 03:20:17 +0000 (20:20 -0700)]
Fix build.

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

Change-Id: I327733be1c2ab3cda933b9f0c7c0a63332223ae8

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

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

Change-Id: Ic3927b5764909b4ec8dc64fc41118f9057814656

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

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

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

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

The behavior of this case is not defined.

Change-Id: I6e858190d7b0c3b8976a1657de81a682cd989eee

10 years agoDataConnection should not retry permanent errors.
Wink Saville [Tue, 21 May 2013 21:18:11 +0000 (14:18 -0700)]
DataConnection should not retry permanent errors.

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

Bug: 9040015
Change-Id: Ib94af9996c79800322251a45349b117e1f913269

10 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 (12:41 -0700)]
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.

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

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

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

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

10 years agoIf telephony wants ASCII casing, it needs to ask for it.
Elliott Hughes [Fri, 2 Aug 2013 17:40:09 +0000 (10:40 -0700)]
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

10 years agoCreate ApnSetting if none are found in database.
Alex Yakavenka [Tue, 18 Jun 2013 16:49:13 +0000 (09:49 -0700)]
Create ApnSetting if none are found in database.

Bug: 9315957
Change-Id: I0cf0debb703f6a4cad35300315922a5566871f85

10 years agoInitialize RIL with the correct CDMA subscription mode setting
Naveen Kalla [Wed, 29 Aug 2012 16:40:25 +0000 (09:40 -0700)]
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

10 years agoam 06f093f7: Merge "Mobile network type is not updated when the network mode is switc...
Robert Greenwalt [Wed, 31 Jul 2013 18:22:13 +0000 (11:22 -0700)]
am 06f093f7: Merge "Mobile network type is not updated when the network mode is switched."

* commit '06f093f728861837c54a96666ece5dc1853787c1':
  Mobile network type is not updated when the network mode is switched.

10 years agoMerge "Mobile network type is not updated when the network mode is switched."
Robert Greenwalt [Wed, 31 Jul 2013 18:14:46 +0000 (18:14 +0000)]
Merge "Mobile network type is not updated when the network mode is switched."

10 years agoMobile network type is not updated when the network mode is switched.
Kazuya Ohshiro [Mon, 18 Mar 2013 04:29:12 +0000 (13:29 +0900)]
Mobile network type is not updated when the network mode is switched.

Because ServiceStateTracker doesn't handle the change of ServiceState
after switching of Telephony FW, SystemProperty used for displaying
the mobile network type does not become to Unknown. To fix this issue,
when the network mode is switched, the SystemProperty should be
initialized to Unknown in the constructor of ServiceStateTracker.

Change-Id: I903ba855b9fe22530db8494a9d2615959970c5a4

10 years agoam 793fb83c: Merge "Add support for MNC=00"
Wink Saville [Tue, 30 Jul 2013 19:31:40 +0000 (12:31 -0700)]
am 793fb83c: Merge "Add support for MNC=00"

* commit '793fb83c41d26c84f4430885aafc7a8daeffffeb':
  Add support for MNC=00

10 years agoMerge "Add support for MNC=00"
Wink Saville [Tue, 30 Jul 2013 19:20:20 +0000 (19:20 +0000)]
Merge "Add support for MNC=00"

10 years agoAdd support for an initial APN
Wink Saville [Sat, 27 Jul 2013 20:31:47 +0000 (13:31 -0700)]
Add support for an initial APN

Add PhoneConstants.APN_TYPE_IA, DctConstants.APN_IA_ID and enhance
setInitialAttachApn to use the new Initial Attach apn.

Bug: 8733613
Change-Id: Ia627ac0cf5715660b6d02bb13a83d46ec1727b87

10 years agoAdd support for MNC=00
Mattias Petersson [Fri, 7 Oct 2011 07:33:52 +0000 (09:33 +0200)]
Add support for MNC=00

This adds support for operators with MNC (Mobile Network Code) zero
to add customized resources. For example, it makes it possible to
add a folder called "/res/values-mnc00/" in an application. This will
cause resources in that folder to be used when MNC is zero.
(There is a total of 14 countries that have an operator with MNC
zero.)

Without this fix, the resource framework gets confused, because MNC 0
is normally used when the MNC is undefined (not set).

Bug: 7170488
Change-Id: Icfd39fd0c739216e89446252ea0e7ceba6f002c6

10 years agoMerge "Add prefix to SMS event tag"
Jake Hamby [Fri, 26 Jul 2013 18:20:55 +0000 (18:20 +0000)]
Merge "Add prefix to SMS event tag"

10 years agoHipri should not be enabled when we initialize.
Wink Saville [Tue, 23 Jul 2013 18:05:35 +0000 (11:05 -0700)]
Hipri should not be enabled when we initialize.

Without this fix hipri starts at boot mobile data won't be shutdown
as refCount won't go to zero.

Bug: 9475300
Change-Id: If9587fa5360d777328fda59bbea61a2cbd9fe804

10 years agoAdd prefix to SMS event tag
William Luh [Tue, 23 Jul 2013 17:40:31 +0000 (10:40 -0700)]
Add prefix to SMS event tag

Legal requires user consent for logging these in production (non-dogfood).
We will be filtering based on the specific tag prefix of exp_det_.

Change-Id: Id3d869c1b31716cee3e6ae98d3b840ef7f948e42

10 years agoam b8127144: Merge commit \'3f4415e3\' into fix-merge-conflict
Wink Saville [Fri, 19 Jul 2013 18:15:16 +0000 (11:15 -0700)]
am b8127144: Merge commit \'3f4415e3\' into fix-merge-conflict

* commit 'b8127144de8d55c590ed537bdcb7a1afe5666b28':
  telephony: Fix typo

10 years agoMerge commit '3f4415e3' into fix-merge-conflict
Wink Saville [Fri, 19 Jul 2013 17:40:20 +0000 (10:40 -0700)]
Merge commit '3f4415e3' into fix-merge-conflict

* commit '3f4415e3':
  telephony: Fix typo

10 years agoMerge "telephony: Fix typo"
Wink Saville [Fri, 19 Jul 2013 16:53:07 +0000 (16:53 +0000)]
Merge "telephony: Fix typo"

10 years agoam 0c432e05: am 9c430a4d: Only show "Emergency calls only" if a GSM device is voice...
Wink Saville [Tue, 9 Jul 2013 00:07:21 +0000 (17:07 -0700)]
am 0c432e05: am 9c430a4d: Only show "Emergency calls only" if a GSM device is voice capable.

* commit '0c432e0512f69df06282741af23839db54e5d585':
  Only show "Emergency calls only" if a GSM device is voice capable.

10 years agoam 9c430a4d: Only show "Emergency calls only" if a GSM device is voice capable.
Wink Saville [Tue, 9 Jul 2013 00:06:11 +0000 (17:06 -0700)]
am 9c430a4d: Only show "Emergency calls only" if a GSM device is voice capable.

* commit '9c430a4d72c8c962caefb916e82a4c82eca7068c':
  Only show "Emergency calls only" if a GSM device is voice capable.

10 years agoOnly show "Emergency calls only" if a GSM device is voice capable. rel-roth-r2-partner rel-roth-r3-partner rel-tegranote-r3-partner daily-2013.10.28.1_rel-roth-r2-partner daily-2013.10.28.2_rel-roth-r2-partner daily-2013.10.29.0_rel-roth-r2-partner daily-2013.11.06.0_rel-roth-r2-partner daily-2013.12.03.0_rel-roth-r3-partner daily-2013.12.26.0_rel-roth-r3-partner daily-2014.01.08.0_rel-tegranote-r3-partner daily-2014.02.03.0_rel-roth-r3-partner
Wink Saville [Mon, 8 Jul 2013 23:25:40 +0000 (16:25 -0700)]
Only show "Emergency calls only" if a GSM device is voice capable.

This fix uses the config_voice_capable compile time switch to be
sure GsmServiceStateTracker.mEmergencyOnly is false if the device
isn't voice capable. Thus GsmServiceStateTracker.updateSpnDisplay
will not send the SPN_STRINGS_UPDATED_ACTION intent with
emergency_calls_only as the PLMN. Instead, it will aways be the
string defined by the lockscreen_carrier_default, typically
"No service".

Bug: 9422921
Change-Id: I74e89c4a29d0d8e3d5cc1726adedb0c2634cf257

10 years agoam 299f0785: am 4b361fe2: am d254ff60: Merge "Telephony: remove the useless variable."
Jean-Baptiste Queru [Mon, 8 Jul 2013 18:00:57 +0000 (11:00 -0700)]
am 299f0785: am 4b361fe2: am d254ff60: Merge "Telephony: remove the useless variable."

* commit '299f07852601bb735296646c9587bf72169d1476':
  Telephony: remove the useless variable.

10 years agoam 4b361fe2: am d254ff60: Merge "Telephony: remove the useless variable."
Jean-Baptiste Queru [Mon, 8 Jul 2013 17:58:25 +0000 (10:58 -0700)]
am 4b361fe2: am d254ff60: Merge "Telephony: remove the useless variable."

* commit '4b361fe2f0597aae6a50012bc4fe048acd41ebbf':
  Telephony: remove the useless variable.

10 years agoam d254ff60: Merge "Telephony: remove the useless variable."
Jean-Baptiste Queru [Mon, 8 Jul 2013 17:55:20 +0000 (10:55 -0700)]
am d254ff60: Merge "Telephony: remove the useless variable."

* commit 'd254ff6031ad039e93964378d604a4950d828170':
  Telephony: remove the useless variable.

10 years agoMerge "Telephony: remove the useless variable."
Jean-Baptiste Queru [Mon, 8 Jul 2013 17:52:20 +0000 (17:52 +0000)]
Merge "Telephony: remove the useless variable."

10 years agoam c8865f1d: am 0c5a2697: Allow GSMPhone#getCellLocation to report LTE location infor...
Wink Saville [Thu, 4 Jul 2013 02:25:44 +0000 (19:25 -0700)]
am c8865f1d: am 0c5a2697: Allow GSMPhone#getCellLocation to report LTE location information

* commit 'c8865f1dfc810e20908f45d3eef431a81544e9f6':
  Allow GSMPhone#getCellLocation to report LTE location information

10 years agoam 0c5a2697: Allow GSMPhone#getCellLocation to report LTE location information
Wink Saville [Thu, 4 Jul 2013 02:24:39 +0000 (19:24 -0700)]
am 0c5a2697: Allow GSMPhone#getCellLocation to report LTE location information

* commit '0c5a2697697b49228bd2e23dc8d8217877a0fd7b':
  Allow GSMPhone#getCellLocation to report LTE location information

10 years agoAllow GSMPhone#getCellLocation to report LTE location information
Wink Saville [Thu, 4 Jul 2013 00:11:35 +0000 (17:11 -0700)]
Allow GSMPhone#getCellLocation to report LTE location information

Bug: 9228974
Change-Id: I7e9b190aa67968f1f2b2b567614c35c5dd5d78fa

10 years agoMerge commit '1f95c96e' into fix-merge-conflict
Wink Saville [Mon, 1 Jul 2013 23:58:29 +0000 (16:58 -0700)]
Merge commit '1f95c96e' into fix-merge-conflict

* commit '1f95c96e':
  Add CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA to DcTracker.

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

Change-Id: I7c7234d1b13647a0534a77937ea51d4051043a55

10 years agoam 28b99e3f: Merge "Add CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA to DcTracker." into...
Wink Saville [Mon, 1 Jul 2013 22:44:58 +0000 (15:44 -0700)]
am 28b99e3f: Merge "Add CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA to DcTracker." into jb-mr2-dev

* commit '28b99e3f85fa5357d536d0ae80fb70a3cd59c09a':
  Add CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA to DcTracker.

10 years agoMerge "Add CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA to DcTracker." into jb-mr2-dev
Wink Saville [Mon, 1 Jul 2013 22:37:02 +0000 (22:37 +0000)]
Merge "Add CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA to DcTracker." into jb-mr2-dev