2026-10-06 20:46:48 +08:00
|
|
|
import type {
|
|
|
|
|
AnalysisExecution,
|
|
|
|
|
ExecutionOptions,
|
2026-10-07 14:09:57 +08:00
|
|
|
} from "../AnalysisProvider.js";
|
|
|
|
|
import type { AndroidRequest } from "../../domain/android/androidAnalysis.js";
|
2026-10-09 22:45:18 +08:00
|
|
|
import type { BinaryTarget } from "../../domain/binaryTargetTypes.js";
|
2026-10-07 14:09:57 +08:00
|
|
|
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
|
|
|
import type { Result } from "../../domain/result.js";
|
2026-10-09 07:04:11 +08:00
|
|
|
import type { ProviderAvailability } from "../AnalysisProvider.js";
|
2026-10-06 20:46:48 +08:00
|
|
|
|
|
|
|
|
/** Static Android inspection boundary; implementation details belong to the provider. */
|
|
|
|
|
export interface AndroidAnalysisPort {
|
2026-10-09 07:04:11 +08:00
|
|
|
/** Inspect the selected JAR and Java runtime without opening an APK. */
|
|
|
|
|
inspectAvailability(signal?: AbortSignal): Promise<ProviderAvailability>;
|
2026-10-07 16:50:41 +08:00
|
|
|
/** Cancel active work and join cleanup of any retained provider resources. */
|
|
|
|
|
close(): Promise<void>;
|
2026-10-06 20:46:48 +08:00
|
|
|
execute(
|
|
|
|
|
target: BinaryTarget,
|
|
|
|
|
request: AndroidRequest,
|
|
|
|
|
options?: ExecutionOptions,
|
|
|
|
|
): Promise<Result<AnalysisExecution, AnalysisError>>;
|
|
|
|
|
}
|