*** Reason for rollback ***
Rollback global lock because bug (now fixed) was not caused by
threading/concurrency.
*** Original change description ***
Evidence from failures, and inspection of source, leads me to believe
that SharedPreferences has some non-thread-safe paths. As a quick,
brute-force workaround, I'm putting a global lock around our use of it.
This is a bit inefficient, but cases of multiple threads writing to it
should be very rare.
Note, we don't have an explicit test for this (I will think about
finding a way to write one), but the evidence of this failure is that
after some amount of activity in the Email app, we see corrup
... description truncated by g4 rollback ...
Automated import of CL 149140
*** Reason for rollback ***
Problem found (bug in ICU encoder/decoder) so instrumentation no
longer required here.
*** Original change description ***
Heavily-instrumented Account.java that's looking for the precise moment
when an Account string gets corrupted. Looks for bad base64 strings
and bad store Uri's. Logs the error, and (optionally/disabled) throws
an exception (good for debugging).
BUG=1822859
Automated import of CL 149088
Merge commit '6807fd1d478b48843c5d0698dc59e33bf3f1d3b0'
* commit '6807fd1d478b48843c5d0698dc59e33bf3f1d3b0':
AI 149059: Manually merge CL 148988 to fix "Not to revert SEEN flag if POP, and
Merge commit '51801db8e9e07865c87296bfccea7964e4c0ad99'
* commit '51801db8e9e07865c87296bfccea7964e4c0ad99':
AI 149020: Manually merge CLs 148814, 148818 which fix IMAP response parsing to be
Merge commit '394be87968c4716653251351b24c85f3f01d8799'
* commit '394be87968c4716653251351b24c85f3f01d8799':
AI 148488: Heavily-instrumented Account.java that's looking for the precise moment
when an Account string gets corrupted. Looks for bad base64 strings
and bad store Uri's. Logs the error, and (optionally/disabled) throws
an exception (good for debugging).
BUG=1822859
Automated import of CL 148488
Merge commit '1eba4b57f3846c8605654254cd6be97d1dc7d318'
* commit '1eba4b57f3846c8605654254cd6be97d1dc7d318':
AI 148485: Clean up the scrollview layout so the button bar is always on the
bottom of the screen.
Also removed an extra ':' in a string on the screen (none of the other
label strings have ':').
BUG=1740626
Automated import of CL 148485
Merge commit '3d267690a3295e2d1e6df8fb77cb92625f010480'
* commit '3d267690a3295e2d1e6df8fb77cb92625f010480':
AI 148457: Allow exchange accounts to be set up without an empty domain
Merge commit '6aaffded0bcbcf3cb02dabf35eb7fdcace420fe2'
* commit '6aaffded0bcbcf3cb02dabf35eb7fdcace420fe2':
AI 148382: Check cursors in LocalStore so we avoid errors when the folder itself
Merge commit '8cbbcb14c2d49c6d7eb9fb2d141ffd7f3d2889a2'
* commit '8cbbcb14c2d49c6d7eb9fb2d141ffd7f3d2889a2':
AI 148378: Allow store to create BinaryTempFileBody from a preexisting file
READ_PHONE_STATE so a push mode service can hold an active
network connection, monitor roaming status, etc. (2) Refresh
push mode status on Refresh(), not just on Check, so UI
(settings) changes, which call refresh(), propagate immediately
to the stores.
BUG=1776149
Automated import of CL 148377
for new accounts to "1 day". (2) Remove "all" from the list
of available lookback window sizes, to prevent runaway
during our simplistic sync model.
BUG=1789913
Automated import of CL 148376
Merge commit 'bf85aa4a811994b9eb70a108fd3005edb2ab290a'
* commit 'bf85aa4a811994b9eb70a108fd3005edb2ab290a':
AI 148375: Explicitly remove deleted accounts from the Store cache. This resolves
Merge commit 'de312d60e986060d847b4c0829e80b5eb1725683'
* commit 'de312d60e986060d847b4c0829e80b5eb1725683':
AI 148334: Provide a new entry in MessageUpdateCallbacks by which the store can
Merge commit '9fca1305f7a607afb5e89f52b4bb8d0288b8451e'
* commit '9fca1305f7a607afb5e89f52b4bb8d0288b8451e':
AI 148333: Evidence from failures, and inspection of source, leads me to believe
indicate that the message of interest no longer exists. This is used
in remoteFolder.copyMessages, for example because the message was
already deleted by another client.
BUG=1807499
Automated import of CL 148334
that SharedPreferences has some non-thread-safe paths. As a quick,
brute-force workaround, I'm putting a global lock around our use of it.
This is a bit inefficient, but cases of multiple threads writing to it
should be very rare.
Note, we don't have an explicit test for this (I will think about
finding a way to write one), but the evidence of this failure is that
after some amount of activity in the Email app, we see corruption in
the string mSenderUri.
BUG=1822859
Automated import of CL 148333
Merge commit '51249c25c5a1ed448e1889ee37786e02cbe3063d'
* commit '51249c25c5a1ed448e1889ee37786e02cbe3063d':
AI 148300: Reduce memory waste in getTextFromPart(), and improve error handling.