Insufficient ProcessRecord cleanup when persistent process is killed
When persistent process with Service restarts, ActivityManagerService does not reset ProcessRecord#hasClientActivites to false (because ProcessRecord of persistent process is continued using after killing). It disturbs updating LRU list in ActivityManagerService, and then, when new process calls ActivityManagerProxy#publishContentProviders, SecurityException happens because of no entry in the list. Bug: 13517358 Change-Id: I46b064f71a4f7025ade1bf117801352a7ab22e6a
This commit is contained in:
committed by
Takeshi Aimi
parent
d88d817498
commit
eff08c4ffe
@@ -12435,6 +12435,7 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
app.foregroundActivities = false;
|
||||
app.hasShownUi = false;
|
||||
app.hasAboveClient = false;
|
||||
app.hasClientActivities = false;
|
||||
|
||||
mServices.killServicesLocked(app, allowRestart);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user