Remove Persistent proccess without WTFing
Change-Id: Ia59abd019c1c70befa39b36325ba510ec3c6586b Fixes: 70403120 Test: manual
This commit is contained in:
@@ -3620,12 +3620,16 @@ public class ActivityManagerService extends IActivityManager.Stub
|
||||
int lrui = mLruProcesses.lastIndexOf(app);
|
||||
if (lrui >= 0) {
|
||||
if (!app.killed) {
|
||||
Slog.wtfStack(TAG, "Removing process that hasn't been killed: " + app);
|
||||
if (app.pid > 0) {
|
||||
killProcessQuiet(app.pid);
|
||||
killProcessGroup(app.uid, app.pid);
|
||||
if (app.persistent) {
|
||||
Slog.w(TAG, "Removing persistent process that hasn't been killed: " + app);
|
||||
} else {
|
||||
app.pendingStart = false;
|
||||
Slog.wtfStack(TAG, "Removing process that hasn't been killed: " + app);
|
||||
if (app.pid > 0) {
|
||||
killProcessQuiet(app.pid);
|
||||
killProcessGroup(app.uid, app.pid);
|
||||
} else {
|
||||
app.pendingStart = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (lrui <= mLruProcessActivityStart) {
|
||||
|
||||
Reference in New Issue
Block a user