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

Skip to content
Commit 51c64c90 authored by Cole Faust's avatar Cole Faust
Browse files

Fix PermissionTest30#testRequestBothInSequence on automotive

In GrantPermissionsActivity#sendToSettings(GroupState), if the
settings activity exited with a null result, it will restore
the permission to the state before the settings screen was
opened. (Calling setUserSet() will re-save the permission)

Our AutoAppPermissionFragment was not setting a result for the
activity, so add that.

In addition, our AutoAppPermissionFragment belongs to the legacy
AppPermissionActivity, instead of the more modern
ManagePermissionsActivity. ManagePermissionsActivity will launch
AppPermissionsActivity and then finish, causing the result of
AppPermissionsActivity to be lost. Update ManagePermissionsActivity
to wait for the result of AppPermissionActivity, and then set that
as its own result as well.

Bug: 154947457
Test: make cts; cts-tradefed; run cts -m CtsPermission3TestCases -t android.permission3.cts.PermissionTest30#testRequestBothInSequence
Change-Id: I6ba2acbc76baabc4a3715e118b867444ba2f0e7f
parent 4c91c8d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment