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

Commit c1b71329 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi Committed by Android (Google) Code Review
Browse files

Revert "Update ServiceRecord's appInfo on overlay changes"

This reverts commit eb0208bc.

Reason for revert: this breaks shareduid services running in a different package's process

Bug: 414686685
Change-Id: Ie78dbeb65c3d173845a4c37264fdcfdfedbba92d
parent eb0208bc
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -5245,14 +5245,6 @@ public final class ProcessList {
                                PlatformCompatCache.getInstance()
                                        .onApplicationInfoChanged(ai);
                            }
                            // Service fields rarely matter, but if we're restarting an app's
                            // service when it has no running activities, we're using these cached
                            // ones, and they have to be up to date.
                            for (int j = app.mServices.numberOfRunningServices() - 1; j >= 0; j--) {
                                final ServiceRecord sr = app.mServices.getRunningServiceAt(j);
                                sr.appInfo = ai;
                                sr.serviceInfo.applicationInfo = ai;
                            }
                            app.getThread().scheduleApplicationInfoChanged(ai);
                            targetProcesses.add(app.getWindowProcessController());
                        }