Commit Graph

2850 Commits

Author SHA1 Message Date
The Android Automerger
b57cfd4e51 merge in gingerbread-release history after reset to gingerbread 2011-03-07 16:40:03 -08:00
The Android Automerger
36bec25c9d merge in gingerbread-release history after reset to gingerbread 2011-03-04 21:56:39 -08:00
The Android Automerger
7dab011a5b merge in gingerbread-release history after reset to gingerbread 2011-03-04 17:41:48 -08:00
The Android Automerger
7486898b9c merge in gingerbread-release history after reset to gingerbread 2011-03-03 14:17:38 -08:00
Eric Fischer
4ff77b1e4f Import revised translations. DO NOT MERGE
Change-Id: Ic8a992a03e32a62f023995a29ee671dede5aab18
2011-02-08 14:18:04 -08:00
Eric Fischer
7fc19e98c6 Import revised translations. DO NOT MERGE
Change-Id: Ic8a992a03e32a62f023995a29ee671dede5aab18
2011-02-07 13:19:59 -08:00
Jean-Baptiste Queru
feb9a2c6be Merge from open-source gingerbread - do not merge
Change-Id: Ic48053624dcb200a64776de01ba258800ed3a75c
2011-02-02 07:53:48 -08:00
Jean-Baptiste Queru
b4f225021d Merge "Fix a decoding problem on the Email body" into gingerbread 2011-02-02 07:53:09 -08:00
Sang-Jun Park
499fc762ee Fix a decoding problem on the Email body
When decoding the Email body, email application used google default base64
function.  But it caused problem, so particular email did not sync any more.
So we have changed decoding function as a decoder from apache in order
not to occur problem

Change-Id: I7581123f21fbb4015153ca6f4a0c14c0f6a769fc
Signed-off-by: Sang-Jun Park <sj2202.park@samsung.com>
2011-02-02 08:16:13 +09:00
Andy Stadler
927dbc7c20 Don't send IMAP ID unless server supports it
Only send IMAP ID to servers that include ID in the CAPABILITY response.
Always sending IMAP ID was found to cause problems with some servers.

Better compliance with RFC 2971.
Thanks to Samsung for debugging & reporting this.

Change-Id: I495f80949f9f811470853a1f2f8e506d8236d8cf
2011-01-31 15:10:49 -08:00
Andy Stadler
ecffd551cc DO NOT MERGE Remove all password trim() calls
* Initial account setup screen, password entry field
* When passing the entered password from incoming->outgoing
* When restoring store URI's from HostAuth

This will satisfy the users who insist on leading/trailing spaces
in their IMAP or EAS password.  Not supported by POP3 (no quoting).

Bug: 2981433
Change-Id: I16c00bf96382899abb54cb75fcd44cf0f140a660
2011-01-20 11:30:20 -08:00
Eric Fischer
808d0f38a6 Import translations for additional languages.
Change-Id: Id4742833e91660fb2c79f2bede7f69d28fa88133
2011-01-06 10:34:30 -08:00
Andy Stadler
8c45186b47 Merge "DO NOT MERGE Fix cursor leaks when canceling AsyncTask" into gingerbread 2011-01-05 08:01:37 -08:00
Andy Stadler
1a791e675b Fix NPE when switching IMAP into TLS
* Update MockTransport to allow TLS connections
* Test TLS connection in ImapStore unit tests
* The bugfix: Re-query capabilities after closing/reopening parser for TLS

(Note: Actually, this is required by the IMAP RFC 3501, 6.2.1)

Bug: 3315939
Change-Id: I51f838043e87750b5712a1bd2e4f9c821b58c808
2011-01-04 20:21:15 -08:00
Andy Stadler
d2911c3e86 DO NOT MERGE Fix cursor leaks when canceling AsyncTask
We discovered that AsyncTask.cancel() doesn't quite perform as expected;
In particular, if you call cancel() during a particularly slow background
worker, the result is discarded and onPostExecute() is never called.  If
the result is an open cursor, then we "leak" by not closing it.

For AccountFolderList, which has a multi-step doInBackground():
1.  Check for isCancelled() during the long doInBackground() which will
    reduce the number of discarded cursors in the first place.
2.  Check for isCancelled() at the end of the long doInBackground() and
    if true, close the result cursors and return null.
3.  In the existing isCancelled() code in onPostExecute(), close the
    cursors.

For other Activities (with simpler configurations):
1.  Check for isCancelled() at the end of doInBackground() and if true,
    close the just-opened cursor and return null.

Bug: 3088870
Change-Id: Ie63a3197af563baa8bb0fe6f1ef9423e281cbf4c
2011-01-04 18:17:32 -08:00
Andy Stadler
ec988c2fba DO NOT MERGE Added/updated Yahoo provider settings
Specifically, added configuration settings for international Yahoo
domains (e.g. yahoo.ca, yahoo.de, yahoo.fr, etc), including partially
or wholly owned Yahoo subsidiaries; as well as partner domains from AT&T,
British Telecom, and Rogers whose email services are managed by Yahoo.

For domains supporting IMAP, changed to IMAP+SSL for mail handling to
support a better user experience on mobile devices.

Bug: 3258944
Original Author: Kristopher Giesing
Original CL: If5bdc70f70820f3f8aada6d2ee9b0cdb115432b5

Change-Id: Ib117f3755ff9250746f05debd1a6d1cda44c7855
2011-01-04 17:19:19 -08:00
Justin Ho
13beedd11c Merge "Merging stat_notify in Email" into gingerbread 2010-12-03 18:26:39 -08:00
Justin Ho
2e0ebab3bb Merging stat_notify in Email
Change-Id: I1b7d2a37ceddd12fd1f15439511dfad160580d86
2010-12-03 18:25:00 -08:00
Eric Fischer
a56f0eedc5 Import revised translations. DO NOT MERGE
Change-Id: I453979a6a8a6ed9d5431fc790a03cbfd21056fa7
2010-11-29 16:16:50 -08:00
Andrew Stadler
7d7ffaf6a3 am 9031e67b: (-s ours) Fix remote wipe with mobile sync server DO NOT MERGE
* commit '9031e67b7e2ec00033a45155ff644fccb33e6bc7':
  Fix remote wipe with mobile sync server DO NOT MERGE
2010-10-29 16:22:11 -07:00
Andrew Stadler
aae1f83ad1 am 89a799c8: (-s ours) DO NOT MERGE: Don\'t disable account box if sync freq -> "Never"
* commit '89a799c8d4e9b44c2cf5ba6e72f17e1bb652c42b':
  DO NOT MERGE: Don't disable account box if sync freq -> "Never"
2010-10-29 16:19:14 -07:00
Andrew Stadler
9031e67b7e Fix remote wipe with mobile sync server DO NOT MERGE
* It appears as if our running multiple sync threads can confuse the
  mobile sync server during a remote wipe (the server expects the next
  client response to be an acknowledgment, whereas it might well be
  a command or response from a different thread)
* To avoid this, we first put the account on security hold and then
  shut down all other sync threads for the account
* After this, we send the acknowledgment and the remote wipe proceeds
  normally.
* NOTE: It's possible that, due to the vagaries of multithreaded
  operation, one of the other syncing threads could still send a non-
  acknowledgment response to the server before our provisioning thread
  gets a chance to send its acknowledgment.  However, since the other
  syncing threads will terminate (and not restart, because of the hold),
  the provision/remote wipe/ack sequence will work on the subsequent
  attempt

Bug: 2844888
Backport From: Ib4ffbbc67b681e69176b6c1d5515fa80c7d1e121
Backport From: Ie9e944bd39f331c2ddc0f0ba303a3d5684f6f033

Change-Id: Ie57f13a5ca2149961a48b99afaebb812f1cbc88e
2010-10-29 16:18:44 -07:00
Andrew Stadler
89a799c8d4 DO NOT MERGE: Don't disable account box if sync freq -> "Never"
Original Change-Id: Iec214b0fed093ff39dc70d5d821577bcf15f00ed
Bug: 2905667

Change-Id: Iee182596d8c217d6bd78371fcf6fdc4dbfcd04a4
2010-10-29 16:16:40 -07:00
Andrew Stadler
90e227650c am 3ddfdb8e: (-s ours) Merge "Give email its own version# scheme. DO NOT MERGE" into froyo
* commit '3ddfdb8e075f57184954a2000e71f70922ab7bd9':
  Give email its own version# scheme.  DO NOT MERGE
2010-10-29 16:14:11 -07:00
Andrew Stadler
ac6e846c10 am bafd3d87: (-s ours) Increase EAS command timeout from 20 to 30 seconds DO NOT MERGE
* commit 'bafd3d871530335ef47b7b33b984b6bff0df91fa':
  Increase EAS command timeout from 20 to 30 seconds DO NOT MERGE
2010-10-29 16:12:19 -07:00
Andrew Stadler
3ddfdb8e07 Merge "Give email its own version# scheme. DO NOT MERGE" into froyo 2010-10-29 16:11:12 -07:00
Andrew Stadler
7ecf6d5ca8 Give email its own version# scheme. DO NOT MERGE
Backport From: I258ffcf47d243417edadad44714f74247c78b366

Change-Id: I66dcce11bfaa5bec6d2936aafeb4fde43eafb2c0
2010-10-29 14:17:49 -07:00
Andrew Stadler
bafd3d8715 Increase EAS command timeout from 20 to 30 seconds DO NOT MERGE
Original Change-Id: Ic58fea147d179ffd18f28a8ce5d290a1b37302ce
Bug: 3027271

Change-Id: I86cd297f3273b20bd21fcca534eb58b39f904965
2010-10-29 14:07:50 -07:00
Eric Fischer
641ef663f3 Import revised translations. DO NOT MERGE
Change-Id: I822b5937c9b79a312cc066ced05c8874221fdc19
2010-10-25 16:51:00 -07:00
Eric Fischer
731a970594 Import revised translations. DO NOT MERGE
Change-Id: I885730c4fd495120c788d11bcd59bbb5fba44743
2010-10-22 15:28:07 -07:00
Marc Blank
2a08ef0d28 Don't allow MailService to schedule EAS accounts
Bug: 3120208
Change-Id: I53e935f8bf08e0bda6e2cd483229a6377ed39d74
2010-10-21 16:49:41 -07:00
Marc Blank
4a546f5f6e DO NOT MERGE: Backport AttachmentProvider security fix
* Apps trying to open attachments using AttachmentProvider were
  seeing SecurityExceptions due to the fact that internal calls
  from AttachmentProvider to EmailProvider didn't have their
  calling identity saved/restored.
* Updated provider calls so that these calls use the Email
  process' identity.
* Backport of Ifb71ad834530c6232728e1aad31439991f8ed379, fixing
  2908737

Bug: 3121146
Change-Id: Ifa3a0ca8d3e34733c937d7f8c60f068984e1f4f2
2010-10-21 15:39:36 -07:00
Kenny Root
dd4790651b Import revised translations
Change-Id: I30d0ddf21979a6ae1c75ee5e601a9a448079b5de
2010-10-14 09:43:56 -07:00
Andy Stadler
214c6c6c81 Fix remote wipe with mobile sync server
* It appears as if our running multiple sync threads can confuse the
  mobile sync server during a remote wipe (the server expects the next
  client response to be an acknowledgment, whereas it might well be
  a command or response from a different thread)
* To avoid this, we first put the account on security hold and then
  shut down all other sync threads for the account
* After this, we send the acknowledgment and the remote wipe proceeds
  normally.
* NOTE: It's possible that, due to the vagaries of multithreaded
  operation, one of the other syncing threads could still send a non-
  acknowledgment response to the server before our provisioning thread
  gets a chance to send its acknowledgment.  However, since the other
  syncing threads will terminate (and not restart, because of the hold),
  the provision/remote wipe/ack sequence will work on the subsequent
  attempt

Bug: 2844888
Backport From: Ib4ffbbc67b681e69176b6c1d5515fa80c7d1e121

Change-Id: Ie9e944bd39f331c2ddc0f0ba303a3d5684f6f033
2010-10-13 15:39:27 -07:00
Andy Stadler
efcde27bf7 Use original all-day flag when upsyncing exceptions DO NOT MERGE
Bug: 3087410
Backport of: I4bed0039758e98d4b85054876f192605eb00ee82

Change-Id: Ibc875d58c2f6c5317ce8e4fee97b96c2fd6b2ecf
2010-10-13 15:05:38 -07:00
Andy Stadler
9c2baaabd2 Fix upsync of exceptions in EAS 2.5 (Exchange 2003) DO NOT MERGE
* Apparently, Exchange 2003 doesn't like to see Visibility set in
  Exceptions
* Apparently, Exchange 2003 likes to see Exception Deleted and
  ExceptionStartTime prior to other data
* The word "apparently" is used above to indicate that these
  findings are not part of any specification, but have been
  determined empirically

Bug: 2775885
Backport of: I163f156675f65c494a59d5233b2b6e23b3f1d6a0

Change-Id: I5d32dea5c3903147725b8df87a71e961a4d78c60
2010-10-13 15:02:38 -07:00
Andy Stadler
419a36ca6e Give email its own version# scheme. DO NOT MERGE
Change-Id: I258ffcf47d243417edadad44714f74247c78b366
2010-10-12 16:39:58 -07:00
Roy West
0639c6bd4e Fix bug 3074186 limit check label to Inbox
Change-Id: Iec416a2112c98483372694e09f2375c9cf36ac09
2010-10-09 08:53:34 -07:00
Gilles Debunne
ba95e58afd New downscaled menu assets
Change-Id: I00b816df25bc03b63f0960dbb735d4d55c63328d
2010-10-06 09:57:45 -07:00
Marc Blank
5c5f3a0dbc Fix issue w/ race condition leading to log spam
Bug: 3064901
Change-Id: I115fa6878ae9b4464b3f0b9cace1f200e2e5f47c
2010-10-05 12:52:35 -07:00
Andy Stadler
d7876681a8 Reorganize startup/shutdown code in SyncManager DO NOT MERGE
* Move all thread-related startup code into run()
* Move all thread-related shutdown code into new method shutdown()
* Add appropriate synchronization during startup/shutdown
* Add thread names to worker threads

Bug: 2790929
Bug: 2645835

Backport of: Idbd35892cea3de5fbd365102a62103b2f0bdf6c9
Backport of: Ib12a70222ac3fd9e65bec3834c0aae061858776c

Change-Id: Idfd1c9ac7fbe8ce6859b1933ab6d287e3cb0d2e9
2010-10-04 15:50:41 -07:00
Eric Fischer
aa32ce7ea5 Merge "Import revised translations. DO NOT MERGE" into gingerbread 2010-09-30 15:46:42 -07:00
Ying Wang
b38a043ece Fix proguard flag file dependency.
Change-Id: If5955c5714f9a5d3d6a111ee9d825b1574cc677e
2010-09-29 15:22:04 -07:00
Eric Fischer
3886b266f2 Import revised translations. DO NOT MERGE
Change-Id: If12cbb0d1c04684bf0dcf59980a0b784fb6693f9
2010-09-29 14:34:01 -07:00
Eric Fischer
5849608f5e Genericize strings that refer to the SD card.
Change-Id: Ia754540c7bfc0e9a97c1d9d386efd2b2d0642560
2010-09-29 12:09:05 -07:00
Andy Stadler
a9bc41f5ec Show server name instead of account name
The format string "The server %s requires that you allow it to remotely
control some security features of your phone." was being displayed with
the account name instead of the server name.

Bug: 3011124
Change-Id: I1aadb5790297777831dd69f04ea89641240b7b87
2010-09-28 20:15:54 -07:00
Andy Stadler
e242578a49 Make WebViews clickable DO NOT MERGE
* Makes the side-scrollable again
* Required after making them non-long-clickable

Requires companion change in WebView, to allow touch events while
clickable or long clickable (it had been requiring both)

Bug: 3036477
Change-Id: I4cae46d047f825d2aab08d254287855b187e9207
2010-09-27 15:54:37 -07:00
Andy Stadler
ac916da48e Improve handling of content-disposition DO NOT MERGE
* Check array returned by split("=")
* Add unit tests for this case
* Also add unit tests for quoting removal

Bug: 3040796
Backport from: I170f3cd483fe35186194edeb0c3142fb0e2e9b75

Change-Id: I32ccbdbc7264a95a9cd279218cae390e65e82eeb
2010-09-27 15:16:24 -07:00
Andy Stadler
658df8f69f Merge "Allow spaces in passwords DO NOT MERGE" into gingerbread 2010-09-27 14:22:22 -07:00
Andy Stadler
02a0edb60d Allow spaces in passwords DO NOT MERGE
* Separate/identical fixes for incoming, outgoing, exchange
* Unit tests
* Some protocols will fail anyway (e.g. POP3)

Bug: 2981433
Backport from: I82984e5912fc7fcb88e747815d0fe33cb36605e7

Change-Id: I49d5c13137e4f78b6fa0f9ce288c1a78ff028f88
2010-09-27 13:31:04 -07:00