diff options
author | Raman Tenneti <rtenneti@google.com> | 2019-10-01 15:16:52 -0700 |
---|---|---|
committer | Huizi Yang <yanghuiz@google.com> | 2019-10-08 13:05:07 -0700 |
commit | 11034d99fb55b1a4bf2ab9e52c315cc51a45389c (patch) | |
tree | 44c524dfffda4e70e7a1ab36d9fb724a52cd532a | |
parent | 3008c7edacf2ab672123ae74f1998e0ec385fb22 (diff) | |
download | UnifiedEmail-android-8.1.0_r81.tar.gz |
AOSP/UnifiedEmail - bug fix: do not allow composing message with hidden private data attachments - Switch intent filtering to be blacklist based rather than whitelist based.android-security-8.1.0_r93android-security-8.1.0_r92android-security-8.1.0_r91android-security-8.1.0_r90android-security-8.1.0_r89android-security-8.1.0_r88android-security-8.1.0_r87android-security-8.1.0_r86android-security-8.1.0_r85android-security-8.1.0_r84android-security-8.1.0_r83android-security-8.1.0_r82android-8.1.0_r81android-8.1.0_r80android-8.1.0_r79android-8.1.0_r78android-8.1.0_r77android-8.1.0_r76android-8.1.0_r75android-8.1.0_r74android-8.1.0_r73android-8.1.0_r72android-8.1.0_r71security-oc-mr1-releaseoreo-mr1-security-release
+ Make EXTRA_IN_REFERENCE_TO_MESSAGE_URI public.
Bug: 127320867
Test: manual - Ran the following tests on Pixel phone. Tested the email UI.
$ make -j 40
$ make Email -j
$ make UnifiedEmailTests -j
$ make EmailTests -j
-rw-r--r-- 1 rtenneti primarygroup 6356400 Oct 1 12:07 out/target/product/marlin/testcases/Email/arm64/Email.apk
-rw-r--r-- 1 rtenneti primarygroup 389599 Oct 1 12:11 out/target/product/marlin/testcases/EmailTests/arm64/EmailTests.apk
$ adb install -r -d -g out/target/product/marlin/testcases/Email/arm64/Email.apk
$ adb install -r -d -g out/target/product/marlin/testcases/EmailTests/arm64/EmailTests.apk
$ adb shell am instrument -w com.android.email.tests
Time: 2.739
OK (157 tests)
$ atest EmailTests
Summary
-------
EmailTests: Passed: 157, Failed: 0, Ignored: 0, Assumption Failed: 0
All tests passed!
Change-Id: I96273160e81f77f4746b79674129ee438440e724
(cherry picked from commit 5b6ce82b5e8718c1d3c641323216c0db19f25c23)
-rw-r--r-- | src/com/android/mail/compose/ComposeActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/mail/compose/ComposeActivity.java b/src/com/android/mail/compose/ComposeActivity.java index 644ded119..b4805f690 100644 --- a/src/com/android/mail/compose/ComposeActivity.java +++ b/src/com/android/mail/compose/ComposeActivity.java @@ -247,7 +247,7 @@ public class ComposeActivity extends AppCompatActivity private static final String EXTRA_IN_REFERENCE_TO_MESSAGE = "in-reference-to-message"; // If this is a reply/forward then this extra will hold a uri we must query // to get the original message. - protected static final String EXTRA_IN_REFERENCE_TO_MESSAGE_URI = "in-reference-to-message-uri"; + public static final String EXTRA_IN_REFERENCE_TO_MESSAGE_URI = "in-reference-to-message-uri"; // If this is an action to edit an existing draft message, this extra will hold the // draft message private static final String ORIGINAL_DRAFT_MESSAGE = "original-draft-message"; |