Repository navigation
improve(android): install debug builds alongside the production app - #125099
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 2:19 AM ET / 06:19 UTC. ClawSweeper reviewWhat this changesThe branch gives Android phone and Wear debug variants a separate Merge readinessKeep open. This maintainer-owned PR addresses a current Android debug-install limitation with a coherent variant-owned fix and real emulator evidence; it needs normal exact-head CI and merge handling. Priority: P2 Review scores
Verification
How this fits togetherAndroid Gradle variants produce phone and Wear packages, while manifests, tests, and developer scripts use those package identities to install, launch, automate, and capture the intended app on a device. flowchart LR
A[Phone and Wear build variants] --> B[Debug package identity]
B --> C[Manifest and resources]
B --> D[Variant launch tasks]
C --> E[Tests and device scripts]
D --> F[Installed device apps]
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceConfig 0, Other +41. Total +41 across 14 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the variant-owned identity after exact-head checks complete, with maintainer acceptance that debug installs intentionally begin as a separate local app profile. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main assigns debug builds the production package ID, while the branch's supplied emulator transcript shows the resulting Is this the best way to solve the issue? Yes. The Gradle variant model owns the application ID, and deriving dependent device commands from that resolved identity is safer than maintaining independent package literals. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7b4981bfd287. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer decision on the remaining merge-risk item: accepted. A new Rank-up move completed: exact-head required checks finished on |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where Android developers could not install a debug build on a device that already had the production OpenClaw app. Both builds used
ai.openclaw.app, so testing on a real device required uninstalling the configured production app and losing its pairing state.Why This Change Was Made
All phone debug variants now use the always-on
.debugapplication-ID suffix and-debugversion-name suffix, with anOpenClaw Devlauncher label. The Wear debug companion uses the same suffix so Wear Data Layer package/signature matching remains intact, while release builds keepai.openclaw.appunchanged.Debug launch tasks are registered from the Android variant model, so
pnpm android:runandpnpm android:run:third-partyuse the final application ID and the namespace-qualified activity class instead of duplicating a package literal.The package-ID audit also repaired these assumptions:
package.json: both Android run scripts now call the variant-owned Gradle run tasks.apps/android/app/src/main/res/xml/shortcuts.xml: App Actions target the generated variant application-ID resource.apps/android/benchmark/...: macrobenchmark and navigation tests derive the target package from instrumentation and use the full activity class.apps/android/scripts/voice-e2e.sh: targets the debug package and namespace-qualified receiver/activity; debug actions derive from the package.apps/android/scripts/perf-online-benchmark.shandperf-startup-hotspots.sh: default to the debug package and full activity class.scripts/android-screenshots.sh: phone and Wear debug capture use the debug package and full activity classes.Release/Fastlane checks, Google Play links, the Wear production base ID, Kotlin namespaces, generated package declarations, and the external App Actions action intentionally remain
ai.openclaw.app.User Impact
Developers can install and launch Play or third-party debug builds alongside the production app without uninstalling it or wiping pairing state. The launcher shows separate
OpenClaw NodeandOpenClaw Deventries.Evidence
Built the current
origin/mainPlay debug APK as the production-ID stand-in, installed it on emulatoremulator-5556, then installed and launched this branch withpnpm android:run:Both packages coexisted and cold-started independently:
The app drawer accessibility tree reported both
OpenClaw NodeandOpenClaw Dev:Packaged artifact inspection:
Validation:
pnpm android:format— passedpnpm android:lint— passedpnpm android:lint:android— passed for Play, third-party, Wear, and Wear sharedpnpm android:test— passed (Play, Wear, Wear shared)pnpm android:test:third-party— passedpnpm android:assemble— passedpnpm android:assemble:third-party— passedpnpm android:run— installed and launched the debug app onemulator-5556pnpm android:run:third-party— installed and launched the same debug package onemulator-5556Production/tooling LOC:
+61/-22(net+39) | Benchmark tests:+5/-3(net+2). The production growth is the variant-owned install/launch capability, source-set labels, and complete debug-tooling repair.AI-assisted implementation; all listed behavior and emulator evidence was exercised and inspected by the maintainer agent.