diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 36e962e81338f..97bc570aff4cf 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -5045,6 +5045,8 @@ public final class ActivityThread { } private void handleBindApplication(AppBindData data) { + // Register the UI Thread as a sensitive thread to the runtime. + VMRuntime.registerSensitiveThread(); if (data.trackAllocation) { DdmVmInternal.enableRecentAllocations(true); }