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

Commit eb0208bc authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

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
parent ca9279ee
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