fix(android)!: preserve JVM settings and reuse metadata sessions (#908)

* perf(graph): avoid repeated traversal edge scans and copies

* fix(android)!: preserve JVM settings and reuse metadata sessions

Read class metadata without generating application source, retain immutable serialized APK sessions, and join owned cleanup on cancellation and shutdown.

BREAKING CHANGE: Android analysis now requires a full JDK 17 or newer with its compiler module for the packaged Java source bridge.
This commit is contained in:
morluto
2026-10-07 16:50:41 +08:00
committed by GitHub
parent f430c416c7
commit eab34a9d8c
36 changed files with 1165 additions and 138 deletions
+11
View File
@@ -254,6 +254,12 @@ export class ProviderProcessSupervisor {
};
}
/** Begin a new observation on a retained process without retaining earlier output. */
resetOutput(): void {
this.#stdout.reset();
this.#stderr.reset();
}
/** Wait for process exit up to a caller-owned bounded interval. */
async waitForExit(timeoutMs: number): Promise<boolean> {
return waitForProcessEvent(
@@ -403,6 +409,11 @@ class ProcessOutputCapture {
return this.#bytes;
}
reset(): void {
this.#chunks.length = 0;
this.#bytes = 0;
}
append(chunk: Buffer): void {
this.#bytes += chunk.byteLength;
this.#chunks.push(Buffer.from(chunk));