diff options
| author | 2023-02-20 17:28:57 +0000 | |
|---|---|---|
| committer | 2023-02-24 15:19:59 +0000 | |
| commit | edb6afcae72509db63c0f02e7d78409b8196b9d6 (patch) | |
| tree | 9ae7d73828477169829e73f30ca69c415fc51f12 /libs/androidfw/StringPool.cpp | |
| parent | 4687a546e18ba8a35791674275c257b31f5b8b59 (diff) | |
ASM - Use finishing instead of isState() and more logging
The following changes are added for go/activity-security:
1. Use `finishing` rather than `isState(FINISHING)` for detecting
finishing activities. isState does not always return true if an
activity finishes and the one below it immediately starts another.
2. Update toasts to be more succinct as they are limited to two lines.
Change their duration to be longer so they are easier to read.
3. Log ASM activity if toasts are enabled, regardless of enforcement.
4. Log more information about the task environment.
Test: atest ActivitySecurityModelTest ActivitySecurityModelEmbeddingTest
BackgroundActivityLaunchTest
Bug: 269253404, 248045984
Change-Id: Ifd72b9b9762a654e5581c3861115420c4a02a4c6
(cherry picked from commit 6c60d0ba151715e11a6be5e7f3764e7ab342eb32)
Merged-In: Ifd72b9b9762a654e5581c3861115420c4a02a4c6
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions