Andee lives on your phone or Mac and uses any app like you do—no integrations, no root, any model; memory and passwords never leave your device | Andee 住进你的手机或 Mac,像你一样操作任何 App——无需集成、无需 Root、支持任意模型,记忆和密码绝不离开设备。
chore(release): v0.1.1
booboosui9c940a0e6c66
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 955318e..858eaf6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,7 +4,7 @@ Notable changes to Andee. The format follows [Keep a Changelog](https://keepacha## Versioning policy-- `versionCode` / `versionName` live in `app/build.gradle` and are currently **`1` / `"0.1.0"`**.+- `versionCode` / `versionName` live in `app/build.gradle` and are currently **`2` / `"0.1.1"`**.- Releases are tagged `vMAJOR.MINOR.PATCH`, `versionName` mirrors the tag without the leading `v`,and `versionCode` increases by one per release. `versionCode` must increase **monotonically** orAndroid refuses the upgrade; the same number must never be reused for two different builds.@@ -13,20 +13,23 @@ Notable changes to Andee. The format follows [Keep a Changelog](https://keepacha**The project starts at `0.x`, and that is the accurate number rather than a modest one.** Nothing isfrozen. The tool-schema contract a hub brain speaks has been rewritten repeatedly-(`net/ToolSchemas.kt` alone has changed in seven commits since the first), the `local.properties`+(`net/ToolSchemas.kt` alone has changed in eight commits since the first), the `local.properties`build flags that decide the first-install language, the thinking default and whether CodeFlying iscompiled in have all been added since, and a saved scene is a shape that only appeared in thisrelease. Each of those is something a user or a second implementation would have to rebuild against,so `0.x` is being honest that MINOR may break. The release that moves off `0` should be the one wherethe wire contract is written down well enough that a second implementation could be built from it.-**A version number does not identify a build yet.** `versionCode` is `1` and will stay `1` until a-second release exists, so "which build is this?" still cannot be answered from the installed app.-Until then, identify builds by the short commit hash they were built from. (Embedding the hash into-`versionName` at build time would close this hole; it is not implemented yet.)+**A version number identifies a release, not a build.** `versionCode` now moves with each release,+so the installed app can say which *release* it came from — but nothing in it moves when `main`+does. A build made from a commit between two tags reports the older release's number, so for+anything not built at a tag, identify it by the short commit hash it was built from. (Embedding that+hash into `versionName` at build time would close this hole; it is not implemented yet.)## [Unreleased]+## [0.1.1] - 2026-10-09+### Fixed- **Four strings sent the user to a menu label that no longer exists — and one to a gesture that does@@ -64,6 +67,72 @@ Until then, identify builds by the short commit hash they were built from. (Embe- `README.md` named the Volcengine field as **火山 API key** — the Chinese label — while the Englishbuild displays **Volcengine API key** (`settings_voice_api_key`). The Chinese README already hadthis right; only the English file was pointing at a word that never appears on an English screen.+- **A picture, a video or a clip now goes into a page, instead of being handed over as a URL.** The+ prompt said the opposite, and said it wrongly: *"this device cannot turn an image into a URL, so an+ `img` tag will not open"*. That is false for anything on the network — the page is served against a+ fake `https://` origin, the app holds `INTERNET`, and WebView loads an absolute `https://`+ subresource without complaint. What is true is narrower, and the old sentence flattened it into a+ blanket ban: a *local* file has no address a page can point at, and `http://` is refused. So the+ model, obeying its instructions, could not put a picture on screen — and what it did instead was+ hand the user a URL to open, on the device they were already holding. §7 now asks for the embedding+ directly (`<img>`, `<video controls>`, `<audio controls>`, absolute `https://` only), separates a+ media file from a *site* — the latter belongs in Chrome through `open_url`, not in an `iframe`,+ which most sites refuse — and says outright that passing over a bare URL is not an answer. The+ wrong half of the same sentence sat in the `show_html` description too, which is the text the model+ reads while composing; media is carved out there as well, because what that rule protects is a+ self-contained shell. Verified by compiling and by reading both strings back out of the compiled+ classes — the new text is present, all three old phrasings gone. **Not verified on a device**: none+ was attached, so a real `https` image and a real `.mp4` rendering in the page are still+ unconfirmed.+- **The launcher icon could become a permanent dead end, because the overlay was inferred from a view+ object instead of asked for as a grant.** First run, accessibility on, 悬浮球权限 off: the checklist+ came up, the user closed it, and from then on the icon did nothing — no screen, no error, no way+ back in short of reinstalling. Nothing was removing the ball's window. On HONOR/MagicOS a denied+ `SYSTEM_ALERT_WINDOW` does not make `addView` throw: it succeeds, and the system hides the window+ instead — present in the window list with `alpha=0.0`, `mAppOpVisibility=false`,+ `isReadyForDisplay()=false`. So the view object outlives the grant, and `FloatingWindowUi.isShown()`+ — which is only `root != null`, a memory marker and nothing more — keeps answering true while the+ user can see nothing at all. `ensureOverlays()` opened with exactly that test, so+ `SelfCheckActivity` took its expand-and-finish branch, called `expand()` on a card that cannot be+ drawn, finished itself, and left an empty screen; the checklist branch, which is the one that names+ this failure in red, never ran. The grant is now asked **first and directly**, as+ `Settings.canDrawOverlays()` — the same predicate `SelfCheck.overlay` uses for the 悬浮窗 row, so the+ page and the door can no longer contradict each other (which is what the user hit: the page said+ 没开 while the door said 在屏). It also covers revoking a grant that was already given, when `root`+ stays non-null for the life of the process. `showSelfCheckCard()` guarded with the same marker,+ where its own comment had claimed it already did. Verified on the device (LIO-TL00) on **both**+ paths, because this edits the working path's entry test too — grant denied now reaches the+ checklist (13 activity records), grant allowed still takes the expand branch (0 records); checking+ only the first would have shipped "the icon always shows the checklist".++### Changed++- **The 悬浮窗权限 row now leads the self-check list**, ahead of 无障碍服务. Both are hard gates and+ the order between them was arbitrary; what settles it is that they fail in opposite directions.+ With the service off the app is visibly inert — nothing to run, and every row below is decoration.+ With the grant off it *looks* broken instead: the service runs perfectly well, silently cannot+ draw, and tapping the icon appears to do nothing at all. That second shape is the one users misread+ as "the app is dead", so it goes first.+- 无障碍服务's off-state copy named the row's list position — 「后面几条都不用看」 / *"the rest of this+ list does not matter yet"* — which the reorder above invalidated. It is now 「其他都不用看」 /+ *"nothing else here matters either"*: same meaning, no longer positional. Same edit in both string+ files.++### Removed++- **The first-run wizard is gone** (`ui/FirstRunUi.kt`, its wiring in `ScreenBodyService`, the 重新设置+ button on the self-check card, and its strings in both languages). The wizard and the startup+ self-check both wanted to put a card up on a first start, and when the check found a problem it+ covered the wizard, so a new user saw whichever lost the race. The wizard was removed rather than+ arbitrate between the two. The self-check's own prefs file stays, as does+ `PermissionRequestActivity`, which the check still uses; an old `wizard_done` flag on existing+ installs is simply never read. The wake word is now offered only from settings and as a note row on+ the self-check. The two READMEs had promised this wizard — see the *Fixed* entry above.+- `check_page_no_overlay` and the `SelfCheckUi.note()` helper it was the only caller of. The note+ explained that the settings sheet is drawn as an overlay — a fact the page does not need to teach,+ because the 悬浮窗 row directly below it already carries the fix, in that row's own words and with a+ button. `fixButton()`'s comment used to point at "the note above the list"; it now states the rule+ on its own: a button that does nothing is worse than no button.## [0.1.0] - 2026-10-09@@ -182,23 +251,6 @@ because a release this size is the norm.took the whole process down, which is the opposite of what the callback is for. Now qualified`[email protected](msg)`. The listener's three other callbacks are unaffected: none of themshares a name with an outer member.-- **A picture, a video or a sound now goes into a page rather than being named as a URL.** The prompt- said the opposite, and said it wrongly: *"this device cannot turn an image into a URL, so an `img`- tag will not open"*. That is false for anything on the network — the page is served against a fake- `https://` origin, the app holds `INTERNET`, and WebView loads an absolute `https://` subresource- without complaint. What is true is narrower, and the old sentence flattened it into a blanket ban:- a *local* file has no address a page can point at, and `http://` is refused. So the model, obeying- its instructions, could not put a picture on screen — and what it did instead was hand the user a- URL to go and open, on the device they were already holding. §7 now asks for the embedding directly- (`<img>`, `<video controls>`, `<audio controls>`, absolute `https://` only), separates a media file- from a *site* — the latter belongs in Chrome through `open_url`, not in an `iframe`, which most- sites refuse — and says outright that passing over a bare URL is not an answer. The wrong half of- the same sentence sat in the `show_html` description too ("a page that fetches a font, a framework- or *an image* over the network renders broken"), which is the text the model reads while composing;- media is carved out there as well, because what that rule protects is a self-contained shell.- Verified by compiling and by reading both strings back out of the compiled classes — the new text is- present, all three old phrasings gone. **Not verified on a device**: none was attached, so a real- `https` image and a real `.mp4` rendering in the page are still unconfirmed.### Changeddiff --git a/DISCLAIMER.md b/DISCLAIMER.mdindex 22725a9..ddd31c0 100644--- a/DISCLAIMER.md+++ b/DISCLAIMER.md@@ -46,7 +46,7 @@ The second row needs spelling out: **tool results are part of the conversation.***So "local mode" does not mean "processed locally."** Local mode swaps the hub for whichever provider you typed in. It does not keep a single byte on the device.Therefore:-- *"We do not monitor or store your data"* — **mostly true, but do not overclaim it.** No database, no behavioural analysis, and no reading of anything you send; the one exception is the version check, which tells us that some device of some model on some IP is running 0.1.0.+- *"We do not monitor or store your data"* — **mostly true, but do not overclaim it.** No database, no behavioural analysis, and no reading of anything you send; the one exception is the version check, which tells us that some device of some model on some IP is running 0.1.1.- *"Your data never leaves the device"* — **false. Do not claim it.**## 3. What it can actually do (not hypotheticals — current state of the code)diff --git a/DISCLAIMER.zh-CN.md b/DISCLAIMER.zh-CN.mdindex 2eac636..575e19c 100644--- a/DISCLAIMER.zh-CN.md+++ b/DISCLAIMER.zh-CN.md@@ -45,7 +45,7 @@**因此"本机模式"不等于"本地处理"** —— 本机模式只是把大脑从 hub 换成了你填的那个服务商。它没有让数据留在设备上,一个字都没有。所以:-- 「我们不会监控和存储您的数据」——**基本成立,但别把话说满**。不落库、不做行为分析、不看你发的内容;唯一的例外是版本自检,它让我们知道"某个 IP 上,有一台某个型号的设备在跑 0.1.0"。+- 「我们不会监控和存储您的数据」——**基本成立,但别把话说满**。不落库、不做行为分析、不看你发的内容;唯一的例外是版本自检,它让我们知道"某个 IP 上,有一台某个型号的设备在跑 0.1.1"。- 「您的数据不会离开设备」——**不成立,而且不要说**。## 3. 它真的能做什么(以下都不是危言耸听,是代码里的现状)diff --git a/README.md b/README.mdindex ec4d242..2454e95 100644--- a/README.md+++ b/README.md@@ -524,7 +524,7 @@ Pure Kotlin, no Compose; the whole thing hangs off two pillars, `WindowManager`| minSdk | 30 | Android 11 — `AccessibilityAction.ACTION_IME_ENTER` and `takeScreenshot` are both API 30+ || Java / Kotlin JVM target | 1.8 | `sourceCompatibility` 1.8, `jvmTarget = '1.8'` || **Build JDK** | **17–20** | see [Which JDK](#which-jdk) — this is the step people get stuck on |-| versionCode / versionName | 1 / 0.1.0 | see [CHANGELOG.md](CHANGELOG.md) for the policy |+| versionCode / versionName | 2 / 0.1.1 | see [CHANGELOG.md](CHANGELOG.md) for the policy || applicationId / namespace | `net.kuafuai.andee` | never changed from the template. It affects nothing |**Runtime dependencies** (`app/build.gradle`):@@ -944,8 +944,8 @@ Bundled third-party components are inventoried in [THIRD_PARTY_NOTICES.md](THIRDRead it before redistributing: **the ML Kit barcode SDK and the `play-services-*` stubs are notopen-source**, and the barcode model is fetched from Google at runtime.-See [CHANGELOG.md](CHANGELOG.md) for what changed and for the versioning policy. The first release is-**`v0.1.0`** — pre-1.0 on purpose, because the wire contract and the build flags are still moving.+See [CHANGELOG.md](CHANGELOG.md) for what changed and for the versioning policy. The latest release is+**`v0.1.1`** — pre-1.0 on purpose, because the wire contract and the build flags are still moving.## Related documentsdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex 5acbb41..f6d1af4 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -379,7 +379,7 @@ OpenAI 兼容端点(`llm_api_key`,默认 `https://api.deepseek.com`)。**| minSdk | 30 | Android 11 —— 因为要用 `AccessibilityAction.ACTION_IME_ENTER`(API 30+)和 `takeScreenshot`(API 30+) || Java / Kotlin JVM target | 1.8 | `sourceCompatibility` 1.8、`jvmTarget = '1.8'` || **构建用 JDK** | **17–20** | 见[配 JDK](#配-jdk),这是最容易卡住的一步 |-| versionCode / versionName | 1 / 0.1.0 | 策略见 [CHANGELOG.md](CHANGELOG.md) |+| versionCode / versionName | 2 / 0.1.1 | 策略见 [CHANGELOG.md](CHANGELOG.md) || applicationId / namespace | `net.kuafuai.andee` | 从模板里没改,不影响功能 |**运行库依赖**(`app/build.gradle`):@@ -837,7 +837,7 @@ CLAUDE.md 给 AI 编码助手看的架构说明(英文)随包分发的第三方组件清单在 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。再分发之前请先看:**ML Kit 扫码 SDK 和 `play-services-*` 不是开源许可**,而且扫码模型是运行时从 Google 拉的。-改了什么、以及版本号策略见 [CHANGELOG.md](CHANGELOG.md) —— 首个版本是 **`v0.1.0`**,故意停在+改了什么、以及版本号策略见 [CHANGELOG.md](CHANGELOG.md) —— 当前版本是 **`v0.1.1`**,故意停在pre-1.0:线上协议和构建开关都还在动。## 相关文档diff --git a/app/build.gradle b/app/build.gradleindex 068d569..bcecfa9 100644--- a/app/build.gradle+++ b/app/build.gradle@@ -34,8 +34,8 @@ android {applicationId "net.kuafuai.andee"minSdk 30targetSdk 34- versionCode 1- versionName "0.1.0"+ versionCode 2+ versionName "0.1.1"testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"diff --git a/docs/releases/v0.1.1.md b/docs/releases/v0.1.1.mdnew file mode 100644index 0000000..3ef314b--- /dev/null+++ b/docs/releases/v0.1.1.md@@ -0,0 +1,130 @@+# v0.1.1++**Five fixes, and three of them are about the app telling you the truth.** Nothing new was added; this+release removes a screen that fought another one, corrects four sentences that sent users to menu+labels that do not exist, and fixes the one failure that could lock a user out of the app entirely.+Still no binary attached — see *Install* below.++> **No APK is attached to this release, on purpose.** The release build type has no `signingConfig`+> and there is no keystore in this repository, so `assembleRelease` emits+> `app-<abi>-release-unsigned.apk`, which will not install until you sign it. Shipping a binary a+> reader cannot install would be worse than shipping none. Build it yourself — see *Install* below.++## Highlights++- **The launcher icon can no longer become a dead end.** On some ROMs (HONOR/MagicOS, measured on+ LIO-TL00) a denied overlay grant does not make `addView` fail — it succeeds and the system hides+ the window, so the view object stays around and `isShown()` keeps answering true. The entry test+ trusted that marker, took the "expand the ball" branch, and finished on an empty screen: the icon+ did nothing, and did it again every time. The grant is now asked **directly**,+ `Settings.canDrawOverlays()`, the same predicate the self-check's own 悬浮窗 row uses — so the page+ and the door can no longer disagree.+- **Four strings stop pointing at menus that are not there.** The settings card was reorganised twice+ since those sentences were written and the sentences stayed behind: they said ⚙ → 「大脑」 / "Brain"+ when the section reads 「后端」 / "Backend", one named a 语音(火山引擎) section that no longer+ exists, and one told the user to long-press the ball to open settings — which expands the card, it+ does not open settings.+- **A picture, a video or a clip now goes into a page instead of being handed over as a URL.** The+ prompt forbade embedding media on a false premise ("this device cannot turn an image into a URL").+ It is false for anything on the network, so the model was obeying its instructions and handing the+ user a link to open on the device they were already holding.+- **The first-run wizard is gone, and the self-check kept the card.** Both wanted to put a card up on+ a first start; when the check found a problem it covered the wizard, so a new user saw whichever+ lost the race.++## What's Changed++### Fixed++- **The launcher icon could become a permanent dead end.** See *Highlights*. `ensureOverlays()` and+ `showSelfCheckCard()` now ask `Settings.canDrawOverlays()` before anything else; `SelfCheckActivity`+ falls through to the checklist — the page that names this failure in red — instead of expanding a+ card that cannot be drawn. Verified on a device on **both** paths: grant denied now reaches the+ checklist (13 activity records), grant allowed still takes the expand branch (0 records).+- **Four strings named menu labels that do not exist, and one a gesture that does not exist either.**+ `check_detail_brain_key_missing`, `check_detail_brain_hub_missing` and `brain_no_key` said+ ⚙ → 「大脑」 / "Brain"; the header is `settings_section_brain` = 「后端」 / "Backend".+ `check_detail_voice_key_missing` named a 语音(火山引擎) section whose rows had moved into+ 后端 → 本机. `brain_no_key` also said 长按小球打开设置 (*"long-press the ball to open settings"*) —+ a long-press calls `dispatcher.expand()`, which brings the card back; settings is the ⚙ button in+ that card's control bar, and the sentence now names both steps. `check_detail_brain_hub_missing`+ gained the precondition it was missing: **「云端」 is hidden unless 高级 →「显示云端选项」 is on.**+- **Both READMEs promised a first-run wizard that no longer exists** — "The first run is a stepped+ setup that walks you through both" / 「第一次启动会有一个分步引导」. A missing setup guide is+ indistinguishable from a broken install, so this read as a bug report rather than as stale prose.+ Both now describe what the app actually does: the self-check runs on every start, the card names+ the missing key, and its button opens settings.+- `README.md` named the Volcengine field as **火山 API key** — the Chinese label — while the English+ build displays **Volcengine API key**. Only the English file was wrong.+- **A picture, a video or a clip goes into a page now.** §7 asks for the embedding directly+ (`<img>`, `<video controls>`, `<audio controls>`, absolute `https://` only) and says outright that+ passing over a bare URL is not an answer; the `show_html` description carves media out of its+ self-contained-shell rule for the same reason. Verified by compiling and reading both strings back+ out of the compiled classes. **Not verified on a device** — none was attached, so a real `https`+ image and a real `.mp4` rendering in the page are unconfirmed.++### Changed++- **The 悬浮窗权限 row now leads the self-check list**, ahead of 无障碍服务. Both are hard gates and+ the order between them was arbitrary; they fail in opposite directions, and that settles it. With+ the service off the app is visibly inert. With the grant off it *looks* broken instead — the+ service runs fine, silently cannot draw, and tapping the icon appears to do nothing. That second+ shape is the one users misread as "the app is dead", so it goes first.+- 无障碍服务's off-state copy no longer names its own list position — 「后面几条都不用看」 /+ "the rest of this list does not matter yet" became 「其他都不用看」 / "nothing else here matters+ either". Same meaning, no longer invalidated by the reorder. Both string files.++### Removed++- **The first-run wizard** — `ui/FirstRunUi.kt`, its wiring in `ScreenBodyService`, the 重新设置 button+ on the self-check card, and its strings in both languages. The wizard and the startup self-check+ both wanted to put a card up on a first start, and when the check found a problem it covered the+ wizard, so a new user saw whichever lost the race; the wizard was removed rather than arbitrate+ between the two. The self-check's own prefs file stays, as does `PermissionRequestActivity`, which+ the check still uses. An old `wizard_done` flag on existing installs is simply never read. The wake+ word is now offered only from settings and as a note row on the self-check.+- `check_page_no_overlay` and the `SelfCheckUi.note()` helper it was the only caller of. The note+ explained that the settings sheet is drawn as an overlay — a fact the page does not need to teach,+ because the 悬浮窗 row directly below it already carries the fix, in its own words and with a+ button.++## Known issues++- **A build with CodeFlying compiled in but no API key can raise the wrong complaint.** The+ self-check's availability test looks at `CODEFLYING_ENABLED` and the domain rather than the key, so+ such a build reports 大脑 key missing and sends the user to fill in a DeepSeek key — while the real+ cause is at build time. Surfaced by reading this release's diff; not fixed by it.+- The two issues `v0.1.0` listed are **unchanged and untouched in this release**:+ `tools/verify_faces_lab.py` still reports 7/16 assertions passing against the committed+ `reports/ball-faces-lab.html`, and the debug WebSocket server (`net/BodyWsServer`) still binds+ `0.0.0.0:9008` with no authentication (documented in `SECURITY.md`).++## Before you install++Read **[DISCLAIMER.md](../../DISCLAIMER.md)** and+**[docs/acceptable-use.md](../acceptable-use.md)** first. This app asks for accessibility, overlay,+notification access, SMS and call log, and it can complete a payment by tapping. The only guardrail on+that path is Android's `FLAG_SECURE`; the prompt-level checks on risky actions are instructions to the+model, not enforcement.++## Install++Android 11+ (`minSdk 30`), arm64-v8a for anything bought in the last several years. There is no binary+in this release; build one:++```bash+git clone https://github.com/kuafuai/andee+cd andee+git checkout v0.1.1+./gradlew :app:assembleDebug # installs as-is, signed with the debug certificate+```++`assembleRelease` needs your own keystore — the repo has none, so it produces an unsigned APK. Either+way the APK is **per-ABI** (`splits` in `app/build.gradle`), so pick the file that matches the device.+Full from-scratch setup is in the README's **Provisioning** section. Then, in this order: grant+Overlay → enable Accessibility → tap the ball → put in your own keys under ⚙.++**Upgrading from v0.1.0:** `versionCode` moves `1 → 2`, so this installs over it normally. An old+`wizard_done` preference is left in place and never read.++**Full Changelog**: https://github.com/kuafuai/andee/compare/v0.1.0...v0.1.1