Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6c60d0ba authored by Hani Kazmi's avatar Hani Kazmi
Browse files

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
parent 6db555e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment