惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
N
News and Events Feed by Topic
Recent Announcements
Recent Announcements
D
Docker
M
MIT News - Artificial intelligence
L
LangChain Blog
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
博客园_首页
MongoDB | Blog
MongoDB | Blog
美团技术团队
S
Schneier on Security
G
GRAHAM CLULEY
月光博客
月光博客
有赞技术团队
有赞技术团队
Vercel News
Vercel News
Scott Helme
Scott Helme
P
Privacy International News Feed
Last Week in AI
Last Week in AI
Recorded Future
Recorded Future
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
Attack and Defense Labs
Attack and Defense Labs
Google Online Security Blog
Google Online Security Blog
Simon Willison's Weblog
Simon Willison's Weblog
量子位
S
Security @ Cisco Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V
Visual Studio Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
NISL@THU
NISL@THU
N
Netflix TechBlog - Medium
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
罗磊的独立博客
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Threatpost
L
Lohrmann on Cybersecurity
www.infosecurity-magazine.com
www.infosecurity-magazine.com
S
Security Affairs
Cloudbric
Cloudbric
爱范儿
爱范儿
H
Heimdal Security Blog
PCI Perspectives
PCI Perspectives

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
android: boot emulator for release screenshots · openclaw/openclaw@967f0e0
joshavant · 2026-06-18 · via Recent Commits to openclaw:main

@@ -4,22 +4,30 @@ set -euo pipefail

44

usage() {

55

cat <<'EOF'

66

Usage:

7-

scripts/android-screenshots.sh [--device <adb-serial>] [--locale en-US] [--skip-build] [--skip-install] [--dry-run]

7+

scripts/android-screenshots.sh [--device <adb-serial>] [--avd <name>] [--locale en-US] [--skip-build] [--skip-install] [--keep-emulator] [--dry-run]

8899

Builds and installs the Play debug app, launches deterministic screenshot scenes,

1010

and writes raw Google Play screenshots under:

1111

apps/android/fastlane/metadata/android/<locale>/images/phoneScreenshots/

12+13+

If no ADB device is connected, pass --avd or set ANDROID_SCREENSHOT_AVD to boot

14+

an emulator non-interactively for the screenshot run.

1215

EOF

1316

}

14171518

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

1619

ANDROID_DIR="${ROOT_DIR}/apps/android"

1720

LOCALE="en-US"

1821

DEVICE="${ANDROID_SCREENSHOT_DEVICE:-}"

22+

AVD="${ANDROID_SCREENSHOT_AVD:-}"

23+

KEEP_EMULATOR="${ANDROID_SCREENSHOT_KEEP_EMULATOR:-0}"

1924

SKIP_BUILD=0

2025

SKIP_INSTALL=0

2126

DRY_RUN=0

2227

SCENES=(connect chat voice screen settings)

28+

EMULATOR_PID=""

29+

EMULATOR_LOG=""

30+

STARTED_EMULATOR=0

23312432

while [[ $# -gt 0 ]]; do

2533

case "$1" in

@@ -30,6 +38,10 @@ while [[ $# -gt 0 ]]; do

3038

DEVICE="${2:-}"

3139

shift 2

3240

;;

41+

--avd)

42+

AVD="${2:-}"

43+

shift 2

44+

;;

3345

--locale)

3446

LOCALE="${2:-}"

3547

shift 2

@@ -42,6 +54,10 @@ while [[ $# -gt 0 ]]; do

4254

SKIP_INSTALL=1

4355

shift

4456

;;

57+

--keep-emulator)

58+

KEEP_EMULATOR=1

59+

shift

60+

;;

4561

--dry-run)

4662

DRY_RUN=1

4763

shift

@@ -58,6 +74,35 @@ while [[ $# -gt 0 ]]; do

5874

esac

5975

done

607677+

cleanup_started_emulator() {

78+

local stopped=0

79+80+

if [[ "$STARTED_EMULATOR" != "1" || "$KEEP_EMULATOR" == "1" ]]; then

81+

return

82+

fi

83+

if [[ -n "${ADB_BIN:-}" && -n "${ADB_SERIAL:-}" ]]; then

84+

if "$ADB_BIN" -s "$ADB_SERIAL" emu kill >/dev/null 2>&1; then

85+

stopped=1

86+

fi

87+

fi

88+

if [[ "$stopped" != "1" && -n "$EMULATOR_PID" ]]; then

89+

kill "$EMULATOR_PID" >/dev/null 2>&1 || true

90+

fi

91+

}

92+93+

cleanup_emulator_log() {

94+

if [[ -n "$EMULATOR_LOG" && -f "$EMULATOR_LOG" ]]; then

95+

rm -f "$EMULATOR_LOG"

96+

fi

97+

}

98+99+

cleanup() {

100+

cleanup_started_emulator

101+

cleanup_emulator_log

102+

}

103+104+

trap cleanup EXIT

105+61106

adb_bin() {

62107

if [[ -n "${ADB:-}" ]]; then

63108

printf '%s\n' "$ADB"

@@ -77,22 +122,161 @@ adb_bin() {

77122

return 127

78123

}

79124125+

emulator_bin() {

126+

if [[ -n "${ANDROID_EMULATOR:-}" ]]; then

127+

printf '%s\n' "$ANDROID_EMULATOR"

128+

return

129+

fi

130+

if command -v emulator >/dev/null 2>&1; then

131+

command -v emulator

132+

return

133+

fi

134+

for sdk_root in "${ANDROID_HOME:-}" "${ANDROID_SDK_ROOT:-}" "$HOME/Library/Android/sdk"; do

135+

if [[ -n "$sdk_root" && -x "$sdk_root/emulator/emulator" ]]; then

136+

printf '%s\n' "$sdk_root/emulator/emulator"

137+

return

138+

fi

139+

done

140+

echo "Android emulator binary not found. Install the Android emulator or set ANDROID_EMULATOR." >&2

141+

return 127

142+

}

143+144+

connected_devices() {

145+

local adb="$1"

146+

"$adb" devices | awk 'NR > 1 && $2 == "device" { print $1 }'

147+

}

148+149+

device_count() {

150+

local devices="$1"

151+

printf '%s\n' "$devices" | sed '/^$/d' | wc -l | tr -d ' '

152+

}

153+154+

wait_for_single_device() {

155+

local adb="$1"

156+

local timeout_seconds="${ANDROID_SCREENSHOT_EMULATOR_TIMEOUT_SECONDS:-180}"

157+

local deadline=$((SECONDS + timeout_seconds))

158+

local devices

159+

local count

160+161+

while (( SECONDS < deadline )); do

162+

devices="$(connected_devices "$adb")"

163+

count="$(device_count "$devices")"

164+

if [[ "$count" == "1" ]]; then

165+

printf '%s\n' "$devices"

166+

return

167+

fi

168+

sleep 2

169+

done

170+171+

echo "Timed out waiting for exactly one Android emulator device." >&2

172+

"$adb" devices -l >&2 || true

173+

return 1

174+

}

175+176+

wait_for_boot_completed() {

177+

local adb="$1"

178+

local serial="$2"

179+

local timeout_seconds="${ANDROID_SCREENSHOT_EMULATOR_TIMEOUT_SECONDS:-180}"

180+

local deadline=$((SECONDS + timeout_seconds))

181+

local boot_completed

182+183+

"$adb" -s "$serial" wait-for-device

184+

while (( SECONDS < deadline )); do

185+

boot_completed="$("$adb" -s "$serial" shell getprop sys.boot_completed 2>/dev/null | tr -d '\r' || true)"

186+

if [[ "$boot_completed" == "1" ]]; then

187+

"$adb" -s "$serial" shell input keyevent 82 >/dev/null 2>&1 || true

188+

return

189+

fi

190+

sleep 2

191+

done

192+193+

echo "Timed out waiting for Android emulator boot completion on ${serial}." >&2

194+

return 1

195+

}

196+197+

wait_for_explicit_device() {

198+

local adb="$1"

199+

local serial="$2"

200+

local timeout_seconds="${ANDROID_SCREENSHOT_DEVICE_TIMEOUT_SECONDS:-30}"

201+

local deadline=$((SECONDS + timeout_seconds))

202+

local state

203+204+

while (( SECONDS < deadline )); do

205+

state="$("$adb" devices | awk -v serial="$serial" '$1 == serial { print $2 }')"

206+

if [[ "$state" == "device" ]]; then

207+

return

208+

fi

209+

sleep 2

210+

done

211+212+

if [[ -n "$state" ]]; then

213+

echo "Android device '${serial}' did not become usable within ${timeout_seconds}s; current adb state is '${state}'." >&2

214+

else

215+

echo "Android device '${serial}' was not found within ${timeout_seconds}s." >&2

216+

fi

217+

"$adb" devices -l >&2 || true

218+

return 1

219+

}

220+221+

stabilize_device_for_screenshots() {

222+

local adb="$1"

223+

local serial="$2"

224+

"$adb" -s "$serial" shell settings put global window_animation_scale 0 >/dev/null 2>&1 || true

225+

"$adb" -s "$serial" shell settings put global transition_animation_scale 0 >/dev/null 2>&1 || true

226+

"$adb" -s "$serial" shell settings put global animator_duration_scale 0 >/dev/null 2>&1 || true

227+

}

228+229+

boot_emulator() {

230+

local adb="$1"

231+

local avd="$2"

232+

local emulator

233+

local emulator_args

234+

local extra_args

235+

local serial

236+237+

emulator="$(emulator_bin)"

238+

EMULATOR_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-android-screenshot-emulator.XXXXXX.log")"

239+

echo "No connected Android device found. Booting AVD '${avd}'." >&2

240+

emulator_args=(-avd "$avd" -no-window -no-audio -no-boot-anim)

241+

if [[ -n "${ANDROID_SCREENSHOT_EMULATOR_ARGS:-}" ]]; then

242+

read -r -a extra_args <<<"$ANDROID_SCREENSHOT_EMULATOR_ARGS"

243+

emulator_args+=("${extra_args[@]}")

244+

fi

245+

"$emulator" "${emulator_args[@]}" >"$EMULATOR_LOG" 2>&1 &

246+

EMULATOR_PID="$!"

247+

STARTED_EMULATOR=1

248+249+

serial="$(wait_for_single_device "$adb")"

250+

wait_for_boot_completed "$adb" "$serial"

251+

stabilize_device_for_screenshots "$adb" "$serial"

252+

ADB_SERIAL="$serial"

253+

}

254+80255

resolve_device() {

81256

local adb="$1"

257+

local devices

258+

local count

259+82260

if [[ -n "$DEVICE" ]]; then

83-

printf '%s\n' "$DEVICE"

261+

wait_for_explicit_device "$adb" "$DEVICE"

262+

stabilize_device_for_screenshots "$adb" "$DEVICE"

263+

ADB_SERIAL="$DEVICE"

84264

return

85265

fi

86-

local devices

87-

devices="$("$adb" devices | awk 'NR > 1 && $2 == "device" { print $1 }')"

88-

local count

89-

count="$(printf '%s\n' "$devices" | sed '/^$/d' | wc -l | tr -d ' ')"

266+

devices="$(connected_devices "$adb")"

267+

count="$(device_count "$devices")"

90268

if [[ "$count" == "1" ]]; then

91-

printf '%s\n' "$devices"

269+

stabilize_device_for_screenshots "$adb" "$devices"

270+

ADB_SERIAL="$devices"

92271

return

93272

fi

94273

if [[ "$count" == "0" ]]; then

274+

if [[ -n "$AVD" ]]; then

275+

boot_emulator "$adb" "$AVD"

276+

return

277+

fi

95278

echo "No Android device or emulator is connected." >&2

279+

echo "Start one manually, pass --device <adb-serial>, or pass --avd <name> to boot an emulator." >&2

96280

else

97281

echo "Multiple Android devices are connected. Pass --device <adb-serial>." >&2

98282

fi

@@ -107,19 +291,23 @@ latest_play_debug_apk() {

107291

}

108292109293

OUTPUT_DIR="${ANDROID_DIR}/fastlane/metadata/android/${LOCALE}/images/phoneScreenshots"

110-

ADB_SERIAL="${DEVICE:-<auto>}"

294+

ADB_SERIAL=""

295+

ADB_DISPLAY="${DEVICE:-<auto>}"

111296112297

echo "Android screenshot output: ${OUTPUT_DIR}"

113298

echo "Scenes: ${SCENES[*]}"

114-

echo "ADB device: ${ADB_SERIAL}"

299+

echo "ADB device: ${ADB_DISPLAY}"

300+

if [[ -n "$AVD" ]]; then

301+

echo "Fallback AVD: ${AVD}"

302+

fi

115303116304

if [[ "$DRY_RUN" == "1" ]]; then

117305

echo "Dry run complete. No build, install, or capture commands were executed."

118306

exit 0

119307

fi

120308121309

ADB_BIN="$(adb_bin)"

122-

ADB_SERIAL="$(resolve_device "$ADB_BIN")"

310+

resolve_device "$ADB_BIN"

123311

mkdir -p "$OUTPUT_DIR"

124312

rm -f "$OUTPUT_DIR"/*.png

125313