Commit Graph

1064 Commits

Author SHA1 Message Date
Mihai Preda
989552c107 Move parseDateTimeToMillis() to com.android.email.Utility. 2010-03-04 12:45:37 +01:00
Andrew Stadler
a3cfdd2f3c Merge "Continuing work on account migration" 2010-03-03 22:33:59 -08:00
Andrew Stadler
9f73249031 Continuing work on account migration
* Prune all folders, messages & attachments that won't migrate
* Clean up SSL/TLS values for better connection results & security
* Move account setup lookup code to AccountSettingsUtils to share it
* Cleanup config/auto-rotation settings to prevent relaunch of
  auto-discover or account check (from exchange).
* A couple of other very small fixes

Bug: 2065528
2010-03-03 22:19:41 -08:00
Makoto Onuki
652be6fb3d MessageList: Go to Welcome if account not found.
If the account specified with an Intent doesn't exist, show the Welcome
activity instead, which will navigate the user to the appropriate activity.
(e.g. account list if there're more than one account)

Bug 2479609
2010-03-03 17:07:29 -08:00
Makoto Onuki
678ab2c780 Merge "Store UUID instead of _id in desktop shortcuts." 2010-03-03 15:46:37 -08:00
Makoto Onuki
e37881aac5 Store UUID instead of _id in desktop shortcuts.
- Because AccountBackupRestore won't preserve _id.
- Now MessageList accepts both Donut(1.6)-style URIs and Eclair(2.0-2.1)-style
  URIs.

Bug 2479609
2010-03-03 15:41:10 -08:00
Marc Blank
bf6f237e21 Merge "Harden SyncManager against CalendarProvider query results" 2010-03-03 10:48:12 -08:00
Marc Blank
5bf193844c Harden SyncManager against CalendarProvider query results
* Unlike EmailProvider, CalendarProvider can return null from queries.
* Put checks for null around code using the result of query to
  prevent NPE's

Change-Id: Ia9e8e2f44406dce07dcb2ffa40c22933ec2d4f07
2010-03-03 10:17:57 -08:00
Mihai Preda
a597b59f46 MessageView: invoke calendar for EAS meeting invitation. 2010-03-03 13:42:24 +01:00
Marc Blank
4476b2a1da Fix #2478711
* We needed to check that clientId wasn't null before sending it back
  to the server
* Exceptions don't have a clientId

Bug: 2478711
Change-Id: Ic0d42bb699605a7bb77535b050a4d03b4b6b8b09
2010-03-02 14:54:11 -08:00
Marc Blank
d05cc9196a Merge "Add logging when an NPE is imminent when writing WBXML data" 2010-03-02 14:23:11 -08:00
Marc Blank
1e474a41ba Add logging when an NPE is imminent when writing WBXML data
* We want an NPE to be thrown, since we need to locate/fix errors
  of this kind.
* Add logging to help isolate the error

Change-Id: I0f4336b42cbdb88c72459bdeca9c9fc236d9299f
2010-03-02 14:21:32 -08:00
Marc Blank
4577f71f76 Refine meeting invitation emails; include VTIMEZONE
* VTIMEZONE blocks must be sent in our ics files for meeting
  invitations that are recurring, as the originator's time zone
  is critical in making attendee's calendars accurate
* Created a utility to convert TimeZone to VTIMEZONE data; the
  utility successfully generates data (including recurrence rules)
  for the entire tzinfo database (the source of TimeZone).
* Updated our ics files to include VTIMEZONE when appropriate and
  send DTSTART/DTEND in local time in that case
* Wrote some unit tests, but more are needed

Change-Id: Iccbdd00cd3b2be2da058b344ebacd17ed6fb0e3d
2010-03-02 11:38:01 -08:00
Mihai Preda
777dbe5999 MessageView: use WebView setBlockNetworkLoads().
Instead of setBlockNetworkImage, for security reasons.
Bug 2440315.
2010-03-02 15:13:18 +01:00
Marc Blank
0ed64fbb3d Fix #2450322 (ANR's in email)
* My Calendar observer registration code was storing the wrong id
  in the hash map.  Because of this, the code could be called again
  and again, generating lots of extraneous queries and generally
  creating a lot of havoc, including ANR's

Bug: 2450322
Change-Id: I03db8156ee99a0c7243a9188558dffc6a843a65a
2010-03-01 20:50:05 -08:00
Marc Blank
29c38d2c84 Send cancellation email when user-created event is deleted
Bug: 2465496
Change-Id: I49bf9951e816a4500b7622cbca84fb75edfdb76c
2010-03-01 18:58:47 -08:00
Marc Blank
ec2f181b2c Fix build break (Calendar field changed name)
Change-Id: I9532c459f3cf624fa88269370fa36d191481e500
2010-03-01 16:56:40 -08:00
Makoto Onuki
726a9fcef3 Ignore FETCH responses that don't have UID.
We've observed that the secure.emailsrvr.com email server returns an excess
FETCH response for a UID FETCH command.  Excess responses don't have the
UID field, even though we request, which led the response parser to crash.

This patch fixes it by making the parser ignore response lines that don't
have UID.

Bug: 2441065
2010-03-01 16:00:05 -08:00
Makoto Onuki
642219502c Merge "Launch Calendar app when notification is touched." 2010-03-01 11:09:59 -08:00
Makoto Onuki
49491da570 Launch Calendar app when notification is touched.
Launch Calendar app when the "Exchange calendar added" notification is touched.

Bug 2428718
2010-03-01 11:06:42 -08:00
Marc Blank
361c2ed0eb Merge "Stop calendar/contacts sync in progress when sync setting is turned off" 2010-03-01 11:06:21 -08:00
Marc Blank
f8b45d934b Stop calendar/contacts sync in progress when sync setting is turned off
* Syncs in progress weren't checking the getSyncAutomatically setting in
  the account; therefore, a long sync would continue running even though the
  user unchecked the "Sync Calendar/Contacts" box in the settings
* Make the adapters check the flag each time through its sync loop (which
  is currently 5 items); this should cause in-progress syncs to stop within
  a few seconds

Bug: 2185319
Change-Id: Ie181f6de4219ecf27fff58ed59a277ae285622c5
2010-03-01 11:00:20 -08:00
Makoto Onuki
82ad035422 Merge "Remove TODO, now that SYNC_OBSERVER_TYPE_SETTINGS is in SDK" 2010-03-01 09:43:51 -08:00
Marc Blank
3e69a168b3 Fix meeting invitation email parsing error
Change-Id: Ieaf786f6e466ee57404c6e32ab11c31e35ccc340
2010-02-28 18:52:21 -08:00
Marc Blank
63a411e9fa Merge "Fix #2474554 (After meeting policy req's, no sync)" 2010-02-28 11:13:40 -08:00
Marc Blank
0d0f094de8 Fix #2474554 (After meeting policy req's, no sync)
* We weren't retrying the initial account sync after policies are
  successfully enabled.  This results in failure to sync, as we
  go right into a ping loop.
* Retry account sync after provisioning is first successful

Bug: 2474554
Change-Id: I20165a5941626b690710f82088d8d861679084b2
2010-02-28 11:06:21 -08:00
Dianne Hackborn
6d0016229a Move DeviceAdmin APIs to android.app.admin. 2010-02-26 23:31:37 -08:00
Makoto Onuki
97c06c9131 Remove TODO, now that SYNC_OBSERVER_TYPE_SETTINGS is in SDK 2010-02-26 14:00:26 -08:00
Makoto Onuki
c18f8f615f Enable calendar sync for Exchange accounts when upgrading.
On the first boot after upgrade from Eclair, enable calendar sync for all the
existing Exchange accounts, if any, and show notification.

Note on this version, nothing happens when you click on the "Calendar added"
notification.  We're waiting for an API (action or something) to launch
calendar.

Bug 2428718
2010-02-26 13:28:59 -08:00
Mihai Preda
0574a37b4e Merge "MessageView: EAS calendar meeting invite answer buttons." 2010-02-26 12:34:21 -08:00
Mihai Preda
794f29176d MessageView: EAS calendar meeting invite answer buttons. 2010-02-26 21:12:24 +01:00
Marc Blank
01c91c307e Merge "Fix # 2467153 (Handle change in attendee status from Calendar UI)" 2010-02-26 11:20:01 -08:00
Marc Blank
4c6683f152 Fix # 2467153 (Handle change in attendee status from Calendar UI)
* Fill in this missing piece of meeting related functionality.
* We keep track of the last synced attendee status in the newly
  created syncAdapterData event column
* When this changes, we (in addition to syncing up the change)
  send an email to the organizer (unless we're the organizer, of
  course)

Bug: 2467153
Change-Id: I6332fb6d0839e33d4c54bd4358ee0f154bff6612
2010-02-26 09:16:47 -08:00
Andrew Stadler
cb95fbe135 Send CAPABILITY to all IMAP servers
* Send CAPABILITY to all servers, not just when we check TLS
* Feed capabilities into IMAP ID generation
* Unit tests updated

Bug: 2332183
2010-02-25 22:48:11 -08:00
Marc Blank
1270218f32 Merge "Fix some nasty bugs w/ Exchange calendar upsync" 2010-02-25 11:59:39 -08:00
Marc Blank
481ad6a3c5 Fix some nasty bugs w/ Exchange calendar upsync
* In #2469254, uploaded new events were rejected because the time zone was
  sent after dates; this doesn't matter to Exchange 2007, but it apparently
  does to Exchange 2003
* Also, I noticed that upsync was upsyncing all new events, regardless of
  whether the event belonged to the Calendar being synced!  So this is
  fixed as well.

Bug: 2469254
Change-Id: I651d591cf26e00b414f6da19897fddcdb840c97c
2010-02-25 11:59:04 -08:00
Dianne Hackborn
4c868ce21f Update to reflect android-common no longer in framework. 2010-02-25 10:57:59 -08:00
Marc Blank
d4dc57972d Fix #2469569 (Broken EAS calendar downsync)
* Category parsing switch statement was missing a break;

Bug: 2469569
Change-Id: If815300a2ef3824f837f5fa41f55b9421cac8d9b
2010-02-24 18:54:35 -08:00
Marc Blank
cdf9dbfa28 Add logging for persistent wakelock behavior
* Temporarily add email logging for wakelock hold requests

Change-Id: I0233248c34138b3af63abe75e97171da3f4f0031
2010-02-24 15:56:43 -08:00
Marc Blank
89be77eaea Send replies to exchange meeting requests
* When the user selects accept/decline/tentative in MessageView, we now send
  an email to the organizer, with an iCalendar attachment indicating the reply
* Added a unit test for the reply case, but more tests to be added to handle
  other circumstances

Change-Id: Iff799d88a92b6546735bf4965b22febf3a82b56f
2010-02-24 15:13:57 -08:00
Marc Blank
438dfe64ec Fix visibility of meeting invite controls
* Was checking for any meeting related email
* Changed to look specifically for incoming meeting invites
* Bug noticed during debugging

Change-Id: I8f43d7a506939dbfc0504f96b249e5c17107bf47
2010-02-23 14:44:43 -08:00
Marc Blank
d12bb138b0 Merge "Fix bugs in SimpleIcsWriter" 2010-02-23 14:26:41 -08:00
Marc Blank
1f4b1b3bd1 Fix bugs in SimpleIcsWriter
* Guilty of failing to run the unit tests
* Fix the (obvious) issues

Change-Id: If12e02facce768ca2d410320bea68a2ca2c116c6
2010-02-23 14:25:18 -08:00
Makoto Onuki
ec88f04dee Merge "Patch for issue 2363606: Make EAS sync window default 3 days." 2010-02-23 12:29:42 -08:00
Makoto Onuki
6854a4f24a Patch for issue 2363606: Make EAS sync window default 3 days. 2010-02-23 12:25:25 -08:00
Marc Blank
3b97e1769a Merge "Fix #2443881 (Don't display User name field for EAS account)" 2010-02-23 11:40:15 -08:00
Marc Blank
18d7222359 Send meeting invitations for new/updated Exchange events
* Wrote utility to create an ics file (iCalendar) based on a
  CalendarProvider Event.  This is a good first pass, but we need
  to consider whether to include alarms, etc.
* Use aforementioned utility and new convenience method to send
  meeting invitations to attendees of newly created meetings (events)
  when they are uploaded to the server via the CalendarSyncAdapter
* Overall, attempted to modify existing provider and rfc822 output
  code as little as possible.  Rfc822Output is actually very limited
  in its capabilities and should be made more robust in future

Change-Id: Ie20b9137df56dc414de6737d05fa40ec9cdf47e0
2010-02-23 11:37:18 -08:00
Andrew Stadler
5afa187791 Create a PackedString utility class
* We can use this for meeting request information which will start out with
  one or two pieces of information, but might grow in the future.
* Binary compatible with Address.pack() format, so we can eventually
  combine code.
2010-02-22 22:34:45 -08:00
Makoto Onuki
0faa9881dc Merge "Don't use hidden APIs" 2010-02-22 15:54:44 -08:00
Andy Stadler
35e5885e9e Merge "First part of Exchange meeting request/reply implementation" 2010-02-22 12:59:05 -08:00
Andrew Stadler
3aaba9eb87 First part of Exchange meeting request/reply implementation
* Added two columns to Attachment in EmailProvider
  content: content that is written directly as an attachment
  suppressDisposition: to suppress the content-disposition header
  All meeting invitation emails use these two columns; the first
  for ics attachment data (which is quite small, rarely over 1k),
  and the second to indicate NOT sending the content-disposition
  header; without this, Exchange will consider the ics as an
  attachment rather than an iMIP style message (rfc2447)
* Modified tests to include these columns; added upgrade code for
  new database version
* New columns and code are designed to be usable outside Exchange,
  although there are no other clients of the code at this point.
* Modified Rfc822Output to use the content field, if present, in
  lieu of retrieving attachment data via URL; added support for
  suppressing the Content-Disposition header
2010-02-22 12:57:33 -08:00
Makoto Onuki
8068c99945 Don't use hidden APIs
- The entire android.pim package is hidden.
  Use java.text.ParseException instead of android.pim.DateException.

- TelephonyManager.getDefault() is hidden.
  Use Context.getSystemService() instead.

- Use newly added Base64 in the framework.

Bug 2226160
2010-02-22 12:49:52 -08:00
Makoto Onuki
988981a9ad Follow up to I07496942.
- Now that reconcileAccountsWithAccountManager() is static, we don't need to
  instantiate SyncManager.

- Don't need to set mResolver.  reconcileAccountsWithAccountManager() doesn't
  use it.
2010-02-22 11:09:08 -08:00
Marc Blank
5b46171b83 Fix #2443881 (Don't display User name field for EAS account)
* Make the field and label GONE for EAS accounts
* Enable the "Done" button at all times for EAS accounts
* Add test case for this, and clean up bad formatting in tests

Bug: 2443881
Change-Id: Ic80b001e443fa37b7cfeb810b1f31edf22b065b9
2010-02-20 15:05:39 -08:00
Marc Blank
c98a613153 Merge "Fix #2457665 (Guests don't appear in Exchange events)" 2010-02-19 16:59:11 -08:00
Marc Blank
15036ca062 Fix #2457665 (Guests don't appear in Exchange events)
* The "hasAttendeeData" column needs to be set to 1 for all Exchange
  events (the case in which the value would be zero doesn't pertain
  to Exchange events)
* Also, move code for organizer attendee to the proper place

Bug: 2457665
Change-Id: I3260f883135bb222ce475ccbabf5ba151ab7f557
2010-02-19 16:58:09 -08:00
Andrew Stadler
074969426b Minor code-review cleanups to previous CL
Related: de7d21c10a
Bug: 2454870
2010-02-19 16:24:57 -08:00
Andrew Stadler
de7d21c10a Fix various problems with SyncManagerAccountTests
1.  Destructive of existing user accounts in device
2.  Can get confused (miscounting) due to existing user accounts
3.  Cleaned up use of context and mock context
4.  Disallow account backup and account security updates when testing
5.  Make account manager removeAccount() calls blocking, so the test
    does not proceed until the accounts are really deleted.

Bug: 2454870
2010-02-19 15:50:04 -08:00
Marc Blank
d3fba0a2d7 Fix #2451630 (No calendar after upgrading Eclair->Froyo)
* Initialization of CalendarProvider Calendar was being done at
  account creation time, but Eclair accounts won't have had this
  done.
* Move Calendar creation code into CalendarSyncAdapter where it
  will be created before the first sync.

Bug: 2451630
Change-Id: I74c669d99f4c8aae4c5847f5cb9b0ca7f44929e2
2010-02-18 20:26:32 -08:00
satok
263f9bfcfb Tiny fix of updateListPosition in MessageList 2010-02-18 14:04:11 +09:00
Satoshi Kataoka
13253154c2 Merge "Show hidden message when the pop-up menu is shown." 2010-02-17 18:10:44 -08:00
Marc Blank
0f88306db5 Merge "Make sure we always send an attendee name w/ email address" 2010-02-17 16:04:28 -08:00
Marc Blank
476ee8f790 Make sure we always send an attendee name w/ email address
* EAS requires an attendee name in addition to an address in upsynced
  Calendar items.

Change-Id: I9384dcba6fd2fff8be960e18297ef7f641e0abe7
2010-02-17 16:03:59 -08:00
Dianne Hackborn
4ae83c58b3 Fix issue #2420412: API review: DeviceAdmin API changes 2010-02-17 10:30:25 -08:00
Marc Blank
0f17557c46 Fix bug with meeting responses
* We were sending the wrong collectionId to the server, resulting
  in a failure (status == 2)

Change-Id: I02ef4039a4ecfbc54ab5cdac2c36e39aea5d7170
2010-02-17 08:53:46 -08:00
Mihai Preda
1575e7860d MessageCompose: fix delete quoted on reply/forward for EAS.
Also fix display of quoted html text for a draft (Exchange 2007).

Bug 2363249
Bug 2444496
2010-02-17 15:28:25 +01:00
satok
820d4830cc Show hidden message when the pop-up menu is shown.
Bug: 2239403

- added animation listener
- change the position of a message when the message is hidden by the pop-up menu.
2010-02-17 16:46:31 +09:00
Andy Stadler
5cb0ccc25b Merge "Placeholder invite-accept UI" 2010-02-16 22:05:55 -08:00
Andrew Stadler
643ca675b6 Placeholder invite-accept UI
This is a lightweight placeholder so calendar functionality can be
tested.  Simply presents a message about the invitation, and a set of
yes/maybe/no buttons to click.

The UI is shown whenever the message appears to contain an invite.

There are many elements left to be done here:
TODO: response code (EAS protocol) doesn't seem to work
TODO: use real assets & design
TODO: provide a click-link into calendar event
TODO: show calendar icon in messagelist too
TODO: (if possible) persist user's response in button state?
2010-02-16 22:02:50 -08:00
Makoto Onuki
ea1eb7a231 Merge "Use SSLCertificateSocketFactory to generate "insecure" ssl socket." 2010-02-16 18:19:47 -08:00
Makoto Onuki
c5912e4920 Use SSLCertificateSocketFactory to generate "insecure" ssl socket.
Use SSLCertificateSocketFactory.getDefault() to get an SSLSocketFactory
which performs SSL certificate checks, and getInsecure() to get one
which doesn't (for "accept all certificates").

Bug 2226160
2010-02-16 17:23:20 -08:00
Andrew Stadler
af55e3e436 Respond to loss of device admin status
If the user revokes device admin status, reset our internal state and
the state of any accounts that might have been depending on it.  This
halts syncing immediately and rewinds the security/provisioning state
of any such accounts to a known state (as if the account had just been
created.)

Bug: 2387961
2010-02-16 14:33:08 -08:00
Marc Blank
4284bc07fb Fix #2321966 (handle EAS version upgrade)
* Add code to recheck protocol version at least once a day

Bug: 2321966
Change-Id: I938a23e1330b7ccfc2149c2988b53462f6a9d7d1
2010-02-16 10:20:38 -08:00
Marc Blank
70859ecb4e Merge "Add meetingInfo column to Message; use for meeting invites" 2010-02-16 10:19:29 -08:00
Marc Blank
4006e5fc22 Add meetingInfo column to Message; use for meeting invites
* Added a meetingInfo column to the Message database
* When a meeting invite is received, the start time is stored here
  in ms from start of epoch.  Note that this field is defined to be
  a String, for extensibility
* Update ProviderTests

Change-Id: If44892d27ccc5ebdc1f8667befafb8b8a27a2cf4
2010-02-16 10:18:33 -08:00
Doug Zongker
33c972e0c6 use the framework Base64 instead of android-common
Change-Id: Ib4f75f66fe8acb1bb5de614bb10e8c938b1d27ef
2010-02-16 09:10:18 -08:00
Marc Blank
d0377b8bb3 Merge "Add support for Exchange 2003 provisioning" 2010-02-15 19:47:42 -08:00
Marc Blank
ea0aa9343e Add support for Exchange 2003 provisioning
* Provisioning for Exchange 2003 and Exchange 2007 now supported
* Added end-to-end test of Exchange 2003 provisioning parser

Change-Id: I1f86f2909351a8220b963551cd33fecdf59a7e26
2010-02-15 19:46:40 -08:00
Satoshi Kataoka
63647d7870 Merge "Make "Message deleted" be plural" 2010-02-15 18:06:24 -08:00
Marc Blank
cf7581c51c Add support for UNTIL in recurrences
Change-Id: I983e1bcb209e794b462ec43efaccefe95bf9bd9d
2010-02-15 13:48:57 -08:00
satok
dffe2f486d Make "Message deleted" be plural
Bug: 2264751
2010-02-15 15:31:30 +09:00
Satoshi Kataoka
c1cea617cc Merge "Add Signature to Email Composer" 2010-02-13 18:44:36 -08:00
Marc Blank
672ffc0000 Merge "Handle calendar sync state changes by observing Calendars; cleanup" 2010-02-13 13:00:21 -08:00
Marc Blank
694257cb7e Handle calendar sync state changes by observing Calendars; cleanup
* Use a content observer to detect changes in Calendars; we use this to
  determine whether or not sync has been turned off.  If sync is turned
  off, all events will be deleted, so we need to reset the sync key
* Make sure that all code working on Contacts also now works on Calendar
  (push, etc.)
* Remove some old crufty logging and out-of-date comments
* Addresses 2433061

Bug: 2433061
Change-Id: I6299168903fcce9bf820b72b5f6bb157d9169653
2010-02-13 12:58:56 -08:00
satok
2a41aa538f Add Signature to Email Composer
Bug: 1323618

- Add signature to the message
- Set selection just after the message
- Add tests for signature
2010-02-14 00:41:48 +09:00
Jeff Hamilton
5f32e2d31f Don't use hard coded package names.
Change-Id: Id65967a87afa969f5410f4fdee058d450776a32e
2010-02-13 00:21:46 -06:00
Doug Zongker
1a67f06829 use platform common Base64InputStream
Change-Id: Iebdaf61cd2183c20362052ec39122bf42b23c7b9
2010-02-12 10:03:49 -08:00
Doug Zongker
ba714999f2 finish replacing Email's base64 implementation with android-common
Change-Id: I19adbbb884311d70073e9f7a961aa6808ac0dfb4
2010-02-11 14:47:04 -08:00
Mihai Preda
b052885ea3 Email: husky title for MessageList & MailboxList.
Bug: 2419716
2010-02-11 17:59:00 +01:00
Andrew Stadler
842ac04828 Legacy account migration
* Create new activity to encapsulate account upgrade
* Populate it with a list of legacy accounts, and progress bars for each
* Sidestep Welcome when there are legacy accounts to convert
* Super lightweight account migration:
  - Account login info only
  - no folders, messages, or attachments
* Scrub out old data
* Return to Welcome screen

As noted, the copies working (useable) POP & IMAP accounts, but does
not try to deal with folders, messages, or attachments.

Bug: 2065528
2010-02-10 23:18:19 -08:00
Marc Blank
a5b8b084ff Fix #2228604
* Fix anouther in a series of Exceptions that can occur if SyncManager
  is shut down abnormally.  These tend to happen runnings tests, and
  nowhere else.

Bug: 2228604
Change-Id: I064f11017431c1f1a73e8040dbc174f5ba03d7de
2010-02-10 17:59:04 -08:00
Marc Blank
04a60bb826 Merge "Don't use /sdcard when creating Exchange logging" 2010-02-10 15:52:54 -08:00
Marc Blank
00eb422a3e Don't use /sdcard when creating Exchange logging
* Per san, use Environment.getExternalStorageDirectory() instead

Change-Id: Ia7750cca00397734567e03d889e7eb68ac4d9da7
2010-02-10 11:37:07 -08:00
Andy Stadler
ee7ea73eae Merge "Force security activation after new account create" 2010-02-10 10:49:28 -08:00
Marc Blank
103de0876f Fix ordering error in processing a provision request
* After receiving a provision response from the server, first check
  for a remote wipe command, as this should always take precendence
* After that, see if the requested policies are active, and if so,
  acknowledge them to the server
* Otherwise, indicate that we are blocked due to a security failure

Change-Id: Ie70fae18772f4e3161cf72132982e429c6548e48
2010-02-10 09:40:47 -08:00
Marc Blank
673169fac9 Release security holds based on flags; implement remote wipe
* When the UI indicates that security policies for a particular
  account are now in force and releases the security hold (a bit
  in the Account flags), we release any syncs that had been
  waiting due to security errors
* Clean up code related to sync holds
* Add unit test for sync hold release
* Add support for server-directed remote wipe

Change-Id: I6209f75e4b57c850ae1ac27f407630c9c740514f
2010-02-10 09:30:00 -08:00
Marc Blank
4ef6c2b788 Add better comment to calendar color code
Change-Id: Ic4703a98826319031f356bed6da810affe8c76c8
2010-02-10 09:18:36 -08:00
Marc Blank
fcf41c4d9e Fix #2432959 (Exchange events appear transparent in Calendar)
* Forgot to add alpha value to calendar color after retrieving
  from the color array

Bug: 2432959
Change-Id: I58710a550b374443f39c0ba7acdea9792f1382db
2010-02-09 22:01:42 -08:00
Andrew Stadler
d71d0b223a Force security activation after new account create
On new accounts, we can accelerate the process of setting up security
by explicitly checking (at the end of the security process).  The user
is not required to "answer" the asynchronous notification.

This is an imperfect solution, as a slow initial sync could leave the
user in a non-synced Inbox (with a notification waiting for them), but
we can come back to this after we evaluate real-world performance.

Bug: 2387961
2010-02-09 17:24:55 -08:00
Andrew Stadler
50d1610c43 Relax device admin policies when accounts deleted
If an account is deleted, immediately recompute the aggregate
security policy, and apply it immediately.

When applying policies, handle "no policy" case by releasing device admin
status entirely.
2010-02-09 11:01:01 -08:00