Do not relaunch bg activities when application info changes
Update the configurations via ActivityTaskManager to prevent the activities being relaunched while in background. Instead, the activities will be relaunched after brought to front and being visible. This also prevents all activities in the system being relaunched at the same time. For framework resource updates, the global configuration will be updated. For individual package overlay changes, new asset sequence would be set to the activity's requested configurations to ensure the activity will be relaunch once visible. The requested asset sequence will be reset if its parent has a newer asset sequence. Bug: 185301309 Test: update app info via shell command while activity in background Test: atest ResourcesLoaderValuesTest Test: atest RoleManagerTest#requestRoleAndAllowThenIsRoleHolder Change-Id: Ic7f13b768fb575d6301f05f7fda71b15d1ccf312
Loading
Please register or sign in to comment