From 50a420ec78c8108448644d28f2e97ebf5644b5a7 Mon Sep 17 00:00:00 2001 From: David Schachter Date: Tue, 27 Oct 2026 11:26:13 -0700 Subject: [PATCH 1/3] ADFA-4996: Exclude kotlinx-coroutines DebugProbesKt.bin from the APK DebugProbesKt.bin is the instrumented class the coroutines debug agent swaps in. Nothing in the repo installs DebugProbes or runs a java agent, so the 1,733-byte resource only adds noise to the APK. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Vh2DAaRxctiVy7ZMt3dBCN --- app/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 4819c04f7e..288c7c662b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -180,6 +180,8 @@ android { excludes += "intellij.java.frontback.psi.impl.xml" // jgit's OSGi bundle localization data; unused outside an OSGi runtime. excludes += "OSGI-INF/l10n/plugin.properties" + // kotlinx-coroutines debug-agent resource (the instrumented DebugProbesKt class); nothing here installs DebugProbes or runs a java agent. + excludes += "DebugProbesKt.bin" pickFirsts += "kotlin/internal/internal.kotlin_builtins" pickFirsts += "kotlin/reflect/reflect.kotlin_builtins" From 42d77677e4276a160fc1ef9a5b36bd9e12a2eed9 Mon Sep 17 00:00:00 2001 From: David Schachter Date: Tue, 27 Oct 2026 14:02:32 -0700 Subject: [PATCH 2/3] ADFA-4996: style: shorten the DebugProbesKt.bin exclude comment Comment only; no behaviour change. Addresses a NITPICK in review. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Vh2DAaRxctiVy7ZMt3dBCN --- app/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 288c7c662b..82de6e5095 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -180,7 +180,7 @@ android { excludes += "intellij.java.frontback.psi.impl.xml" // jgit's OSGi bundle localization data; unused outside an OSGi runtime. excludes += "OSGI-INF/l10n/plugin.properties" - // kotlinx-coroutines debug-agent resource (the instrumented DebugProbesKt class); nothing here installs DebugProbes or runs a java agent. + // kotlinx-coroutines debug-agent resource; no DebugProbes.install() or java agent in this repo. excludes += "DebugProbesKt.bin" pickFirsts += "kotlin/internal/internal.kotlin_builtins" From 8a474e31fec35aa7aecf1130206e45fb07656b5f Mon Sep 17 00:00:00 2001 From: David Schachter Date: Tue, 27 Oct 2026 14:03:21 -0700 Subject: [PATCH 3/3] ADFA-4996: Also exclude DebugProbesKt.bin from the tooling-api shadow jar The app-level packaging exclude removes only the APK's own entry. The tooling-api-all.jar bundled under assets/data/common carried its own 1,728-byte copy, which app/build.gradle.kts cannot reach (the same gap ADFA-4202 notes for public-suffix-list.txt). Exclude it in the shadowJar block too. Rebuilt tooling-api-all.jar: 13,406 entries (was 13,407 in the debug APK), no DebugProbesKt.bin, AgentPremain classes unchanged. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Vh2DAaRxctiVy7ZMt3dBCN --- subprojects/tooling-api-impl/build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/tooling-api-impl/build.gradle.kts b/subprojects/tooling-api-impl/build.gradle.kts index 6d6c1c547a..da2c16cf09 100644 --- a/subprojects/tooling-api-impl/build.gradle.kts +++ b/subprojects/tooling-api-impl/build.gradle.kts @@ -63,6 +63,9 @@ project.tasks.getByName("shadowJar") { // no code touches Apache HttpClient directly. Guards against ADFA-4202 regressing into this // shadow jar, which app/build.gradle.kts's packaging.resources.excludes cannot reach. exclude("mozilla/public-suffix-list.txt") + + // kotlinx-coroutines debug-agent resource (ADFA-4996); the app packaging excludes cannot reach this jar. + exclude("DebugProbesKt.bin") } dependencies {