fix(android): remove mic and screen foreground services

This commit is contained in:
Ayaan Zaidi
2026-03-08 15:07:56 +05:30
committed by Ayaan Zaidi
parent 1230cefe25
commit 46145fde19
22 changed files with 30 additions and 371 deletions

View File

@@ -12,7 +12,7 @@ import { resolveGatewayCredentialsFromConfig } from "./credentials.js";
const LIVE = isTruthyEnvValue(process.env.LIVE) || isTruthyEnvValue(process.env.OPENCLAW_LIVE_TEST);
const LIVE_ANDROID_NODE = isTruthyEnvValue(process.env.OPENCLAW_LIVE_ANDROID_NODE);
const describeLive = LIVE && LIVE_ANDROID_NODE ? describe : describe.skip;
const SKIPPED_INTERACTIVE_COMMANDS = new Set<string>(["screen.record"]);
const SKIPPED_INTERACTIVE_COMMANDS = new Set<string>();
type CommandOutcome = "success" | "error";
@@ -120,15 +120,6 @@ const COMMAND_PROFILES: Record<string, CommandProfile> = {
timeoutMs: 30_000,
outcome: "success",
},
"screen.record": {
buildParams: () => ({ durationMs: 1500, fps: 8, includeAudio: false }),
timeoutMs: 60_000,
outcome: "success",
onSuccess: (payload) => {
const obj = assertObjectPayload("screen.record", payload);
expect(readString(obj.base64)).not.toBeNull();
},
},
"camera.list": {
buildParams: () => ({}),
timeoutMs: 20_000,