395 Commits

Author SHA1 Message Date
Ling Li
8125864adc Refix the MT call screen stuck issue.
The issue this change fixes can be reproduced by following steps:
1. Originate and connect a call to remote party #1 that is not in Contacts.
2. Receive a call from the remote party #2 that is not in Contacts, the
call waiting tone is sounded and the call waiting screen is displayed.
3. Press menu key and ignore the call, and the call waiting screen is
dismissed and the remote party #2 is forwarded to voice mail.
When we ignore the incoming call, Phone gets stuck with incoming call
screen.

The fix is to update the phone state before notifying the state change
in hangup() function.
2009-07-27 17:05:36 -07:00
Jinghui Guo
e30d4bf531 Fix the issue of new call failing in 3-way call scenario.
The issue this change fixes can be reproduced by:
1. place an MO call;
2. place the second MO call;
3. hangup from the other end for one of the calls so there is only
   one call connected;
4. try to place another call.
This issue is that the new call would fail.
2009-07-27 14:03:27 -07:00
Anna Markova
3bd5b0154f Fix for unknown number issue in CDMA call waiting
During a call, if 2nd call is received, the 2nd remote party number
should be properly displayed in case numberPresentation is set to
ALLOWED
2009-07-27 10:55:57 -07:00
Tammo Spalink
5e5b8c45db Fix swapped gsm/cdma function dispatch, and 7bit text fragmentation. 2009-07-27 16:20:31 +08:00
Tammo Spalink
1424fe0059 added non-numeric cdma sms address support
addresses bug http://buganizer/issue?id=1992198
2009-07-27 14:59:10 +08:00
Satish.Kulkarni
eafe72a0db Fix for missing call drop notice in CDMA mode
In case the cdma modem indicates unspecified error as a reason for a
dropped call, then the cause was wrongly being translated to NORMAL call in
DisconnectCause. This has been fixed to report ERROR_UNSPECIFIED as
DisconnectCause in Connection.java.
2009-07-25 21:28:20 -07:00
Wink Saville
c6d6b687af Add method in Phone interface to check whether data is enabled.
This adds isDataConnectivityEnabled to allow test methods to query the
data connectivity state.
2009-07-24 13:23:55 -07:00
johnwang
97b270abd5 Fix bug# 1997056
The SID and NID in CDMA_SUBSCRIPTION are in hexadecimal format. So change the parseInt() in CdmaServiceStateTracker and add comments in CommandsInterface.

	modified:   java/com/android/internal/telephony/CommandsInterface.java
	modified:   java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
	modified:   java/com/android/internal/telephony/RIL.java

	modified:   java/com/android/internal/telephony/CommandsInterface.java
	modified:   java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
	modified:   java/com/android/internal/telephony/RIL.java
2009-07-23 16:25:59 -07:00
Jinghui Guo
5e9760c16b Fix remote caller ID unknow issue in 3 way call 2009-07-21 16:44:59 -07:00
Android (Google) Code Review
3720cf2de9 Merge change 7709
* changes:
  Fix MT Call screen stuck issue.
2009-07-17 10:29:54 -07:00
Cheng Yang
84d5585b99 Fix MT Call screen stuck issue.
The issue this change fixes can be reproduced by following steps:
    1. Originate and connect a call to remote party #1 that is not in Contacts.
    2. Receive a call from the remote party #2 that is not in Contacts, the
       call waiting tone is sounded and the call waiting screen is displayed.
    3. Press menu key and ignore the call, and the call waiting screen is
       dismissed and the remote party #2 is forwarded to voice mail.
    When we ignore the incoming call, Phone gets stuck with incoming call
    screen.

    The fix is:
    1. Update phone state promotly based on the call waiting state.
    2. Remove new call handling in handlePollCalls() function because in CDMA,
       the call drop should be determnited by the number of calls in the call
       list.
2009-07-17 10:27:38 -07:00
Wink Saville
abccd7eaa5 DO NOT MERGE. Implement IMSI function for CDMA phones
Includes support to get the MCC and MNC from system properties, since
they are known to be unreliable from the network.

This is known to conflict with master and will be
added by hand so as not to break the build.
2009-07-16 16:07:13 -07:00
Wink Saville
142eefc67b Implement IMSI function for CDMA phones
Includes support to get the MCC and MNC from system properties, since
they are known to be unreliable from the network.
2009-07-16 15:48:34 -07:00
Android (Google) Code Review
60b707075b Merge change 7526
* changes:
  Implement the carrier specified OTASP numbers
2009-07-16 10:12:13 -07:00
jsh
90b34b3773 resolved conflicts for merge of 8e0fb366 to master 2009-07-15 18:42:47 -07:00
jsh
ae49180f28 Minor tweak to CDMA_SUBSCRIPTION.
H_SID and H_NID are now comma separated lists, so update CdmaServiceTracker
accordingly. Note: For now, we still only store away the first of each.

Also remove H_SID and H_NID fetching from RuimRecords.java, since it is unused
(and unlikely to be used) in that class.
2009-07-15 16:41:11 -07:00
Ling Li
e4a84af11d Implement the carrier specified OTASP numbers
It defines a new system property for carrier defined OTASP number.
It also includes the change to check the dial string against the OTASP
number.
2009-07-14 22:25:30 -07:00
Jaikumar Ganesh
1c42769339 Rename registerPhoneStateChange to registerPreciseCallStateChange
As registerPhoneStateChange was actually notifying CallStateChange,
rename appropriately.
2009-07-14 21:29:41 -07:00
Android (Google) Code Review
2a71ee7129 Merge change 7007
* changes:
  Update name getCdmaMIN to getCdmaMin
2009-07-13 16:24:55 -07:00
Android (Google) Code Review
35eea54a40 Merge change 6935 into donut
* changes:
  DO NOT MERGE: backporting from master:
2009-07-13 15:44:57 -07:00
Cheng Yang
019581bf60 Update name getCdmaMIN to getCdmaMin
1. update name getCdmaMIN to getCdmaMin
2. update DEFAULT_ECM_EXIT_TIMER_VALUE from 30000 to 300000
2009-07-13 15:40:06 -07:00
Android (Google) Code Review
b9cb7c970b Merge change 6963
* changes:
  Block incoming SMS in CDMA Emergency Callback Mode
2009-07-13 15:26:22 -07:00
Android (Google) Code Review
390e9df5f0 Merge change 6934
* changes:
  Add Get-CDMASubscription in EVENT_RUIM_READY.
2009-07-13 14:27:25 -07:00
Cheng Yang
117eace239 Block incoming SMS in CDMA Emergency Callback Mode
Block incoming SMS in CDMA Emergency Callback Mode

CDMA carriers expect that incoming SMS is not processed by phone while
it is in Emergency Callback Mode, so don't acknowlegde it to the network.
2009-07-13 14:00:07 -07:00
jsh
45becf90a8 am aa459370: Update javadoc for TelephonyManager.getNetwork* for CDMA.
Merge commit 'aa4593706e4586fb4dfa6bd00d49c6f6159cbe0f'

* commit 'aa4593706e4586fb4dfa6bd00d49c6f6159cbe0f':
  Update javadoc for TelephonyManager.getNetwork* for CDMA.
2009-07-13 13:32:34 -07:00
Mike Lockwood
2872e30684 DO NOT MERGE: backporting from master:
CDMA: Add Network ID and System ID to CdmaCellLocation.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-13 16:27:43 -04:00
jsh
aa4593706e Update javadoc for TelephonyManager.getNetwork* for CDMA.
These are unreliable for CDMA, so note it in the javadoc. Also update
for the corresponding TelephonyProperties.
2009-07-13 12:54:45 -07:00
Cheng Yang
56d97ebb3a Add Get-CDMASubscription in EVENT_RUIM_READY. 2009-07-13 11:46:49 -07:00
Android (Google) Code Review
5b93050d48 am f6c96839: Merge change 6850 into donut
Merge commit 'f6c968395f9c78552763e8f2994a57cf5c6bc0c0'

* commit 'f6c968395f9c78552763e8f2994a57cf5c6bc0c0':
  Extra parameters for sendBurstDtmf.
2009-07-12 21:55:54 -07:00
Mike Lockwood
a4d2fb5ef6 CDMA: Add Network ID and System ID to CdmaCellLocation.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-12 14:33:07 -04:00
Dianne Hackborn
54a26bc85f resolved conflicts for merge of 889c2d37 to master 2009-07-10 16:05:59 -07:00
jsh
dafa22a3ef Extra parameters for sendBurstDtmf.
ON length and OFF length.
Also, define PROFILEs for use with SETUP_DATA_CALL.
2009-07-10 15:52:28 -07:00
Android (Google) Code Review
7882e20d59 Merge change 6814
* changes:
  Change 107 and 146 from partner repo.
2009-07-10 14:19:58 -07:00
Wink Saville
daccacb865 Change 107 and 146 from partner repo.
These were combined to save testing time.

cpr107:
    Enhance the MDN change during OTA

      1. Remove the OTA MDN change code in RuimRecords.java and move
         to CdmaServiceStateTracker.java
      2. Reduce the frequent function GET-CDMASubscription. Move the
         Get_CDMASubscription from pollstate() to EVENT_NV_READY handler.
         The CDMA Subscriber MDN/MIN is only changed by OTA programming.
         Only need fecth the subscriber information when power on and OTA
         completed.
      3. Add new variable for PRL version in cdma subscription

cpr146:
    SMS-to-Email fix for extracting e-mail address
2009-07-10 14:16:17 -07:00
Wink Saville
05b301b9df Changes 203 and 225 from partner repo.
These are combined to save testing time.


Change 225:
    make NV_READY return State.READY.

Change 203:

    CDMA SMS decoding support for Latin and fix for WAP concatenation

    1.  Enabled support for 8bit Latin decoding.
    2.  Change octet decoding to remove an extra pad byte from the payload.
        This caused problems with the concatenation of WAP PUSH messages.
    3.  Decode octet encoded data as if it was Latin. There are devices out
        there that will use 0 instead of 8.
2009-07-10 11:34:33 -07:00
Dianne Hackborn
854060af30 Fix bug #1873249i: Apps can DoS/brick device
This is the problem where various things are listening for broadcasts
(such as battery status, PIN/PUK/Network) that an application can send
to cause harm to the system.

Solving this is tricky because many of these broadcasts are sticky,
and I have never figured out how to do permissions with sticky
broadcasts in a sane way.  So instead, I am going to punt on the
general problem and just brute force it:

There is new a way for system components to declare specific
broadcast actions to be protected, which means that only the system
and the phone can send them.  This is good enough for now.  None
of it is exposed in the public API so we can make something a little
less stupid in the future if we ever need to.
2009-07-09 18:14:31 -07:00
Android (Google) Code Review
2291616d84 Merge change 6092
* changes:
  Remove duplicate code in Sim/Ruim card, handle IccCardStatus.
2009-07-08 15:22:56 -07:00
Jaikumar Ganesh
cdadaad0e4 Remove duplicate code in Sim/Ruim card, handle IccCardStatus.
a) Push code to IccCard.java base class.
b) Handle IccCardStatus.
c) Add some helper functions for USIM use.
2009-07-08 15:15:47 -07:00
yong liu
2fa57a3fd1 Message address encoding fix
Set DIGIT_MODE_4BIT_DTMF as the default digitMode and
TON_UNKNOWN as the default 'type of network'.
2009-07-07 18:51:29 -07:00
Android (Google) Code Review
bcd18e0151 am 62edc960: Merge change 6383 into donut
Merge commit '62edc960224fd6410d5e08cbb0e09ee4ac6e0c44'

* commit '62edc960224fd6410d5e08cbb0e09ee4ac6e0c44':
  Cleanup connection when airplane mode is entered.
2009-07-07 15:38:59 -07:00
Android (Google) Code Review
62edc96022 Merge change 6383 into donut
* changes:
  Cleanup connection when airplane mode is entered.
2009-07-07 15:22:15 -07:00
Android (Google) Code Review
51759015a3 Merge change 6392
* changes:
  Add the condition check of ERI for CDMA roaming.
2009-07-07 14:50:04 -07:00
Jaikumar Ganesh
024af038a7 Cleanup connection when airplane mode is entered.
The message was being sent to the wrong handler.
2009-07-07 12:34:59 -07:00
Yong Zhang
8e80fd4478 Add the condition check of ERI for CDMA roaming.
With this fix, phone will not show that it is roaming
when it is not, and there is no need to enable the
"Data Roaming" in order to get the data to work.
2009-07-07 11:46:56 -07:00
Android (Google) Code Review
6e2863ec16 am 37ea7112: Merge change 6338 into donut
Merge commit '37ea71122579e9e2ad1f91b3eca5e4d436b54ea9'

* commit '37ea71122579e9e2ad1f91b3eca5e4d436b54ea9':
  septet-align UD after any UDH for GSM-7bit coding
2009-07-06 23:49:45 -07:00
Tammo Spalink
0fd833a50f septet-align UD after any UDH for GSM-7bit coding 2009-07-07 14:17:28 +08:00
Android (Google) Code Review
a95fe061c7 Merge change 6232
* changes:
  frameworks/base: Update mPdu in createFromPdu
2009-07-06 11:22:51 -07:00
Android (Google) Code Review
907a8589ba am 922f1b85: Merge change 6146 into donut
Merge commit '922f1b85b9096d9056f1b9e2d777098d1e4ed8b1'

* commit '922f1b85b9096d9056f1b9e2d777098d1e4ed8b1':
  Fixing 1949086 Sholes telephony crash after waking from sleep.
2009-07-06 11:17:56 -07:00
Satish Roddom
5082fd58e3 frameworks/base: Update mPdu in createFromPdu
Inside createFromPdu(), the passed-in parameter 'pdu' is assigned
to msg.mPdu, so that we can call getPdu() to get it back.
2009-07-06 09:36:11 -07:00
Wink Saville
1eee698c3e Fixing 1949086 Sholes telephony crash after waking from sleep. 2009-07-02 20:50:11 -07:00