diff options
| -rw-r--r-- | core/java/com/android/internal/infra/AbstractRemoteService.java | 5 | ||||
| -rw-r--r-- | services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/core/java/com/android/internal/infra/AbstractRemoteService.java b/core/java/com/android/internal/infra/AbstractRemoteService.java index f4c904dc750e..7270302f04bb 100644 --- a/core/java/com/android/internal/infra/AbstractRemoteService.java +++ b/core/java/com/android/internal/infra/AbstractRemoteService.java @@ -480,6 +480,11 @@ public abstract class AbstractRemoteService<S extends AbstractRemoteService<S, I return mDestroyed; } + @Override + public String toString() { + return getClass().getSimpleName() + "[" + mComponentName + "]"; + } + /** * Base class for the requests serviced by the remote service. * diff --git a/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java b/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java index 9185cb6c5346..4c21b4fbadd7 100644 --- a/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java +++ b/services/contentcapture/java/com/android/server/contentcapture/ContentCapturePerUserService.java @@ -175,10 +175,8 @@ final class ContentCapturePerUserService @Override // from ContentCaptureServiceCallbacks public void onServiceDied(@NonNull RemoteContentCaptureService service) { - if (mMaster.debug) Slog.d(TAG, "remote service died: " + service); - synchronized (mLock) { - removeSelfFromCacheLocked(); - } + // Don't do anything; eventually the system will bind to it again... + Slog.w(TAG, "remote service died: " + service); } // TODO(b/119613670): log metrics |