From 762e0f9a2e9945a8b8cf1c3c93e3b70af8201908 Mon Sep 17 00:00:00 2001 From: Nadav Bar Date: Thu, 6 Aug 2020 12:25:19 +0300 Subject: [PATCH] Fix SystemCaptionsManagerService to re-bind after a force stop This change also fixes a bug in AbstractMasterSystemService where following a "force stop", the per-user service was not updated if PACKAGE_RESTART_POLICY_REFRESH_EAGER was specified. These behavior resulted with getServiceComponentName returning null and the service not being restarted. Bug: 160735520 Bug: 160693548 Bug: 160644088 Change-Id: I2f66273bd90e9bb220f799d8ab3b024637b33c24 Test: Manually --- .../com/android/server/infra/AbstractMasterSystemService.java | 2 +- .../server/systemcaptions/SystemCaptionsManagerService.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/infra/AbstractMasterSystemService.java b/services/core/java/com/android/server/infra/AbstractMasterSystemService.java index 7bbcdaa2d4734..6672daa6f17ae 100644 --- a/services/core/java/com/android/server/infra/AbstractMasterSystemService.java +++ b/services/core/java/com/android/server/infra/AbstractMasterSystemService.java @@ -949,7 +949,7 @@ public abstract class AbstractMasterSystemService