Loading
Update ServiceRecord's appInfo on overlay changes
ApplicationInfo in ServiceRecord is rarely used, so the code used to not update them for runtime overlay changes and there were no known issues with that. Turns out, there's a specific case when it does matter: An app has a service that's auto-restarting, and an activity that starts the service. If any overlay changes happen after the service start, we never update the service record. Then, if the activity crashes, we restart just the service using it's (stale) application info, and it doesn't get the latest overlay paths. This change applies the new ApplicationInfo when OverlayManagerService sends an update also to all running services in the process Bug: 414686685 Test: manual with the CL attached to the bug Flag: EXEMPT bugfix Change-Id: I3475adb33fa30a7df672fc0c03d1a1031f99f047