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
Loading
Please register or sign in to comment