refactor: share Android and firmware provider factories (#826)

This commit is contained in:
N0zoM1z0
2026-10-07 11:20:26 +08:00
committed by GitHub
parent 764ff05231
commit 3ed59b2812
13 changed files with 228 additions and 27 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { join } from "node:path";
import { fileURLToPath } from "node:url";
import { expect, onTestFinished } from "vitest";
import { AndroidAnalysisService } from "../../../src/application/AndroidAnalysisService.js";
import { JadxProvider } from "../../../src/android/JadxProvider.js";
import { createAndroidAnalysisProvider } from "../../../src/composition/android.js";
import {
ProviderProcessSupervisor,
spawnOwnedProviderProcess,
@@ -26,7 +26,7 @@ export const createJadxProtocolFixture = async (mode = "normal") => {
cwd: string | undefined;
pid: number | undefined;
}[] = [];
const provider = new JadxProvider(
const provider = createAndroidAnalysisProvider(
{ ...process.env, REA_JADX_MCP_JAR: jar },
async (options) => {
const spawned = await spawnOwnedProviderProcess({