144 Commits

Author SHA1 Message Date
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
Wink Saville
1eee698c3e Fixing 1949086 Sholes telephony crash after waking from sleep. 2009-07-02 20:50:11 -07:00
jsh
8890aaf77c SimRecords.getServiceProviderName() always returned null.
Fixes bug 1955060.  spn was defined in both SimRecords and base class IccRecords.
2009-07-01 12:55:28 -07:00
Android (Google) Code Review
daa5a21562 Merge change 5810 into donut
* changes:
  Fix bug 1930055 of NullPointerException.
2009-06-30 15:16:38 -07:00
Android (Google) Code Review
85d650c899 Merge change 5804 into donut
* changes:
  Ensure that we never trigger ArrayIndexOutOfBoundsException by checking that the index is always < the array's length. Also ensures that the object's state is consistent. Should resolve a denial-of-service bug when handling malformed WAP pushes.
2009-06-30 15:05:56 -07:00
John Wang
107821369b Fix bug 1930055 of NullPointerException.
The NullPointerException in getCallState is caused by the restarting of phone process. getITelephony() was not ready to be used at that moment.

	modified:   java/android/telephony/TelephonyManager.java
2009-06-30 12:01:35 -07:00
Chris Palmer
3856785225 Ensure that we never trigger ArrayIndexOutOfBoundsException by checking that
the index is always < the array's length. Also ensures that the object's
state is consistent. Should resolve a denial-of-service bug when handling
malformed WAP pushes.
2009-06-30 11:50:50 -07:00
Jaikumar Ganesh
34267f7e17 Fix typo introduced during variable cleanup.
This prevented data connection being established after voice calls on 2G networks.
2009-06-30 10:53:16 -07:00
Tammo Spalink
8561de157c eliminate byte-typed cdma sms fields 2009-06-30 11:02:46 +08:00
Android (Google) Code Review
0178afe415 Merge change 5485 into donut
* changes:
  cdma sms is91 support
2009-06-29 19:22:11 -07:00
Android (Google) Code Review
8aadf7ae27 Merge change 5359 into donut
* changes:
  fix potential string index problems in PhoneNumberUtils.numberToCalledPartyBCDHelper
2009-06-29 19:22:05 -07:00
Jaikumar Ganesh
c0303921d0 Fix setting of the APN type.
The user is on wifi, then enables SUPL APN. When wifi is switched off,
we try to establish DATA connection on the Default APN. If this fails,
we were not retrying as the mRequestedApnType variable was not being reset.
This was happening because the SUPL APN and the data connection APN
were the same.
2009-06-29 13:33:47 -07:00
Tammo Spalink
3a08cec99e fix potential string index problems in PhoneNumberUtils.numberToCalledPartyBCDHelper
addresses http://buganizer/issue?id=1489784
2009-06-29 12:51:22 +08:00
Tammo Spalink
8203dc1bc8 cdma sms is91 support 2009-06-28 16:23:53 +08:00
Jaikumar Ganesh
e7e12b44bc Tune the Reconnect back off timer.
Cap the max limit to 30 mins.
Re-register to the network once, when we reach the 30 min max.
2009-06-26 18:43:46 -07:00
Android (Google) Code Review
ae3522734e Merge change 5192 into donut
* changes:
  make BitwiseInputStream.read return int
2009-06-26 14:41:51 -07:00
David Krause
5c7d9e8194 CDMA incoming MMS fixes
Need to correctly interpret WAP Datagram data. Specifically the
source and destination ports are only included in the 1st segment,
not subsequent segments but the original implementation was looking
for the ports for all segments.
2009-06-25 21:56:24 -07:00
jsh
3960ced463 Fix SMS Ack.
There were a few places where we were not sending SMS ack.  This change fixes that, and helps ensure that we don't miss any others.

Also fix a bug I introduced in RIL.java for CDMA SMS ACK (it uses RIL_CDMA_SMS_Ack and not int[]).
2009-06-25 13:08:08 -07:00
Android (Google) Code Review
d48388ab82 Merge change 5344 into donut
* changes:
  frameworks/base: CDMA voicemail support
2009-06-25 00:09:18 -07:00
David Krause
ce099c3226 frameworks/base: CDMA voicemail support 2009-06-24 21:29:52 -07:00
David Krause
8a9ae45015 Fix intermittent crash related to call waiting
Previously, when call waiting is ignored by user or timed out
by PhoneApp, the connection object for call waiting does not
release the wake lock. It causes the phone process to crash
randomly.

The fix is to release the wake lock when call waiting is
ignored by user or timed out by PhoneApp.
2009-06-24 20:53:15 -07:00
Tammo Spalink
326c66d888 make BitwiseInputStream.read return int
Keep the maximum access 8 bits to avoid dealing with
endianness issues.
2009-06-24 14:42:33 +08:00
David Krause
b6d90ca129 Fill in CDMA gaps and clean up ToneGenerator code 2009-06-23 12:32:12 -07:00
jsh
be7f0f78af Add remaining retry count to response for PIN/PUK commands.
RIL_REQUEST_ENTER_SIM_PIN
RIL_REQUEST_ENTER_SIM_PUK
RIL_REQUEST_ENTER_SIM_PIN2
RIL_REQUEST_ENTER_SIM_PUK2
RIL_REQUEST_CHANGE_SIM_PIN
RIL_REQUEST_CHANGE_SIM_PIN2
RIL_REQUEST_SET_FACILITY_LOCK
RIL_ENTER_NETWORK_DEPERSONALIZATION
2009-06-22 09:17:08 -07:00
Android (Google) Code Review
4da7dff5e7 Merge change 4731 into donut
* changes:
  gsm: Remove PppLink since pppd_gprs service does not exist.
2009-06-20 14:48:33 -07:00
Android (Google) Code Review
ab48bb9c00 Merge change 4686 into donut
* changes:
  Set AuthType to 0 if username is not specified.
2009-06-19 12:13:50 -07:00
Jaikumar Ganesh
238bfa9efd Set AuthType to 0 if username is not specified.
If username is not specified, set authType to No PAP / No CHAP
so that the code is backward compatible.
2009-06-19 12:06:48 -07:00
Chia-chi Yeh
4df90a869c gsm: Remove PppLink since pppd_gprs service does not exist. 2009-06-19 16:02:30 +08:00
Tammo Spalink
fc78f358cb for cdma concatenated (long) messages, replace ascii7bit with gsm7bit encoding 2009-06-18 14:57:06 +08:00
Jaikumar Ganesh
59cbd7c86f Add PDP Reject causes.
The RIL call LAST_PDP_FAIL_CAUSE, gives us the
PDP setup failure cause. Add support for retry based
on these causes.
2009-06-15 21:34:31 -07:00
Jaikumar Ganesh
bbf7c00e06 Fix data connection issues.
a)Fix cleanup connection being called twice when switching to wifi.
b) Reset the reconnect timer when voice call ends and APN is changed.
2009-06-12 12:14:08 -07:00
Android (Google) Code Review
cb9534f920 Merge change 3907 into donut
* changes:
  Support SMS cell broadcasting for GSM in RIL.java
2009-06-11 15:54:51 -07:00
johnwang
e337d651a5 Support SMS cell broadcasting for GSM in RIL.java
enable gsm related cell broadcast requests in RIL.java and add SmsBraodcastConfigInfo class.

The gsm related cell broadcast requests include

RIL_REQUEST_GET_BROADCAST_CONFIG
RIL_REQUEST_GET_BROADCAST_CONFIG
RIL_REQUEST_BROADCAST_ACTIVATION
RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS

	modified:   BaseCommands.java
	modified:   CommandsInterface.java
	modified:   RIL.java
	modified:   RILConstants.java
	modified:   cdma/CdmaSMSDispatcher.java
	new file:   gsm/SmsBroadcastConfigInfo.java
	modified:   test/SimulatedCommands.java
2009-06-11 15:43:29 -07:00
Tammo Spalink
a94945d3a1 make sms calculateLength radio-independent 2009-06-11 15:24:43 +08:00
Android (Google) Code Review
2795c2d6b7 Merge change 3806 into donut
* changes:
  Fix a couple null pointer exceptions in CDMA voice call handling.
2009-06-10 16:38:12 -07:00
Wink Saville
4be0d4378c Fix a couple null pointer exceptions in CDMA voice call handling. 2009-06-10 14:35:28 -07:00
Jaikumar Ganesh
e51d57f4ab Process the response of RIL_REQUEST_REPORT_SMS_MEMORY_STATUS. 2009-06-10 12:26:07 -07:00
Jaikumar Ganesh
7b3f5520d3 Add additional parameters to SETUP_DATA_CALL and SMS response.
1. The authType should be specified in the APN database.
This was hardcoded to 3 in the qmi driver. We currently set it to
3 in the RIL till the apn database side changes are done.
2. RIL_SEND_SMS response has errorCode as a new field,
2009-06-10 11:02:57 -07:00
Android (Google) Code Review
8f094ca7d0 Merge change 3686 into donut
* changes:
  Fix cleanupConnection when switching from wifi.
2009-06-10 10:50:28 -07:00
Jaikumar Ganesh
9ac95783fc Fix cleanupConnection when switching from wifi.
Post a message for tearDown data connection when switching from wifi.
2009-06-09 21:11:41 -07:00
Wink Saville
2563a3ac05 Cleanup whitespace. 2009-06-09 10:30:03 -07:00
Android (Google) Code Review
c11a3fab1a Merge change 3530 into donut
* changes:
  Add RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING & reportStkServiceIsRunning.
2009-06-08 23:04:21 -07:00
Wink Saville
e14af0e26e Add RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING & reportStkServiceIsRunning.
These are used to notify the vendor ril that the StkService is
running and ready to receive RIL_UNSOL_STK_XXX commands.
2009-06-08 22:59:41 -07:00
jsh
52f2825c29 Report device storage status (for SMS) to RIL.
Indicate SMS memory available/not available based on DEVICE_STORAGE_OK/FULL
intents, and immediately NAK with MEMORY_FULL if we've received a
DEVICE_STORAGE_FULL notification.

This may end up being a short term solution, as the messaging app is
getting re-worked in Eclair, which may change the way we want to handle
memory full reporting (ie, more app involvement).
2009-06-08 16:05:00 -07:00
Wink Saville
22ccaf5321 Motorola changes from 090602 through 090605
The changes from 090602 update frameworks/base to support 3way calling
and call waiting.

The changes from 090603 completed the CdmaInformationRecords class
but the original changes submitted has been simplified, toString added
and a bug fixed where the notifications where not being handled properly.

The changes from 090605 added Prl Version, apn fixes.
2009-06-07 12:09:18 -07:00
Android (Google) Code Review
b1c2874790 Merge change 3305 into donut
* changes:
  Fix parameter mismatch for a couple of RIL commands.
2009-06-05 13:34:25 -07:00
jsh
9c9151eccd Fix parameter mismatch for a couple of RIL commands.
Both RIL_REQUEST_SET_SMSC_ADDRESS and RIL_REQUEST_CDMA_FLASH take a string
as a parameter.  But RIL.java was sending down an array of strings with a
single element instead.
2009-06-05 10:03:17 -07:00
Marco Nelissen
b111554883 Update a javadoc comment suggesting the use of a deprecated class. 2009-06-04 15:02:49 -07:00
Android (Google) Code Review
3d3e307a63 Merge change 3126 into donut
* changes:
  Fix thread safety in DataConnectionTracker.
2009-06-04 10:09:59 -07:00
Tammo Spalink
90cb947c22 cdma getNeighboringCids to fail with an exception 2009-06-04 14:07:13 +08:00