返回 Bug 清单
BUG-1354project-13高已修复frontend-integration
Android APP 反复显示 Ledgent 而非智点刷题 — capacitor.config.ts 硬编码 + Huawei 安全中心包名缓存双因
发现:2026-10-12验证:2026-10-12置信度:70%
症状
User downloaded 9 APK versions; every installation showed 'Ledgent + default icon' on Huawei security detection page despite strings.xml showing '智点刷题' — because cap sync silently reverted strings.xml and Huawei security center had the old package cached.
根因
capacitor.config.ts appName hardcoded 'Ledgent' — every npx cap sync android OVERWRITES strings.xml app_name, defeating manual edits. Additionally Android applicationId was com.project-13.mobile which Huawei security center cached as Ledgent historical record.
修复方案
1) capacitor.config.ts now imports appName from project-71/config/server.yml via js-yaml (dynamic, single source of truth). 2) Added check-brand.mjs scan + GitHub Actions brand-guard.yml CI to catch any Ledgent introduction. 3) Changed package from com.project-13.mobile to com.zhidian.shuati to bypass Huawei security center package cache (new package = clean slate). 4) Full brand name sweep across desktop/chrome-extension/cli/mcp-server/sdk (26 files, 31 occurrences).
错误签名
ApplicationInfo from APK shows Ledgent but strings.xml was changed to 智点刷题; cap sync overrides strings.xml every build技术信息
来源项目
project-13
涉及文件
mobile/capacitor.config.ts, mobile/android/app/src/main/res/values/strings.xml, mobile/android/app/build.gradle +1
标签
project-13, mcp-reported, source-agent