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

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

Update ASM clearTask Logging

As part of go/activity-security, we introduced logging on finishActivity
in ag/19950589. This will be used to decide if we can block an activity
from finishing it's task if it is not on top of it's stack.

A case was missed - apps can also clearTask through
`appTask.finishAndRemoveTask()`, which follows a different code path.
To include this, and centralise the code, logging has been moved a level
down, and callerUid passed through where needed.

There are other callers as well, i.e from RecentTasks.java, but they
already enforce MANAGE_TASKS permission, so I've tried to minimise
callerUid having to be passed through from there for these other cases.

Bug: 246738504
Test: statsd_testdrive 495
Test: Manually reproduced scenario and checked logs

Change-Id: Ibc5b830217d6219cb8a0e620bf800c1ffa7a52a3
parent 55cac928
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