Skip to content
Commit c3e66d0d authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Do not ask NEW_TASK flag

When starting a app targeting pre-M for the first time we show the permission
review dialog before going to the actual activity.

I had to add the FLAG_ACTIVITY_MULTIPLE_TASK as otherwise other
permisison controller activities might get reused which is not
desireable.

I did add NEW_TASK, but this was wrong. Forcing a NEW_TASK means that
the result of the opened activity will not be given to the original
caller. This is an API break.

Now I add the FLAG_ACTIVITY_MULTIPLE_TASK only when needed.

There are deeper underlying issues with adding
FLAG_ACTIVITY_MULTIPLE_TASK which will be addressed later in 123541623.

Change-Id: I79564a38fdbc884ea735da6f7899972df83adedb
Fixes: 123707909
Test: - atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
parent 8c83a07c
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