459 Commits

Author SHA1 Message Date
Libin Tang
d23b2cd28c Fix CDMA ERI/roaming indicator issues
- If the SID is not in NAM and PRL, the phone should use default Roaming
  Indicator
- If a system is acquired that matches the NAM but does NOT match the PRL,
  the device shall display a FLASHING roaming indicator
- Handle corner cases for PRL is not loaded / Home SID is not programmed
- Reorganize the ERI logic
2009-07-30 15:43:12 -07:00
Jaikumar Ganesh
0da3bdb476 Fix public API caused due to CDMA changes. 2009-07-30 12:37:43 -07:00
johnwang
d2fb980060 Represent SID/NID in decimal format.
Interpret SID/NID ad decimal and add try/catch block to prevent crashing in wrong format. Update SID/NID comments.

	modified:   java/com/android/internal/telephony/CommandsInterface.java
	modified:   java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
2009-07-30 10:10:19 -07:00
Wink Saville
98ad09880b am b307c894: Fix bug 1994955 where PHONE_TYPE_CDMA was 0 and it should be 2 and added RILConstants.NO_PHONE.
Merge commit 'b307c8945d4bf8d843445f3cc6d727f4e43d90f0'

* commit 'b307c8945d4bf8d843445f3cc6d727f4e43d90f0':
  Fix bug 1994955 where PHONE_TYPE_CDMA was 0 and it should be 2 and added RILConstants.NO_PHONE.
2009-07-30 06:56:24 -07:00
yong liu
c84401fb8b CDMA Message Waiting Indication support
Add support for Message Waiting Info Record defined in 3GPP2 C.S-0005
and used for voice mail count by some CDMA networks
2009-07-29 20:54:03 -07:00
Yong Zhang
96f2747dd6 Fix wrong Singal Strength interpretation.
The issue this change fixes is that phone status bar shows full
signal strength bar even when phone is in bad signal area. The
root cause is that the signal strenth  is incorrectly interpreted.
2009-07-29 20:39:52 -07:00
Android (Google) Code Review
fc6627a892 Merge change 9054
* changes:
  Increase waiting time for data disable action in setPowerStateToDesired().
2009-07-29 17:03:04 -07:00
Yong Zhang
6afac8b292 Increase waiting time for data disable action in setPowerStateToDesired().
The issue this change fixes is that phone did not send MIP deregisteration
and LCP termination message when user powered down phone while data call was
in dormant state.  The root cause is Framework Telephony did not wait long
enough before it sent the request to power off the radio. The fix is to
increase the waiting timer.
2009-07-29 17:01:24 -07:00
Jinghui Guo
79ef673d56 Disable data call in emergency call 2009-07-29 16:58:11 -07:00
Wink Saville
b307c8945d Fix bug 1994955 where PHONE_TYPE_CDMA was 0 and it should be 2 and added RILConstants.NO_PHONE.
This bug originally reported that PHONE_TYPE_CDMA needed to be 2 because
it was public. But as far as I can tell it has never been public and it
is still marked @hide so is not public now. There is a bug in that
PHONE_TYPE_NONE and PHONE_TYPE_CDMA were both 0. But this doesn't
appear to have been a problem because PHONE_TYPE_NONE doesn't looked to be
used anywhere except in TelephonyManagerTest.
2009-07-29 10:25:09 -07:00
Tammo Spalink
f62a2bf29a allow illegal subparam sizes for CDMA SMS
addresses http://buganizer/issue?id=2008358
2009-07-29 14:31:43 +08:00
repo sync
a1fd1efb52 Voicemail number setting is throwing exception 2009-07-28 12:26:24 -07:00
Android (Google) Code Review
08e9722664 Merge change 8745
* changes:
  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.
2009-07-27 22:03:25 -07:00
Android (Google) Code Review
6e4cb2a001 am ecbbecf6: Merge change 8620 into donut
Merge commit 'ecbbecf6c535e7f3e1d072d43766a95aa18ee464'

* commit 'ecbbecf6c535e7f3e1d072d43766a95aa18ee464':
  Fix swapped gsm/cdma function dispatch, and 7bit text fragmentation.
2009-07-27 19:48:49 -07:00
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