Skip to content
Projets

À propos

Scam-aware Android messaging app: AI summaries, notes & todo from SMS and notifications. Kotlin + Jetpack Compose.

Productivité et automatisation

Comment ces chiffres sont mesurés

What you can do

  • 📩 Notification Interception & Preview: Reads notification content in real time via NotificationListenerService without opening LINE, Instagram, SMS, or other source apps, preventing "read" receipts.
  • 🎨 3-Layer Custom Backgrounds & Card Surface Modes: Independent Global / AI Chat / Conversation background images (layered fallback, downsampled storage to prevent OOM), dark readability scrim, Liquid Glass card intensity slider, and 3 card surface modes (Follow Glass / Transparency Slider >= 15% / Dark Surface).
  • 💬 Continuous Quick Reply from Notification Shade: After replying via AI Assistant, keeps a MessagingStyle proxy conversation notification in the shade for continuous multi-reply input with history and honest failure status, supporting swipe-dismiss, close, and idle auto-collapse.
  • 📝 Auto-Memo / To-Do Rule Engine: Floating top-right overlay to manage manual, natural-language (AI-parsed + confirmation card), and "Never Auto-Memo / To-Do" 3-scope rules with never > todo > note priority and AI semantic keyword matching, plus one-tap jump from to-dos back to source messages.

Progression mesurée des étoiles

in 24h
0
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

English | 繁體中文

PhantomCheck

An intelligent Android anti-scam message management app: intercepts notification previews without triggering read receipts in the original apps, combining keyword filtering, AI scam risk analysis, a Scam Alert Center, and SMS auto-reply to safeguard daily communications.


Privacy & Disclaimer

This app uses a 100% local storage architecture with no proprietary servers, no account system, and no telemetry tracking. AI analysis and threat-intel lookups connect to third-party services only after you enable and configure them. Before use, please read the Privacy Policy (PRIVACY.md) and Disclaimer (DISCLAIMER.md).


System Requirements

  • OS: Android 8.0 (API 26) or higher
  • Liquid Glass Blur: Real-time background blur is supported on Android 12 (API 31)+; lower versions or Battery Saver mode automatically fall back to translucent tinting
  • Required Permissions: Notification Access (Notification Listener); on Android 13+, granting Notification permission is recommended to display scam alerts and persistent stats

Core Features

  • 📩 Notification Interception & Preview: Reads notification content in real time via NotificationListenerService without opening LINE, Instagram, SMS, or other source apps, preventing "read" receipts.
  • 🕵️ Public Anti-Scam Threat-Intel Pre-Check (Zero-Token): Before AI analysis, extracts URLs, short links, and cryptocurrency addresses (BTC/ETH/TRON) and sequentially queries the local 72-hour cache, fraud.tw (165 reports), Google Safe Browsing v4, and optional PhishTank / Chainabuse (never sends full message text; hits trigger immediate alerts without consuming daily AI quota).
  • 🛡️ Multi-Provider AI Scam Analysis, Per-Purpose Routing & Offline Retry Queue: Supports multiple AI profiles including Mistral, OpenAI, Groq, OpenRouter, Gemini (OpenAI-compatible), and DeepSeek, with per-purpose model assignment (auto-memo follows the message-analysis model) and instant switching/syncing in AI Assistant and Deep Analysis; transient network/server failures automatically enter the offline retry queue (WorkManager retry on reconnect).
  • 🚫 Smart Notification Deduplication & Filtering: Automatically filters ongoing notifications, group summaries, and disconnect-replay duplicates; supports same-key deduplication throttling with per-app overrides (0s = never throttle; messaging notifications with updated postTime record new messages with identical content), keyword filtering (including per-app rules), and an app mute list.
  • 📊 Persistent Stats Notification, 5-Tab Navigation (Large-Screen NavigationRail) & Search-First Settings Hub: Custom RemoteViews persistent notification displays the PhantomCheck icon on the left and recent notified apps ("newest on left, oldest on right") on the right with the latest marked, tapping follows per-app/PhantomCheck settings (swipe-dismiss seamlessly rebuilds in place + 15-minute heartbeat + Shizuku cross-process watchdog); in-app 5-tab Liquid Glass UI ("Messages, AI Assistant, Notes, Memory, Insights", where "Insights" merges "Companion | Stats" top sub-tabs, and screens >= 600dp automatically switch to a left NavigationRail) plus a search-first 8-category Settings Hub (dual-mode keyword / AI semantic search, 6 customizable pinned quick settings, recent adjustments, and 24 advanced settings + Shizuku collapsed by default and auto-expanded/highlighted on search hits).
  • 🤖 AI Assistant, AI Companion (AI Diary / Long-Term Goals / 5-Stage Intimacy), Proactive Intel Hub & Web Search, Morning/Evening Briefings & Milestone Alerts: Built-in read-only RAG chat assistant (slide-out history drawer with default-collapsed + live unread badge dedicated proactive-message chatroom, HH:mm bottom-right bubble timestamps, top unresolved-items pill bar and 7-day expiring continuation anchors, automatic extraction of non-sensitive, conflict-free memories with subtle notice and delete BottomSheet, image vision viewing, collapsible "Reasoning" chain-of-thought display, LocalDataConnector direct local calendar access where specific events come verbatim from local calendar queries or honestly refuse if none found, UsageStatsManager usage queries, and Health Connect health summary queries that inject 7-day aggregated values only when health is asked in chat and "Allow AI to read health summary" is enabled—raw physiological sample series never leave the device, and unauthorized queries honestly refuse—in-chat "🔍 Web Search" toggle supporting native Google Search Grounding with source-link parsing on Gemini 3+ and BYOK search endpoints or honest disabled state on other providers, single-intent single-card tool calling with confirmation cards), PhantomMarkdownText rendering, and "Yesterday's Briefing"; Proactive Intel Hub (off by default; when enabled, uses AiPurpose.PROACTIVE daily quota to extract candidate watch_topics from non-sensitive memories and chats, and after user confirmation periodically queries short topic strings online with 12h cache and SHA-256 deduplication, pushing only new findings to the proactive chatroom and notifications with "💬 Follow Up" and "Stop Watching"); rightmost "Insights" tab ("Companion" sub-tab) shows a pinned full-width cardless assistant avatar & name banner (with independent custom region background), companion days, 5-stage intimacy details (Lv1–Lv5 "Kindred", thresholds 50/160/420/900), AI Diary / Daily Review (daily 00:30 zero-token SQL aggregated timeline + monthly overview with optional collapsible AI annotations), Long-Term Goal Tracking (created via structured-signal confirmation cards, broken into recurring sub-todos with single-point ReminderScheduler completion trigger and dedup guard, max(today, previous dueAt + cadenceDays) next-due anchoring, dedicated persistent auto-downgrade after 3 consecutive overdue periods, milestone truth-tracking, and full offline manual management), 7-day activity, and "What I Know About You" profile card; supports 08:45 morning / 22:25 evening personal briefings (morning briefing integrates Health Connect physiological data via local lookup-table rules), event-milestone deduplicated proactive notifications (each todo/event reminds at most once at 24h before / N min before / overdue + 10-minute content-hash double guard, with 👍/👎 feedback; includes HealthObservationPolicy proactive health alerts for 2 consecutive nights sleep <6h, 3 consecutive days steps <2000, or resting HR >=12bpm above 7-day average via pure local lookup, max 1/day and 2/week per rule), CalendarInsightEngine periodic calendar intel (default 60 min, queries external intel using only title + date <= 60 chars with strict dedup), independent DND, and separate daily caps for briefings and proactive alerts.
  • 🔗 Linked Apps Hub, Declarative Blocked-Action Rerouting, Permission Hub & Scheduled Task Templates: LinkedAppsActivity is driven by a single-source declarative LinkedAppActionRegistry (ready-to-use alarms/timers, local calendar/usage stats, GitHub PAT 15-minute polling with sync/error status, and Discord Webhook read-only/forwarding, with keys encrypted via EncryptedByokStore) plus "Confirm Before Execute" cross-app action cards; IntentCapabilityRegistry declarative capability table & blocked-action rerouting (REMINDER / MEMO / CALENDAR_ADD / OPEN_APP automatically downgrade to safe fallback paths with user notice when blocked by permissions or OS limits, or show plain-language reasons + direct Permission Hub button if all paths fail—never executing silently); PermissionHubActivity centralizes Notification, SMS, Contacts, Calendar, Exact Alarm, Battery Optimization, Usage Stats, and Health Connect (including independent "Allow AI to read health summary" toggle) permissions plus 4-brand restricted-settings guides; AssistantHubActivity centralizes briefings, proactive calendar intel, scheduled task templates (TaskTemplateEngine 3-step wizard + WYSIWYG preview, zero-AI aggregation phase), and Contacts integration (raw contacts are never sent to AI).
  • 📝 Notes & To-Dos, 11 Home-Screen Widgets, Local Calendar Day/Week/Month Views, Auto-Memo & Schedule Routing: Supports natural-language and manual to-do reminders (priority, notes, daily/weekly recurrence, filtering/sorting, synced with alarm scheduling, home-screen widgets, and the "Notes" tab), 11 home-screen widgets (7 existing stats/AI summary/notes/to-do/anti-scam quick widgets upgraded with targetCellWidth/Height, previewLayout, and dedicated vector previews, plus 4 new widgets: Today's To-Dos, Goal Progress, Quick Note, and Health Snapshot), Notes tab local calendar Day/Week/Month views & Settings account-grouped batch selection (filters visible calendars by default with one-tap "Select All Visible"), AI auto-memo (smartly infers time clues from messages and schedules 30-minute advance reminders), schedule-type notifications default to creating only local calendar suggestion cards (avoiding duplicate to-do/memo writes; revertible via schedule_memo_route in Settings), and conversational add/remove whitelist or tag rules (enforces confirmation dialog + DB read-back verification).
  • 🏷️ AI Smart Tagging, Dual-Threshold Anti-Scam False-Positive Reduction & Whitelist Rule Management: Single AI analysis supports 0–3 tags + zero-token app category rules; DecisionEngine prioritizes deterministic signals with an AI semantic cap (threshold - 10) and reversible/irreversible matrix, strictly tightening automatic scam tagging (requires threat-intel hit, crypto address, or concrete scam-operation signals; generic links or conflicts with 30-day high-reputation senders/contacts downgrade to confirmation cards, and token-saving suspicious-feature triggers are tightened to cut daily false positives), supports one-tap 4-category "This judgment is wrong" feedback written back to rules, sender reputation, and encrypted benign-domain LRU; whitelist uses full-table queries and unified dedup writes, with an app-grouped collapsible whitelist manager in Settings.
  • 💬 App Grouping, Card Layout Modes, Sender Avatars & Self-Reply Bubbles: Browse grouped by app and MessagingStyle conversation key (both Home and Notes tabs share "Standard List (rounded segmented group list) / Center Stack" layout modes: Center Stack uses LazyColumn continuous inertial scrolling + damped spring snapping, compact 6dp edge gap, linear lerp centering, symmetric contentPadding keeping 2–3 cards stably drawn above, dynamic zone preventing short-list overlap/sinking, 92dp compact cards (104dp max for large font), 40dp peek band, near-focus scale easing (0.94f→1.0f) with 0.04f step-down (floor 0.82f) and focus shadow gradient), supports sender avatar extraction with 3-tier fallback (notification avatar → app icon → initial colored avatar), Favorites and VIP sender pinning, direct in-conversation reply persisted as right-aligned bubbles (with 3-minute self-reply echo suppression and "My Name" group self-identity detection), keyset pagination (LIMIT 200), swipe-left bubble delete, multi-select batch management (up to 100, scam-protected excluded), fixed header + independently scrolling message list, 3 smart filter pills + "Filter ▾" sheet (Starred / Noted / To-Do / Tags / Sort), and persistent top global search pill button, pull-down overscroll gesture at list top (removed persistent 22dp handle visual), and full-screen Global / AI Semantic Search (All / Messages / Settings / Memory / Notes scope filters).
  • 🧭 Visual Onboarding & Settings Walkthrough: 8-step Home core spotlight tour + 5-step Settings Hub tour (upgrading users keep their completion flags and see a one-time v4.0 quick-tour banner in Settings), auto-switching tabs per step, merging empty-DB message actions, waiting for Android 13+ system permission dialogs, offering per-brand "Allow restricted settings" troubleshooting, direct app Notification Access detail page links, and one-tap Shizuku authorization; callout cards avoid covering highlighted areas and support Light, Dark, and Dynamic Color high-contrast reading with spotlight touch-through.
  • 🔋 5-in-1 Token Saver & Battery / Stability Optimization: Prompt Cache Key & static prefix design, dual-model confidence routing (cheap model first, escalate on ambiguous range), incremental context summary, dynamic image-size estimation, automatic blur disable on Battery Saver, plus KeepAlive (45 min) / Shizuku (600 s) power-saving polling, Heartbeat KEEP debouncing, screen-off early exit, and foreground-service exception guards.
  • 🚨 Scam Alert Center, Do Not Disturb & SMS Auto-Reply: Centralizes high-risk scam messages, intel sources, and trend comparisons (accessible from message risk cards or Stats Top 5); supports DND schedules and SMS auto-reply (SMS records are ingested and deduplicated solely via notification interception while the receiver handles auto-reply, with 4-hour per-sender cooldown, 3/day cap, and template self-reply guard).
  • 📄 CSV Export, Retention Policy, Storage Maintenance & Encrypted Keys: One-tap CSV export to Downloads; Settings "Data Management" provides storage breakdown and "Compact Database Now" (periodic VACUUM + expired data / 300-entry avatar cache cleanup); EncryptedSharedPreferences locally encrypts AI, threat-intel (Safe Browsing / PhishTank / Chainabuse), GitHub PAT / Discord Webhook / external search endpoint keys, editable directly in Settings (BYOK, no BuildConfig fallback).
  • 🎨 3-Layer Custom Backgrounds & Card Surface Modes: Independent Global / AI Chat / Conversation background images (layered fallback, downsampled storage to prevent OOM), dark readability scrim, Liquid Glass card intensity slider, and 3 card surface modes (Follow Glass / Transparency Slider >= 15% / Dark Surface).
  • 🔍 Auto & Manual Update Checker (Snooze State Machine): Automatically checks GitHub Releases on app launch when online, always showing dialog + notification when not snoozed (only tapping "Later" sets snooze; dismissing/swiping never swallows alerts; at most 1 auto-retry per process on failure), alongside manual check and persistent state tracking (DownloadManager dual-path polling + ON_RESUME re-check + failure retry + Android 8+ unknown-sources one-step guide + FileProvider APK install flow).
  • 💬 Continuous Quick Reply from Notification Shade: After replying via AI Assistant, keeps a MessagingStyle proxy conversation notification in the shade for continuous multi-reply input with history and honest failure status, supporting swipe-dismiss, close, and idle auto-collapse.
  • 📝 Auto-Memo / To-Do Rule Engine: Floating top-right overlay to manage manual, natural-language (AI-parsed + confirmation card), and "Never Auto-Memo / To-Do" 3-scope rules with never > todo > note priority and AI semantic keyword matching, plus one-tap jump from to-dos back to source messages.
  • 📈 Custom Stats Dashboard, Health Connect 7-Day Trends & Daily App Leaderboard: Stats tab features a local "Weekly Highlights" natural-language bar, Morning/Evening Briefing card, Health Connect 7-day sleep/steps mini-bar trend chart (pure local aggregation, zero AI), Today's Top 5 App Message Leaderboard, 7-day risk trend line, unread/read donut, per-app share bars, and to-do completion ring; weekly AI summary supports missed-run catch-up, auto-continuation on incomplete sentences, full-text expand, and retry, with per-card visibility toggles in Settings "Data & Backup".
  • 🌐 Bilingual UI, In-App 3-State Language Switch & Multilingual AI / Anti-Scam Layer (i18n): Built-in Traditional Chinese (values-zh-rTW) and default English (values/, fallback = en) resource buckets (2,932 UI and XML @string resources); Settings Hub supports 3-state "Language" switching (Follow System / 繁體中文 / English; API 33+ syncs via LocaleManager per-app settings, API 26–32 smoothly recreates via attachBaseContext); notifications, widgets, Settings search catalog, and AI natural-language outputs (risk analysis, auto-memo, weekly summary, deep analysis, briefings, diary annotations, proactive intel) all follow the app language setting, while rule-based scam detection (IndicatorExtractor / MemoryEngine / ContactContext) supports both Chinese and English scam lexicons offline.
  • 🖥️ Desktop Companion (0.11.1) & Encrypted LAN Link (PROTOCOL_VERSION = 2): Compose Multiplatform Windows desktop companion (-setup.exe sole installer with single-instance guard, startup verification, 4-in-1 notification center, system tray resident mode, light/dark frosted themes, 10 system + 16+ customization settings, instant language switch, launch-time auto-update check, update dialog, and About page). Uses a desktop-hosted WSS server (wss://<lan-ip>:49515/link) + phone OkHttp client architecture: the phone pairs by scanning the desktop QR code (bundled ML Kit, works offline without Google Play Services) or manually entering the desktop LAN address, requiring a 6-digit single-use pairing code on first pair and enforcing TLS SHA-256 certificate fingerprint pinning (with fingerprint-keyed dynamic mDNS resolution) for reconnects, with two-way message thread sync, starring, tagging, full CRUD to-dos/notes, quick reply, deep analysis, and multi-session AI chat.

Release History

For the complete changelog, see CHANGELOG.md.

v6.0.3 Release Highlights (versionCode 74, Desktop 0.13.3, 2026-12-02)

  • Compact LIST Bento Row (#680): the home 2×2 Bento summary (~184dp) is now a single row of four compact cards (~70dp), handing back ~114dp of message-list viewport; cards use a 64dp minimum height, 16dp corners and a 22dp icon container, automatically fall back to a two-row FlowRow below 360dp width or at fontScale ≥ 1.3, and keep the previous subtitle meaning inside contentDescription.
  • Compose BOM 2026.11.01 & compileSdk 37.1 (#682): Compose BOM moved from 2026.09.00 to 2026.11.01 with compileSdk aligned to 37.1; CenterFocusCardStack migrates to the official LazyColumn(cacheWindow = …) parameter API and drops the redundant @OptIn, with stack geometry and feel untouched.
  • Event-driven Read/Star Sync (#681): every phone-side mark-read and star toggle (mark-all-read, swipe, batch, AI command) now pushes to the desktop event-driven with zero cost while disconnected; the desktop reconciles unread counts from the phone-authoritative STATS_SNAPSHOT when a page is not loaded, so unread counts no longer under-report.
  • Desktop 0.13.3 (#681): CHAT_STREAM_CHUNK / CHAT_STREAM_END now carry session guards so switching sessions cannot inject bubbles; date dividers and schedule parsing moved to constant java.time formatters and pre-compiled regexes for hot-path performance.
  • 中文摘要:訊息頁 LIST 模式 Bento 由 2×2 大卡改為單列 4 格緊湊卡,清單可視高度增加約 114dp,窄幅/大字體自動退回兩行且無障礙語意保留;Compose BOM 升 2026.11.01、compileSdk 37.1,中央堆疊快取視窗遷移官方參數版 API、手感零變動;手機已讀/星標改事件驅動即時同步桌面,桌面未載入分頁以權威統計快照收斂,AI 串流補會話隔離;本版 versionCode 74、versionName 6.0.3、桌面端 0.13.3,為測試版(pre-release)。

v6.0.2 Release Highlights (versionCode 73, Desktop 0.13.2, 2026-12-02)

  • CENTER "Mark All Read" Restored (#673): the 44dp mini summary strip in CENTER stack mode now carries a compact TextButton at the end of the row (shown only when unread > 0) that shares the exact onMarkAllRead path with LIST mode.
  • Duplicate Assistant Name/Avatar Fixed (#674): the legacy avatar + name row ahead of ChatWorkbenchAiBlock was removed, so regular and proactive AI chatrooms each render one header; the default assistant shows chat_s_8dd976 (same resolution as the top bar) and the model pill now uses >= 0.9 opacity background.
  • Readability & WCAG 2.2 AA Contrast (#676): chat timestamps go from 10sp to 11sp with high-contrast solid colour; BentoStatusCard, BentoMetricCard and unselected tab text were corrected across Light / Dark / high-contrast themes, with a re-runnable contrast JVM test.
  • Desktop 0.13.2 (#676): metadata contrast under the CYAN accent fixed, and desktop unread stats refresh instantly after a cross-device "mark all read".
  • Tests (#675): AppNavigationSmokeTest.smoke01 now follows the four-tab contract (notes_s_7dff4f, memory_s_c425e2, common_partner + common_stats, bento_link_title), fixing scheduled E2E run #8, plus a new CENTER mark-all-read smoke.
  • 中文摘要:CENTER 堆疊模式補回「全部標已讀」(44dp 迷你條不變、與 LIST 共用實作);AI 聊天室移除重複的助手頭像+名稱列,模型膠囊底色不透明度提升;聊天時間戳 10sp→11sp 且三主題達 WCAG 2.2 AA;桌面 0.13.2 修復 CYAN 強調色下 metadata 對比並讓跨端「全部標已讀」即時刷新;E2E 導覽 smoke 對齊四分頁契約(修復排程 run #8)。本版 versionCode 73、versionName 6.0.2,為測試版(pre-release)。

v6.0.0 Release Highlights (versionCode 71, Desktop 0.13.0, 2026-12-01)

  • Quote-to-AI Everywhere (#657): quote any message to the AI conversation from the center stacked card long-press / action menu, the conversation page (single long-press, top bar menu and multi-select batch bar), the App-group menu ("quote latest message") and the message detail page, all reusing the existing quoteMessagesToAi pipeline with the MAX_QUOTES limit prompt.
  • Gemini-style Scheduled Actions (#659): create daily / weekly / monthly / one-off tasks in natural language (strict intent gate + confirmation card), manage up to 10 schedules, and receive results through the existing proactive pipeline; network access is on by default and can be turned off globally, and schedule contents never leave the device.
  • Scheduled Replies & 5-Second Undo Buffer (#660): schedule a reply (default 08:30 next morning) from quick replies, cancel it before it fires, and undo AutoReply / notification one-tap replies within 5 seconds; OTP / banking keyword drafts require a second confirmation.
  • Stable / Beta Update Channels (#661): switch between stable and beta channels on both phone and desktop, with release.yml now publishing prereleases.
  • Fixes: unread list / counter single source of truth (#658), natural-language schedule intent gate regression (#665), release.yml workflow_dispatch checkout ref (#665).
  • 中文摘要:引用至 AI 對話入口全面鋪設(中央堆疊、對話頁、多選批次、App 群組、詳情頁);Gemini 式排程任務(自然語言建立+確認卡、上限 10、聯網可關);排程回覆與 5 秒撤回緩衝;正式/測試雙更新通道;並修復未讀清單與統計不一致、排程閘門誤攔閒聊、release.yml 手動觸發 checkout ref。本版 versionCode 71、versionName 6.0.0、桌面端 0.13.0,可直接覆蓋 5.6.4 升級。

v5.6.4 Release Highlights (versionCode 70, Desktop 0.12.1, 2026-11-30)

  • Startup Crash Fix for DB user_version 28 (#654, PR #655): devices left at Room user_version 28 by v6.0.0 crashed on every launch after rolling back to 5.x; DbDowngradeHelper now also covers 28→25, dropping the #641 anchorWeekday / anchorMonthDay columns, with all user messages, notes and to-dos preserved.
  • 中文摘要:曾安裝 v6.0.0 的裝置(DB user_version 28)覆蓋降回 5.x 後每次啟動必閃退;DbDowngradeHelper 降級範圍放寬至 28→25,補移除 #641 排程錨定日欄位 anchorWeekday/anchorMonthDay,訊息/記事/待辦資料全數保留。

v5.6.3 Release Highlights (versionCode 69, Desktop 0.12.1, 2026-11-29)

  • Startup Crash Fix after the v6.0.0 Rollback (#651, PR #652): devices that had installed v6.0.0 crashed on every launch after upgrading back to the 5.x line, because the Room schema downgrade path (27→25) was missing; DbDowngradeHelper now checks PRAGMA user_version before Room opens and, on 26–27, downgrades the DB structure back to v25 in a single transaction (drops scheduled_sends and the three v6 task_template columns, rebuilds the v25 identity), idempotent and non-fatal on failure, preserving all user messages, notes and to-dos.
  • 中文摘要:曾安裝 v6.0.0 的裝置覆蓋回 5.x 後每次啟動必閃退(Room schema 27→25 降級缺失,App 初始化 DB 即拋 IllegalStateException);本版新增 DbDowngradeHelper,在任何 Room 開啟前偵測 user_version 26–27 並以單一 transaction 將 DB 結構降回 v25(移除 scheduled_sends 與 task_template v6 三欄、重建 v25 identity),冪等且失敗不崩潰,使用者訊息/記事/待辦資料零損失。

v5.6.2 Release Highlights (versionCode 68, Desktop 0.12.1, 2026-11-29)

  • Full v6.0.0 Rollback (#647, #649): Reverted the entire v6.0.0 batch (#630–#636, #641, part of #643, #645) so the code is identical to 5.6.1; versionCode 68 and Desktop 0.12.1 exist only as an overwrite-upgrade carrier (68>67, 0.12.1>0.12.0) for devices already on v6.0.0, and the v6.0.0 Release and tag were removed.

v5.6.1 Release Highlights (versionCode 66, Desktop 0.11.1, 2026-11-29)

  • Desktop Version Constant Sync (#628): Updated DesktopSettingsStore.CURRENT_DESKTOP_VERSION from 0.10.0 to 0.11.1 (matching desktopVersion = "0.11.1"), fixing the splash screen version, Settings About label, DesktopUpdater self-comparison (up-to-date detection), and HTTP User-Agent headers.
  • Notes Center-Stack Card Layout Fix (#628): Removed the large mid-card blank gap caused by Spacer(weight(1f)) and cramped top/bottom edges in collapsed stack cards, adopting a tighter proportional height (112dp, 128dp when fontScale ≥ 1.3) with preview lines anchored directly below the top bar while keeping the 40dp stack exposure bands free of half-cut glyphs and preserving the 74%-height expanded overlay.
  • Bilingual README Sync (#628): Updated Core Features to Desktop 0.11.1 and caught up the missing v5.6.0 and v5.6.1 release highlight sections in both README.md and README.zh-TW.md.

v5.6.0 Release Highlights (versionCode 65, Desktop 0.11.0, 2026-11-29)

  • Notes/To-Dos & Settings Deep-Link Fixes (#604, #605, #617, #619, #622): Fixed note stack body clipping, live-resolved expanded overlay (auto-collapses on delete with no ghost card), and to-do layout/system-schedule folding; settingsAnchor now reports every id and expands advanced sections before scrolling, including notify_screen_mode and desktop_widget_card.
  • Floating Chat & Desktop Settings 6-Category IA (#606, #607): Added compact/standard floating-chat headers and S/M/L window sizes; reorganized the desktop settings center into six categories (CONNECTION / NOTIFICATIONS / ORB_CHAT / APPEARANCE / SYSTEM / ABOUT).
  • Quote Messages to AI Chat (#608): Phone long-press and multi-select quoting (max 3), quote chips and shared QuotePromptTemplate (fully sanitized, Token Saver ≤40 chars); desktop message-card quoting, bubble quote chips and replay cards (chat.context.fetch); Room 24→25 adds chat_messages.referencedMessageIds (non-destructive migration).
  • Floating Orb Inline Reply & Mini-Chat Enhancements (#609, #610): Inline reply inside notification bubbles (QUICK_REPLY_SEND with honest offline disable, error codes, and local echo); mini-chat quote chips, local-rule dynamic suggestions (max 4, zero AI tokens) and image attachments (imageDataUri ≤1MB with auto-compression).
  • Desktop Multi-Monitor Support (#611): Four notifyScreenMode options (PRIMARY / FOLLOW_ORB / FOLLOW_MOUSE / EXPLICIT:<deviceId>), per-device orb position memory, and hot-plug fallback to primary.
  • AI Chat Streaming Output (#612): chatAssistantStream SSE streaming with automatic non-stream fallback and cancellation; typewriter rendering + stop button on phone and both desktop chat windows; partial replies are never persisted and interrupted replies are saved with an explicit note.
  • Contact Relationship View, Scam Trend Dashboard & Desktop Today Widget Card (#613, #614, #615, #625): Paginated contact interaction timeline (messages + notes/to-dos + AI memories) with BYOK 24h-cached relationship summary; on-device weekly scam trend dashboard (top-10 risky phrases, 7-day line chart, top-5 involved apps, zero AI tokens); 220×148dp always-on-top desktop today widget card with multi-monitor position restore (clampToAllMonitors) and stable timeline keys.
  • Protocol & Database (additive): PROTOCOL_VERSION stays 2; added chat.context.fetch/.res, chat.stream.chunk, chat.stream.end, chat.send.cancel, and optional referencedMessageIds/imageDataUri fields; Room schema 24→25.

v5.5.0 Release Highlights (versionCode 64, Desktop 0.10.0, 2026-11-29)

  • Proactive Intel Reliability (#597): The app now re-schedules watch-topic extraction and proactive intel work on every launch (ExistingPeriodicWorkPolicy.UPDATE), so a force-stopped app self-heals after the next launch; the relevance judge is fail-open instead of silently dropping every topic when the AI provider times out or returns non-JSON; per-topic errors and a status-summary row surface in diagnostics; and the watch-topic list explains candidate topics, shows each topic's last query time and warns when the master switch is off.
  • Cross-Device Chat Sync (#598): The floating orb and the main window now share a single DesktopChatState (one CHAT_* collector for the whole desktop, so the two windows no longer hijack each other); phone session create/delete/activity is pushed instantly (chat.sessions.changed) and the desktop can delete sessions (chat.session.delete); new conversations are no longer merged into an old session.
  • Floating Assistant Chat UX (#599): The title bar is now "+ New Chat / ☰ Sessions / Open PhantomCheck / ✕"; a session drawer lists every session with one-tap switching, two-step delete confirmation and an offline hint; text size follows the app's chatFontSize setting; new messages auto-scroll; window geometry and drag/snap stay unchanged.
  • Dual-End Audit (#600): User-visible reply paths were classified and wired to live sync, with zero new per-second polling and no new SimpleDateFormat/Regex anti-patterns in the touched files.
  • Behavior Change (additive): chat.sessions.changed / chat.session.delete are additive; PROTOCOL_VERSION stays 2 and older desktop builds ignore unknown types.

v5.4.0 Release Highlights (versionCode 63, Desktop 0.9.0, 2026-11-28)

  • Mobile Rookie Experience (#590): First launch adds three skippable value cards and a progressive setup checklist (notification access and battery optimization recommended; AI key and desktop link optional, with live completion and dismissal); the Home settings gear shows a "New" badge until settings is opened, and Messages shows a dismissible setup-progress card; the Link Hub gains a radar empty state, three-step guide, QR composition frame/distance hint, connected-desktop card, local 20-entry event timeline, expandable troubleshooting and pairing-success animation; Settings adds rookie suggestions, category subtitles, suggested search terms and pin guidance. Desktop remains 0.9.0.

v5.3.0 Release Highlights (versionCode 62, Desktop 0.9.0, 2026-11-28)

  • Desktop UI Modernization (#589): The desktop sidebar is drag-resizable (120–320dp, persisted) with Ctrl+B collapse, grouped navigation and tooltips; Ctrl+K global search covers conversations, notes, to-dos and settings with arrow-key selection and Enter navigation; the disconnected Home page shows a three-step connection guide and semantic battery/Wi-Fi/storage/last-sync chips; QR pairing is a three-step wizard with success animation, fingerprint/LAN security notes and classified failure guidance; conversation rows and bubbles use unread semantic color, a 520dp maximum width, hover copy/remove-from-view actions and a load-more indicator; EXPANDED settings use a two-column category rail; the ? shortcut help panel and Ctrl+1..8 navigation are included; desktop spacing/corner tokens and empty states are unified. No changes to link, TLS, updater or protocol logic.

v5.2.1 Release Highlights (versionCode 61, Desktop 0.8.1, 2026-11-27)

  • Desktop Update Channel Fix (#583): Bumped the Desktop Companion version from 0.8.0 to 0.8.1 (desktopVersion, CURRENT_DESKTOP_VERSION, and Inno Setup default MyAppVersion), enabling existing 0.8.0 users to receive the update prompt via DesktopUpdater and install the R15/R16/R17a desktop fixes (including the Fail-Closed updater and 48dp PhantomDialog).
  • Documentation Sync (#583): Added the missing v5.2.0 and v5.2.1 release highlight sections to README.zh-TW.md, and updated the outdated Desktop Companion version in the Core Features overview of both README.md and README.zh-TW.md to 0.8.1.

v5.2.0 Release Highlights (versionCode 60, Desktop 0.8.0, 2026-11-27)

  • Audit Remediation Complete (R1–R17, 239 findings, 20 PRs): All P0 (44), P1 (143) and P2 (52) items from the cross-end audit were fixed across 17 dependency-ordered rounds — shared data layer and DAO extensions, util bridges, notification risk pipeline, scheduling/workers, proactive intel + Shizuku, cross-end link, widget refresh pipeline, CI/CD supply chain, motion/UI components, main UI and message flow, chat core, settings, management pages, tab UI, desktop core, desktop UI, and a repo-wide i18n/cleanup sweep.
  • Security: constant-time fingerprint comparison and full SHA-256 pinning in DesktopLinkClient; author_association gate plus SHA-pinned actions in opencode.yml; Fail-Closed desktop updater that rejects installs without a matching .sha256; allowBackup=false together with dataExtractionRules; unsigned release builds now fail fast.
  • Performance & Reliability: DAO range/aggregate queries replace full-table loads, SQLite bulk deletes are chunked at 500 variables, OOM and main-thread I/O paths fixed; foreground services obey the 10-second startForeground rule, workers rethrow CancellationException, exact alarms check canScheduleExactAlarms() with an inexact fallback, plus OEM ROM defenses.
  • i18n & Cleanup: 86 user-visible strings moved into values / values-zh-rTW, 641 unused imports removed, 17 regexes lifted to file-level constants with a cached dynamic pattern; regex validation errors are now localized.

v5.1.0 Release Highlights (versionCode 59, Desktop 0.8.0, 2026-11-26)

  • Message Sync, Title Fix & Group Report Entry (#531, #527): Desktop Messages adds paginated loading (60 per page, scroll-to-bottom auto-load, sync count & timestamp, honest offline error/retry), non-overwriting isRead/isStarred merges, a 3-tier title fallback chain, and a Conversation View / Group by App toggle; Android Messages adds an icon + text Group Report ModalBottomSheet entry sharing GroupReportsViewer with Settings.
  • Floating Orb Root-Cause Fix & Popup Customization (#528, #529): Added DesktopScreenMetrics (AWT px ↔ Compose dp) to fix multi-DPI drag drift, moved orb hover cards/bubbles to a secondary window to eliminate resize-twitch loops, switched drag to synchronous positioning, and added 6 custom hover actions; Settings adds popup background image picker (≤5 MB), scrim slider (0.30–0.90), HEX color + 6 preset swatches, remainingMs hover-pause/resume state machine, countdown badge toggle, and 3–20s duration.
  • Splash Screen & Dual-Track Startup (#530): Added a pure JDK AWT borderless splash screen (8s failsafe, suppressed under --minimized/--tray) and upgraded Windows startup to dual-track (HKCU Run + per-user Task Scheduler PhantomCheckDesktopLogon with LeastPrivilege), cleaned on Inno uninstall and shown in Settings.
  • Proactive Intel v3 & Cross-End Sync Audit (#532, #533): Token Saver degrades gracefully (1 round/day, Google News RSS + local rules, zero AI tokens) with <48h freshness, SHA-256 dedup, diagnostics panel, desktop push mirroring (≤60-char excerpt) with "Stop Watching" mute write-back, and PRIVACY.md §6 updates; completed a 16-item cross-end sync audit, UI/copy polish, and bilingual string alignment.
  • Behavior Changes: Windows startup upgraded to dual-track (adds Task Scheduler task); additive proactive.event.push / watchTopic.mute protocol (PROTOCOL_VERSION stays 2); Proactive Intel enables unauthenticated news.google.com RSS requests; popup display duration expanded from 3|5|8s to 3–20s.

v5.0.0 Release Highlights (versionCode 58, Desktop 0.7.0, 2026-11-25)

  • Cross-End Feature Mega-Batch (#509, #511, #512, #516, #517, #518): Added a pure-Worker Group Report (#509) with App/Group selection, daily + N-message triggers, dual output modes, Room v23→v24 non-destructive migration, and an AI quota gate; added cross-app batch deletion from the Messages long-press menu (#511) with all existing guardrails; added a connection-status subtitle to the persistent notification (#512); made mDNS LAN discovery reliable with MulticastLock, auto-restart guards, retry limits, and a scanning UI (#516); synced phone device status (battery level & charging state) bidirectionally with zero polling (#517); and shipped the cross-end feature pack (#518) — two-way clipboard sync (default off), quick notes, desktop-to-phone notifications, find-phone ring, and URL opening — plus desktop REPORTS and TOOLS sidebar pages.
  • Light-Mode Contrast Fix & High-Contrast Toggle (#510): Repaired the light theme end-to-end (window background, status bar, glass cards ≥0.92 opacity, light scrim) and added a dark/light high-contrast toggle targeting 7:1 body-text contrast, replacing 35+ semi-transparent surface colors with phantomSurfaceAlpha().
  • Desktop Popup, Floating Orb & Fullscreen UX (#513, #514, #515): Added 16 popup customization keys with live preview, per-channel display frequency, and one-tap DND synced across sidebar/tray/Home (#513); fixed floating-orb drag drift at 125–200% DPI and multi-monitor setups with 8px spring edge snapping (#514); fixed orb AI message counts, added two-way chat sync, a 180° semicircle quick menu, Enter-to-send mini AI panel, and fullscreen auto-hide (#515).
  • Performance Audit & Phantom Aurora III Responsive Rebuild (#519, #520): Completed a repo-wide performance audit (#519) — ThreadLocal date formats, hoisted regexes, timeout recoveries, and zero new persistent polling — and rebuilt all five desktop pages around DesktopWindowClass (#520) with a unified PhantomDialog shell and WCAG-verified contrast tests (general ≥4.5:1, HC ≥7:1).
  • Behavior Changes: New normal permissions ACCESS_WIFI_STATE & CHANGE_WIFI_MULTICAST_STATE (#516); Room database v23→v24 non-destructive migration (#509); clipboard sync defaults to off (#518).

v4.9.0 Release Highlights (versionCode 57, Desktop 0.6.0, 2026-11-25)

  • #494–#504 Cross-End Desktop & Android Upgrades (PR #506):
    • Desktop Messaging, Notifications & Themes (#494, #497, #498, #504): Grouped Desktop Messages into conversation threads (packageName::conversationKey) with smart auto-scroll and batch multi-select (mark read / mute apps); added 4-in-1 Desktop Notification Center (auto-dismissing top banner, fullscreen-aware bottom-right toast, draggable edge-snapping floating AI orb, 8-item system tray menu); added zero-dep DesktopIcons, PackageManager-resolved friendly app names in stats (7d/30d/Hourly, Today's Active Apps, Weekly Top 5), Light Mode frosted theme toggle, and Alt+1..6 shortcuts.
    • Single-Instance, Startup Verification & .msi Retirement (#495, #496, Behavior Change): Added FileLock + loopback IPC single-instance guard and Windows HKCU\...\Run read-back verification with StartupApproved\Run disabled detection; retired the legacy .msi channel—Windows now ships exclusively as PhantomCheckDesktop-0.6.0-setup.exe, which silently cleans legacy MSI/Inno installs while preserving %APPDATA%\PhantomCheckDesktop settings and pairings.
    • Two-Way To-Dos/Notes, Phone Link & Filters & Focus (#499, #500, #501, #503): Fixed Android NotesTab note click editing and upgraded Desktop Todos/Notes to full CRUD forms + AI "Quote Latest Notification"; added 60s mDNS TTL, NetworkCallback reset, fingerprint-keyed dynamic IP:port resolution, and 6 failure diagnostics; unified cross-end Filters & Focus (過濾與專注) with 1h quick mute, tag management, and collapsed Advanced & System Android Settings; added additive DESKTOP_SETTINGS_SYNC and event-driven WidgetUpdater (≤5s refresh + 30-min WorkManager backup).
    • English UI Localization Audit (#502, Behavior Change): Audited 88 Android (values/strings.xml) and 13 Desktop (DesktopStrings.kt) English strings to native platform idioms without altering Traditional Chinese meanings (PROTOCOL_VERSION remains 2 with additive-only backward compatibility).

v4.8.0 Release Highlights (versionCode 56, Desktop 0.5.0, 2026-11-24)

  • #487 Windows Firewall Self-Check & One-Click Allow (PR #491): Added DesktopFirewallHelper.kt for read-only profile/rule inspection and UAC-elevated one-click creation of a scoped executable + TCP 49515 + -Profile Any firewall rule (with Public profile and 192.168.137.x hotspot warnings); Android adds 15s probe cooldown, "Diagnose Now" immediate probe, and bilingual PRIVACY.md disclosure.
  • #486 Camera Scanner R8 Crash Fix & QR Stability Hardening (PR #491): Added R8 full-mode keep rules for bundled ML Kit and firebase-components ComponentRegistrar.<init>() in app/proguard-rules.pro (verified via retrace and mapping.txt), fixing the release APK scanner NPE crash; QrScannerOverlay.kt adds back-camera precheck, ON_RESUME rebind, try/finally ImageProxy.close(), and safe teardown.
  • #488 Desktop Page Transitions & Glass/Surface Customization (PR #491): Added DesktopThemeTokens / LocalDesktopTokens for adaptive high-contrast text and borders, 4 page transitions (None / Fade / Slide / Scale) with preserved scroll state, glass depth and draw-phase background scrim sliders, and DesktopBackgroundHelper.kt for custom background image selection.
  • #489 Cross-End Performance & Battery Optimization (PR #491): Desktop isolates breathing animations (paused in tray), caps caches, throttles refreshAllOnConnect, memoizes Markdown/chart transforms, and adds a 60s WSS ping option; Android pauses mDNS and slows push/UI polling while screen-off, capping reconnect backoff sleep at 60s.
  • #490 Cross-End Global Audit Fixes E1–E10 (PR #491): Serialized NsdManager.resolveService with backoff, added 5-attempt 30s pairing code lockout + audit logging, local SHA-256 + optional .sha256 sidecar verification in DesktopUpdater.kt, R8 smoke/retrace rules in AGENTS.md, disconnect/timeout state resets, 3,024-key bilingual parity verification, and diagnostic logging.

v4.7.0 Release Highlights (versionCode 55, Desktop 0.4.0, 2026-11-24)

  • #476 Socket Direction Reversal & Certificate Fingerprint Pinning (PR #481): Desktop now hosts the embedded Ktor 3.6.0 Netty WSS server (DesktopLinkServer.kt, DesktopTls.kt, DesktopMdnsBroadcaster.kt, port 49515), while Android connects as an OkHttp WebSocket client (DesktopLinkClient.kt) with TLS SHA-256 fingerprint pinning, 1s→30s backoff, NsdManager discovery, and phase/error diagnostics. PROTOCOL_VERSION bumped to 2 (mandatory re-pairing).
  • #477 Phone QR Code Scanning for Desktop Pairing (PR #481): Desktop generates 3-minute single-use pairing QR codes (DesktopQrDialog.kt via zxing:core:3.5.4); Android scans offline without Google Play Services via bundled mlkit:barcode-scanning:17.3.0 + CameraX 1.6.2 (QrScannerOverlay.kt, QrPairingParser.kt) or falls back to manual LAN IP entry.
  • #478 Desktop Launch Auto-Update Check, Update Dialog & About Tab (PR #481): Added DesktopUpdater.kt (process-level single launch check comparing PhantomCheckDesktop-<semver>-setup.exe/.msi assets), DesktopUpdateDialog.kt (Markdown changelog + installer download/launch), and an "About" tab in Settings with project links and the latest 10 Releases.
  • #479 Instant Desktop Language Switch & 8→16 Customizations (PR #481): Fixed DesktopStrings.isZh via Compose mutableStateOf for instant full-UI/tray language switching, localized all setting enums, expanded customization settings from 8 to 16 (custom HEX accent, 12/24h time, card corner radius, blur intensity, chat font size, notification sound, auto-accept paired phones, startup tab), and upgraded DND to a cross-midnight time picker.
  • #480 Cross-End 10-Item Stability Audit Fixes (PR #481): Added command timeout tracking (8.5s / 130s), diagnostic/audit logging, 3-strike RATE_LIMIT_EXCEEDED disconnect + 120ms initial command pacing, UTF-8 Properties migration, composite chat list keys, bilingual classified error messages, JmDNS diagnostics, strict QR JSON validation, 1024x680 minimum window size (125% font scaling), and lifecycle-safe CAMERA handling.

v4.6.0 Release Highlights (versionCode 54, Desktop 0.3.0, 2026-11-24)

  • #465 Netty WSS Engine & Burst Rate-Limiting Fix (PR #473): Switched Android's embedded WSS server from ktor-server-cio to ktor-server-netty 3.6.0 (1/2/4 thread pools), upgraded rate limiting to Token Bucket (5/s + burst 12) with 100ms desktop startup pacing, added port-in-use preflight, dedicated markRead DAO, and Netty ProGuard/packaging rules.
  • #466 Phone Bottom Bar "Link" Tab (PR #474): Expanded MainTab from 5 to 6 tabs with LINK ("Link" / "連線"), extracted shared LinkHubContent.kt backed by the DesktopLinkServer singleton with foreground touchActivity() keepalive.
  • #467 7 New Two-Way Sync Capabilities (PR #474): Added two-way starring, message tag apply/remove, full to-do CRUD (ReminderScheduler sync), note listing/creation, single-message deep analysis (quota-tracked with refund on failure), muted app management, conversation thread preview (200-char cap) + phone battery/status + multi-session chat (PROTOCOL_VERSION = 1).
  • #468 Desktop Settings Hub, Glass Design System, Charts & Markdown (PR #474): Added 10 system settings (language, Windows startup --minimized, close behavior, DND notifications, backoff/heartbeat/preview tuning, profile manager, GitHub release check, 3 rotating logs) + 8 customization settings (accents, density, font scale, sidebar, card/mirror modes, backgrounds, animations), 1180x760 Master-Detail layout, Canvas 7-day/24h charts, Markdown-rendered AI Assistant, and keyboard shortcuts.
  • #469 Desktop System Tray Resident Mode (PR #474): Hoisted DesktopLinkClient and MdnsScanner to application {} using Compose Tray API; closing the window minimizes to tray by default while preserving LAN sync and native notifications (--minimized/--tray supported).
  • #470 Inno Setup Installer & Dual Desktop Assets (PR #474): Added desktop/packaging/windows/PhantomCheckDesktop.iss (per-user %LOCALAPPDATA%, desktop shortcut + post-install launch checked by default) alongside .msi, unified desktopVersion = "0.3.0", producing both PhantomCheckDesktop-0.3.0.msi and PhantomCheckDesktop-0.3.0-setup.exe.
  • #471 Cross-End Stability Audit Fixes (PR #474): Migrated link.properties (hmacSecret) to per-user ACL directories (DesktopPaths.kt), added sendCommand boolean feedback, 130s CHAT_SEND timeout, per-client clientCursors, safe activeSessions.remove(id, sess), off-EDT JmDNS.close(), runCatching around Gson, and proper CancellationException rethrowing.

v4.5.0 Release Highlights (versionCode 53, 2026-11-23)

  • #454 LinkHubActivity Desktop Settings Crash Fix (PR #459 / #463): Moved enableEdgeToEdge() after super.onCreate(), added targeted R8 keep rules for PairedDesktop/UnknownAttempt/CommandAuditEntry and qrcode.**, and wrapped all LinkHubActivity/DesktopLinkStore/DesktopLinkServer paths with runCatching and copyable wss:///SHA-256 text fallbacks.
  • #455 Smart Web Search Routing, RAG Integration & Source Quality Governance (PR #460 / #463): Added AiClient.decideSearchNecessityAndRewrite (combining RAG memory + last 12 turns, falling back to ruleBasedSearchDecision in Token Saver), domain-deduplicated clean source lists (max 3), and FreeWebSearchEngine HTML/encoding sanitization, readability/length filtering, and domain quality tiering.
  • #456 Proactive Intel Hub v2 (PR #461 / #463): WatchTopicEngine builds <=100-char personalized queries from non-sensitive memories, authorized 7-day calendar highlights, and high-level health trends; DigestComposer adds pre-push AI relevance filtering (RELEVANCE_JUDGE_PROMPT) and 3–5 sentence digests with up to 2 clean sources.
  • #457 Desktop Windows MSI/EXE Installer Pipeline & Dark Glass UI (PR #462 / #463): Unified desktop version / packageVersion to 0.2.0 with TargetFormat.Msi / TargetFormat.Exe and windows-latest CI/Release jobs, and upgraded DesktopApp with dark-glass cards, spring animations, and reconnection countdown progress.

v4.3.0 Release Highlights (versionCode 51, 2026-11-23)

  • #437 AI Transport Layer Hardening (PR #442, Behavior Change): GitHub Models was fully retired on 2026-07-30; AiClient now blocks retired hosts (models.github.ai, models.inference.ai.azure.com) before sending invalid requests and throws an exception with the retirement notice URL and migration guidance; unifies Accept: application/json; non-JSON responses throw explicit exceptions preserving HTTP status code, Content-Type, and the first 300 characters of the body; testConnection payload shape is unchanged.
  • #440 Insights Tab Long-Term Goal Tracking (PR #442, Behavior Change): Completion is unified through ReminderScheduler.completeTodoWithRecurrence as the single trigger for GoalEngine.onTodoCompleted (with (goalId, todoId) dedup guard before write), removing direct NotesTab calls and goal-progress Toasts; overdue downgrade periods persist in dedicated phantom_goal_engine SharedPreferences; next-period generation anchors on max(today, previous dueAt + cadenceDays); milestones consume milestoneJson as the source of truth.
  • #441 Intimacy Stage 5 (PR #442, Behavior Change): Thresholds updated from 30/100/250 to 50/160/420/900, adding Lv5 "Kindred (知己)"; existing users' effective level may adjust downward as expected; the 2/1/1 weight formula is unchanged.
  • #438 In-App 3-State Language Switch (PR #442, Behavior Change): Added 3-state "Language" setting (Follow System / 繁體中文 / English; API 33+ syncs via LocaleManager per-app settings, API 26–32 smoothly recreates via attachBaseContext); notifications, widgets, Settings catalog, and AI outputs all follow the app language; zh-TW system + Follow System behaves identically to v4.2.0.
  • #439 Widgets (PR #442): Upgraded all 7 existing widgets with targetCellWidth/Height, previewLayout, dedicated vector previews, goAsync 8.5s timeout, and onDisabled cleanup; added 4 new widgets: Today's To-Dos, Goal Progress, Quick Note, and Health Snapshot (zero new permissions, zero new network calls, exported=false, FLAG_IMMUTABLE, 30-minute health cache, onboarding state when unauthorized).

v4.2.0 Release Highlights (versionCode 50, 2026-11-23)

  • Behavior Change: Default English UI & AI Output for Non-zh-TW Devices:
    • Dual resource buckets (values/ default English fallback and values-zh-rTW/ Traditional Chinese): When the device locale is not Traditional Chinese (zh-TW), both UI strings and AI natural-language outputs (analysis, auto-memo, weekly summary, deep analysis, briefings, diary annotations, proactive intel) switch to English; zh-TW devices remain byte-for-byte unchanged.
  • #429 Full UI String Extraction & XML @string Externalization (PR #432):
    • Extracted 2,898 user-visible strings across Compose, Activities, Dialogs, Onboarding, widgets, notification channels, SettingsCatalog (138 items), AndroidManifest.xml, and res/layout/*.xml into strings.xml with @string references, and established the UI string extraction rule in AGENTS.md (zero behavior change).
  • #430 Default English UI (values/) & Traditional Chinese (values-zh-rTW/) (PR #433):
    • Moved all 2,898 Traditional Chinese strings byte-for-byte into values-zh-rTW/strings.xml and translated the default values/strings.xml bucket into concise Android UI English aligned with core terminology (PhantomCheck, AI Assistant, Memo, To-do, Whitelist, Scam Protection, Memory Bank).
  • #431 Locale-Aware AI Output & Bilingual Scam Lexicon (PR #434):
    • AI prompts across risk analysis, auto-memo, weekly summary, deep analysis, briefings, diary annotations, proactive intel, and chat automatically follow the system locale (zh-TW vs. English), while IndicatorExtractor, MemoryEngine, and ContactContext add English scam lexicons (unpaid toll, parcel redelivery, bank ATO / safe account, Hi Mum impersonation, crypto pig-butchering, OTP harvesting) for offline rule-based detection.

v4.1.0 Release Highlights (versionCode 49, 2026-11-23)

  • #416 Messages Tab Stats Card Redesign (PR #426): Single-row 3-column layout (Today / Unread / Scam) + 1dp vertical dividers; "Mark All Read" moved to row end, zero height jump when unread drops 99→0.
  • #417 Forced Dark Mode Fix (PR #426): Window theme switched to android:Theme.Material with dark android:windowBackground/android:colorBackground (phantom_window_bg #FF0E0A18), eliminating white flashes during Activity transitions while keeping high contrast in Compose.
  • #418 Memory Tab Stats Card & Sub-Tab Separation (PR #426): Reduced visual weight on the Memory "Long-term / Short-term / Conflict / Immune" stats card (alpha 0.35) and clearly separated it from the "Memories | Rules | Scam Immunity" sub-tabs by 10dp spacing.
  • #419 Zero-Hallucination AI Health Queries (PR #426): Extended Health Connect to read distance (DistanceRecord) and calories burned (TotalCaloriesBurnedRecord) with per-type permission checks; shows "Unauthorized" or "No records / No data" when missing, with anti-hallucination refusal examples and health_query action.
  • #420 Stats Tab Health Detail Card (PR #426): Added Day/Week/Month switcher (today's health snapshot, 7-day summary + scrollable daily table, 30-day summary + trend), computed locally with zero tokens.
  • #421 AI Diary Annotation Fix (PR #426): Added DIARY_ANNOTATION AI purpose (ai_model_diary_annotation can bind an independent model or follow default); 3-state diagnostics when unavailable (Token Saver / No Provider / Category Disabled) with shortcut buttons; added "Still generate diary annotations in Token Saver mode" toggle (diary_annotation_in_saver, default off).
  • #422 Proactive vs. Regular Chatroom Overlap Fix (PR #426): Clears messages before switching, rebuilds message list with key(currentSessionId), and adds secondary coroutine confirmation to prevent fast-switch race conditions.
  • #423 Settings Health Check & Search Expansion (PR #426): Added diary_annotation_in_saver, ai_model_diary_annotation, proactive_intel_enabled, and proactive_extract_enabled to catalog (all with symmetric read/write); added "Dark / Theme" synonym group, expanded health synonyms with distance/calories, and routed global settings search to SETTINGS_SEARCH purpose profile.
  • #424 Smarter & More Proactive AI (PR #426): Morning/evening briefings degrade honestly per section (marking missing data as "No data"); feedback-driven throttling (7-day same-topic 👎>=2 scales cooldown ×1.5, 👍>=2 with no 👎 scales ×0.75, no feedback unchanged); suppresses proactive delivery within 15 min of active chat (marks dirty for next round); added dynamic state-driven zero-token chat suggestion chips (up to 4).
  • #425 Fixed All-Day Events Falsely Triggering Schedule Conflicts (PR #426): ALL_DAY events are excluded from timed schedule conflict checks; displays an all-day event info card when detected (applies to both adding calendar events and notification-to-schedule).

v4.0.0 Release Highlights (versionCode 48, 2026-11-23)

  • v4.0.0 Global Information Architecture (IA) Overhaul & Search-First Settings Hub (#409 / PR #413): (1) Navigation 6→5 ("Insights" merges "Companion | Stats", D1): Bottom bar streamlined to 5 tabs (Messages, AI Assistant, Notes, Memory, Insights; 64dp height, N5 indicator width/offset spring), "Insights" switches "Companion | Stats" via PhantomSecondaryTabRow, and legacy notification/widget/onboarding deep links map seamlessly; (2) Settings Hub Refactor (D2): Added SettingsHomeScreen and SettingsCategoryRegistry with top 56dp dual-mode search bar (local keyword + AI semantic search), 6 editable pinned quick-setting tiles (inline FluidSwitch toggles), recently adjusted pills, and 8 categories (merging Personalization & Appearance, N1/N2 shared X-axis transitions, preserving highlight_card_key deep links); (3) Messages Home Simplification & Center Stack Preserved (D3): CenterFocusCardStack geometry preserved with 0 diff, top stats redesigned as a 3-column card with 3 smart filter pills + "Filter ▾" BottomSheet, standard list upgraded to Segmented Grouped List; (4) Advanced Settings Collapsed & Search Auto-Expand (D4): 24 expert settings + Shizuku collapsed in SettingsAdvancedSection, auto-expanding and pulsing (N7) on search hits; (5) Removed 22dp Pull Handle Visual, Kept Pull-Down Gesture (D5): Removed persistent 22dp handle bar, kept list-top overscroll search gesture and persistent 56dp top-bar search pill; (6) Onboarding Streamlined (D6): Home 20→8 steps, Settings 9→5 steps, existing completion flags never reset; (7) Large-Screen NavigationRail (D7): >= 600dp switches to left NavigationRail + centered 840dp container; (8) New Components, Motion N1–N7 & Zero-Regression Guarantee: Added PhantomPageScaffold, GlobalSearchOverlay (5 scope chips / recent searches / quick actions / pinned), SettingsRow, and ID-only UiLayoutPrefs (phantom_ui_v400), appended N1–N7 draw-phase constants to PhantomMotion with PredictiveBackHandler; 0 diff in service/, data/, network/, and util/ (pure UI overhaul).

v3.8.0 Release Highlights (versionCode 47, 2026-11-23)

  • 7 Device-Reported Fixes & Health Connect Summary / Proactive Observation (#402–#408 / PR #410): (1) Weekly AI Summary No Longer Truncated (#402): Raised summarizeWeekly maxTokens to 2400 (Groq 1600), auto-continues on finish_reason == "length" or incomplete sentences, removed .take(70) in Stats in favor of "Expand Full Text"; (2) Health Connect Chat Summary Injection & Proactive Health Observation (#403, Privacy Behavior Change): When asking about sleep/steps/HR/fatigue in chat with "Allow AI to read health summary" enabled (default on, in Permission Hub & Settings), injects only 7-day daily aggregated values and today's morning snapshot (raw samples never leave device, documented in PRIVACY.md; honestly refuses when unauthorized), plus local lookup HealthObservationPolicy in ProactiveMonitorWorker (2 nights sleep <6h, 3 days steps <2000, resting HR >=12bpm above 7-day average, max 1/day and 2/week per rule, NotifIds.HEALTH_PROACTIVE = 1014); (3) Unified Proactive System Notifications (#404): Briefings (1008/1009) and all proactive alerts share deliverProactiveMessage discipline, deep-linking to the proactive chatroom and clearing unread badges, with one-time banner if assistant_briefing channel is blocked; (4) Settings AI Semantic Search Fix (#405): Enabled json_object mode (with HTTP 400 fallback) + lenient parse chain + 1 strict retry, distinguishing empty results from parse errors; (5) Settings Keyword Search Enhancement (#406): Added stop-word removal, bigram tokenization, 16 synonym groups, weighted scoring, and 3–5 colloquial aliases for all 136 catalog items; (6) Eliminated Mid-Sentence Truncation in Proactive Messages & Previews (#407): Removed .take(...) hard truncations in ProactiveEngine, TaskTemplateEngine, and continuity anchors, with template fallback and tap-to-expand cards; (7) Auto-Popup Installer After Update Download (#408): Persisted downloadId + version, added BroadcastReceiver + Dispatchers.IO DownloadManager.query polling + ON_RESUME re-check, failure reasons/retry, and Android 8+ canRequestPackageInstalls() one-step guide.

v3.7.0 Release Highlights (versionCode 46, 2026-11-23)

  • Phantom Aurora Global UI/UX Visual & Motion Overhaul (#398 / PR #399): Added shared motion core PhantomMotion.kt (Material 3 Emphasized curves, phantomEnter/phantomItem staggered list entry with LocalPhantomEnterRegistry, phantomPopIn, PhantomChevron spring rotation, phantomSheen glass highlight border, PhantomAnimatedCount, and automatic static fallback when ANIMATOR_DURATION_SCALE = 0); upgraded FluidSwitch (draw-phase continuous color, outer glow, dynamic thumb checkmark), LiquidGlassTabBar (spring icon bounce & color transition), and pressableScale (Animatable + touchSlop/scroll early release + edge glow); applied phantomSheen to PhantomGlassCard, PhantomFloatingSurface, MessageCard, PhantomSearchBarPill, and phantomPopIn to PhantomDialog and EmptyStateView; directional AnimatedContent across 6 main tabs (preserving SaveableStateProvider) with unified motion across all 5 tabs, Settings, all 12 subpages, and Onboarding.kt (spring spotlight hole); chatroom animateItem() bubbles, user bubble sheen (preserving 8–24dp corner radius & 70%–95% width), draw-phase wave TypingDotsIndicator (zero per-frame recomposition); refined PhantomMarkdownText blockquotes, code blocks, and zebra-striped tables; added global Activity window transitions (styles.xml + 4 res/anim XMLs). Zero new dependencies, 0 diff in CenterFocusCardStack, all 37 changed files in ui/ and res/, zero regressions.

v3.5.0 Release Highlights (versionCode 44, 2026-11-22)

  • Event-Milestone Proactive Alert Deduplication & Feedback (#372, #377 / PR #383, Behavior Change): Switched proactive alerts from state-based to event-milestone deduplication (each todo/event reminds at most once at 24h before, N min before, and overdue, with cross-day cleanup) and unified into the 10-minute content-hash gate; added "👍 Helpful / 👎 Disruptive" feedback, separate daily caps for briefings and proactive alerts, and tunable lead time, all-day reminder hour, check interval, and dedup cooldown.
  • Local Calendar Multi-View & Account-Grouped Governance (#373 / PR #383): Reads VISIBLE/SYNC_EVENTS to filter visible calendars by default; Settings supports account-grouped batch selection and one-tap "Select All Visible"; Notes tab added Day/Week/Month views and unselected-calendar guide card, with free-slot queries noting selected/unselected counts.
  • Update Reminder Snooze State Machine (#374 / PR #383, Behavior Change): Removed once-per-day-per-version gate in favor of update_snooze_until_ms state machine (shows dialog + notification on launch when online and unsnoozed; only tapping "Later" sets snooze, swiping/dismissing never swallows alerts; max 1 auto-retry per process on failure).
  • Tightened Anti-Scam Auto-Detection & False-Positive Reduction (#375 / PR #383, Behavior Change): Separated urlPresent (weak signal) from intelHit/cryptoAddressPresent (strong signal); automatic scam tagging requires threat-intel hit, crypto address, or concrete scam-operation signals; generic links or conflicts with 30-day high-reputation senders downgrade to confirmation cards; tightened hasSuspiciousFeature bare-word triggers and added feedback write-back to sender reputation and encrypted benign-domain LRU.
  • Bottom-Right Chat Bubble Timestamps (#376 / PR #383): Unified 10sp HH:mm (CHAT_TIME_FORMATTER Locale.US) at bottom-right of user/AI/proactive/system bubbles without clipping on large fonts or narrow widths, with Settings toggle.
  • AI Diary / Daily Review & Long-Term Goal Tracking (#378, #379 / PR #383): Non-destructive Room v21 → v22 (diary_days, goals, goal_progress); daily 00:30 zero-token SQL timeline + monthly overview (optional collapsible AI annotations); long-term goals broken into recurring sub-todos via confirmation cards, auto-downgrading 1 level after 3 overdue periods, integrated into Partner intimacy (100% usable without API key).
  • Declarative Agentic Capability Table & Blocked-Action Rerouting (#380 / PR #383): Added IntentCapabilityRegistry (REMINDER / MEMO / CALENDAR_ADD / OPEN_APP) to automatically downgrade to safe fallback paths with user notice when blocked, or show plain-language reasons + Permission Hub button if all fail; confirmation cards display execution mode.
  • Health Connect Physiological Integration & OEM Health Check (#381, #382 / PR #383): Added androidx.health.connect:connect-client:1.1.0; morning briefing integrates local sleep/steps/HR lookup rules (raw values never leave device); Stats tab added 7-day sleep/steps trend chart; added Android 13/14+ Health Connect permission guide (honest fallback without GMS) and fixed duplicate overdue-todo notifications on BootReceiver reboot.

v3.4.0 Release Highlights (versionCode 43, 2026-11-21)

  • Full-Table Whitelist Matching & Unified Dedup Fix (#362 / PR #369): Removed LIMIT 20 truncation in AiRuleDao.activeWhitelistAll(); WhitelistRuleHelper.upsertWhitelist unified 6 write paths with dedup and re-enabling disabled rules; deep analysis re-queries DB whitelist and marks provenance; dedupWhitelistRulesIfNeeded merged existing exact duplicates.
  • Memory Tab Filter Chips Overlap Fix (#363 / PR #369): Separated top controls and two full-width LazyRows (clipToBounds() + trailing contentPadding) in MemoryTab expanded mode, standardizing heightIn(min = 34.dp) for fontScale = 1.3 and 360dp narrow screens.
  • AI Tool-Calling Precision, Anti-Hallucination & Direct Local Queries (#364 / PR #369): ChatScreenParts injects system capability declarations and single-intent single-card priority; added LocalDataConnector for local calendar and UsageStatsBridge; implemented usage_query querying real UsageStatsManager foreground time and launch counts with honest permission prompts.
  • Proactive Calendar Intel Engine (CalendarInsightEngine) (#365 / PR #369): CalendarInsightWorker (default 60 min, configurable 30/60/120/180 min UPDATE) queries external intel for checked calendar events in the next 48h using only "title + date (<=60 chars)", deduplicated by eventId|beginMs|intelHash and respecting BYOK / token saver / daily cap / independent DND.
  • Proactive Message Chatroom, Auto Memory Extraction & Continuity Components (#366 / PR #369): Dedicated proactive chatroom collapsed by default with live unread badge (99+, protected from Clear All); auto-extracts up to 2 non-sensitive conflict-free memories per chat with subtle notice and delete BottomSheet (sensitive/conflict 100% require confirmation); added top unresolved-items pill bar (up to 3) and 7-day expiring continuity anchors.
  • Dual-Threshold Auto-Decision Layer (DecisionEngine) & False-Positive Feedback (#367 / PR #369): Deterministic signals take priority with AI semantic cap (confirmThreshold - 10, default 60), centralized reversible/irreversible matrix and provenance tags; 4-category "This judgment is wrong" feedback writes back to rules and invalidates caches.
  • Scheduled Task Templates, Declarative Action Registry & Status Fixes (#368 / PR #369): Non-destructive Room v20 → v21 (task_template); TaskTemplateEngine separates zero-AI aggregation from optional polishing with a 3-step wizard + WYSIWYG preview in AssistantHubActivity; added single-source LinkedAppActionRegistry (including discord_digest_stats_readonly demo connector) and fixed GitHubMonitorWorker sync/error status writes.

v3.3.0 Release Highlights (versionCode 42, 2026-11-21)

  • Memory & Calendar Write Confirmation Toggles (#347, #348 / PR #359): Added memory_write_confirm (sensitive/conflict/delete still always confirm) and calendar_write_confirm (still checks conflicts when off), plus collapsible N/M local calendar overview in Settings.
  • Stats "Morning/Evening Briefing Card" & Daily AI Summary Removal (#349 / PR #359, Behavior Change): Added briefing card in Stats (migrating stats_summary → stats_briefing), 3-path messageId dedup scoring, and removed daily AI summary (weekly summary unaffected and gated by token-saver mode; existing ai_summary data preserved).
  • Intimacy Detail Sheet & Partner/Memory Tab Redesign (#350, #351, #357 / PR #359): Clickable intimacy card showing 4-stage journey and point breakdown, removed duplicate personality/verbosity toggles, unified avatar pill badges and equal-height event cards; added 4-tile visual stats + 2-row "Memories / Rules" layered filters in Memory tab.
  • Settings "Permissions & AI Companion" Hub Card & Tour Alignment (#354, #355 / PR #359): Merged Permission Hub and AI Companion cards with legacy deep-link redirect; plain-language 20-step Home / 9-step Settings tours and SettingsCatalog copy.
  • Permissions, Pre-Send Notification Check & Security Hardening (#345, #346, #352, #353, #356, #358 / PR #359): Added PACKAGE_USAGE_STATS in Manifest; pre-send notification permission check with warning guide; Gson JsonObject for Discord Webhook and stripped response content from logs; dynamic purpose model counts and light/dark contrast fixes.

v3.2.0 Release Highlights (versionCode 41, 2026-11-20)

  • Schedule Memo Routing Fix (#333 / PR #342, Behavior Change): Schedule-type notifications default to creating only local calendar suggestion cards (schedule_memo_route = suggest_calendar) instead of duplicate todos/notes or alarms; revertible in Settings.
  • v3.0.0–v3.1.0 Full-Feature Health Check & Fixes (#334 / PR #342): Fixed CalendarBridge.queryFreeSlotsSummary UTC day-boundary bug on ALL_DAY events and excluded sensitive memory content matching in ChatScreen memory_view/memory_list.
  • Memory × Anti-Scam Visualization (#335 / PR #342): Added "Scam Immunity" filter chip and section (linking to source messages) in Memory tab, plus Snackbar "View" button after saving scam_immunity in chat.
  • Contacts Integration (#336 / PR #342): Upgraded Room to v20 (non-destructive contact_aliases table); supports local nickname binding, zero-token relationship group import, VIP trust-circle whitelist sync, and offline impersonation detection (raw contacts never sent to AI).
  • Proactive Push & Personal Briefing Engine (#337 / PR #342): 08:45 morning / 22:25 evening briefings, 15-minute zero-token SHA-256 change-detection proactive alerts (independent DND & daily cap), "What I Know About You" profile card, optional one-time ACCESS_COARSE_LOCATION region lookup, and BYOK external search endpoint.
  • AI Companion Tab (#338 / PR #342): Added 6th tab "AI Companion" (custom assistant name & avatar) with companion days, intimacy formula, 7-day activity card, and profile card.
  • Linked Apps Hub & Cross-App Action Cards (#339 / PR #342): Added LinkedAppsActivity (6 local capability cards, GitHub PAT 15-min polling, encrypted Discord Webhook) and "Confirm Before Execute" cross-app action cards (email, navigation, alarm, open app).
  • Settings Reorganization & 20/10-Step Tours (#340, #341 / PR #342): Added PermissionHubActivity (7 permissions, Shizuku kept separate) and AssistantHubActivity; rewrote Home tour to 20 steps and expanded Settings tour to 10 steps.

v3.1.0 Release Highlights (versionCode 40, 2026-11-20)

  • AI Response Compatibility & Collapsible Chain-of-Thought (#326 / PR #330): Full compatibility for polymorphic response chunk lists/plain strings (fixing crashes on models like zai-glm-5-3), default-collapsed "Reasoning" section for CoT responses, removed image vision false-block gate, and non-destructive Room v18 → v19 migration preserving chat history.
  • Memory Tab UI Optimization (#327 / PR #330): Collapsible/persistent filter tag row, button-triggered auto-focus top search bar, and unified top-bar layout with 48dp touch targets.
  • Memory × Anti-Scam Cross-Check & Scam Immunity (#328 / PR #330): Added ContactContext offline acquaintance-impersonation detection (falling back to memory-only when denied), context contradiction injection into risk analysis, scam_immunity memory category (one-tap from Scam Center + weekly auto-summary, always confirmation-gated), memory/contacts version stamps in analysis cache, and master toggle (default on; off matches v3.0.0).
  • Local Calendar Integration (#329 / PR #330): Selectable calendars in Settings (none checked by default), AI Assistant free-slot queries, calendar_add confirmation card with conflict warnings, "📅 Add to Calendar" suggestion card on schedule-type notifications, and ACTION_INSERT fallback when write permission is absent.

v3.0.0 Release Highlights (versionCode 39, 2026-11-20)

  • AI Memory Bank Core Engine (#314 / PR #319): Long/short-term tiers, conflict confirmation cards, privacy tiers, and batch forget; consolidated legacy auto-memo/rules into Memory Bank management.
  • Memory Tab (#315) & Custom AI Assistant (Name / Personality / Verbosity / Avatar), plus Token Saver quick toggle (dual-mode budget: 8 memories normal / 4 token-saver).
  • Safe Browsing Key Switched to BYOK (#316 / PR #318): Removed BuildConfig / local.properties fallback in favor of encrypted in-app Settings input.
  • Onboarding Auto-Skip Dual Condition & Safe Browsing Card Copy Fix (#316 / PR #320).

v2.20.0 Release Highlights (versionCode 38)

  • Scrollable & Height-Capped To-Do Expanded Area on Notes Tab (#310 / PR #311): Capped NotesTab expanded to-do area at 2/3 of BoxWithConstraints available height (short lists wrap content); pinned filter pills at top, enabled vertical scrolling inside the list, and reset scroll on filter switch so large todo lists no longer squeeze notes below.

v2.19.0 Release Highlights (versionCode 37)

  • Center Stack v6 Edge-Fill & Short-List Mode (#298 / PR #302): Added head/tail edge-fill compensation (pAbove/pBelow symmetric fill pitch) and top-aligned compact short-list mode to CenterFocusCardStack, adjusting edgeGap to 6dp (first card to Favorites and last card to bottom bar both 6dp).
  • Storage Optimization & Database Maintenance (#299 / PR #303, #306 / PR #307): Enabled R8 code/resource shrinking in release builds; upgraded Room to v17 (MIGRATION_16_17) with query indexes; added periodic VACUUM, 300-entry avatar cache cap, and expired intel_cache cleanup; added storage breakdown and "Compact Database Now" button in Settings "Data Management".
  • Battery & Stability Optimization (#300 / PR #304): Relaxed KeepAlive (15→45 min) and Shizuku (300→600 s) polling, switched Heartbeat to KEEP debouncing with low-frequency reconnect check when persistent notification is off, hardened StatsForegroundService startup and rescue exponential backoff, added screen-off early exit, and pre-compiled hot-path Regex/date formatters.
  • UI Component Splitting (#301 / PR #305): Split MainActivity and ChatScreen into dedicated tab/component files (MessagesTab.kt, NotesTab.kt, StatsTab.kt, TodoSection.kt, ChatScreenParts.kt) with zero behavior change.

v2.18.0 Release Highlights (versionCode 36)

  • Removed Built-In Personal Defaults for Full Generalization (#292 / PR #293): "My Name" no longer pre-fills any default display name; stopped auto-writing personal AI rules and performed one-time cleanup of legacy auto-written carrier whitelist and shopping tag rules (user-created rules untouched); removed brand-specific references from sample copy and AI prompts.
  • Fixed Conflicting Settings Copy (#292 / PR #293): Quick Settings "AI Risk Analysis" subtitle dynamically displays the configurable character threshold (1–30 chars) instead of hardcoding 10; aligned "Daily AI Quota" range (0–100, step 10) with AI Assistant, unified unit naming, and clearly marked paused toggles when Token Saver is active.

v2.17.0 Release Highlights (versionCode 35)

  • Home/Settings Onboarding Fixes, OEM Restricted-Settings Guide & Shizuku One-Tap Grant (#288 / PR #289):
    • Delays onboarding until Android 13+ system notification permission dialogs dismiss; merges 4 message-action steps into one prompt when DB is empty, auto-switches tabs per step, and highlights settings gear, auto-note rules, add todo, and centered search pill.
    • Added "Toggle grayed out / can't enable?" troubleshooting on permission guide card (Xiaomi/Redmi/POCO, Samsung Auto Blocker, OPPO/realme/OnePlus, vivo/iQOO + "Go to App Info"), direct Notification Access detail page link (Android 11+, falling back to list), and one-tap Notification Access grant when Shizuku is connected.
    • Restored full 8-step Settings tour, auto-clearing search and expanding Personalization/Shizuku cards and scrolling to Whitelist card.
  • Privacy Policy & Disclaimer (#284 / PR #286): Added PRIVACY.md and DISCLAIMER.md (documentation only).
  • GPL-3.0 Open-Source License (#285 / PR #287): Added root LICENSE (GNU GPL v3.0 full text) and README license section.

v2.16.0 Release Highlights (versionCode 34)

  • Center Stack v5 Polish (#280 / PR #281):
    • Tighter Vertical Margins: Added edgeGap = 4dp (replacing 8dp) in CenterFocusCardStack to extend vertical visibility; reduced Home CENTER outer spacing 12dp → 8dp and Notes CENTER header bottom spacing 8dp → 4dp (non-CENTER modes and shared card frame unchanged).
    • Damped Spring Snapping & Silky Transitions: Switched to official snapFlingBehavior with spring(dampingRatio = 0.85f, stiffness = Spring.StiffnessMediumLow); added FastOutSlowInEasing near-focus scale easing (0.94f → 1.0f, seamlessly joining 0.04f step-down to 0.82f floor at absU = 1) and 6dp focus shadow gradient in graphicsLayer draw phase, keeping linear translationY tracking and all v3/v4 geometry invariants.

v2.15.0 Release Highlights (versionCode 33)

  • Center Stack v4 Fixes (#276 / PR #277):
    • Fixed Above-Focus Card Clipping & Missing Draw on Fast Fling: Switched to symmetric contentPadding (leading >= 3 * exposure paired with trailing, total scroll range (n - 1) * 40dp and snap feel unchanged) so 2–3 cards above focus stay natively in the visible range with top-band app icon/name visible; single clipToBounds kept only on the outermost stack container.
    • Initial Top-Alignment & Linear Transition: Anchors flush at 8dp with zero whitespace when firstVisibleItemIndex == 0 and offset == 0; replaced smoothstep head/tail transition with zone-normalized linear lerp for monotonic continuity without boolean switching.
    • Notes Short-List Geometry Fix: Made transition width dynamic zone = min(1.5f, (n - 1) / 2f), eliminating head/tail overlap that caused the 2nd note to sink when n <= 4; Notes tab continues sharing the stack component with dynamic height.
    • Single-Line To-Do Due Subtitle: Added maxLines = 1, softWrap = false, and Ellipsis to NotesTodoRow due info so it no longer wraps into two lines next to action buttons (both expanded and collapsed).

v2.14.0 Release Highlights (versionCode 32)

  • Compact Center Stack Cards (#270 / PR #272): Locked card height to 92dp (104dp cap for large fonts) with 12dp padded three-part layout eliminating empty black space, 40dp stack offset & edgeFade, scaleStep = 0.04f (0.82f floor), and 40dp bottom peek band showing app name + unread count / note tags identically across Messages and Notes.
  • Auto Update Check Changed to Once Per App Launch (#271 / PR #273): Removed daily check gate and dialog dedup; checks GitHub latest release on every launch when enabled and online (notification-shade alerts stay capped at once per version per day; rotation/navigation in the same process does not re-request).

v2.13.0 Release Highlights (versionCode 31)

  • Messages / Notes Center Stack v3 (#263 / PR #264): Switched to LazyColumn + SnapPosition.Start uniform snapping for continuous multi-card inertial flings, smoothstep continuous lerp across top/mid/bottom anchors eliminating jumps, dynamic layer count, 8dp margins, and dynamic contentPadding for zero whitespace and full card fill (44dp exposure, scaleStep = 0.035f, opaque inside viewport).
  • Fixed Dual-Path Duplicate SMS Recording (PR #268): SmsAutoReplyReceiver handles auto-reply only without writing to DB; SMS records are handled solely by the notification interception path with deduplication (issue #106 pending on-device verification).

v2.12.0 Release Highlights (versionCode 30)

  • Messages Tab Top-to-Center Stack Refactor (#249): Refactored CenterFocusCardStack (v2) with fixed 112dp card height, 24dp equidistant peek, and 0.06f scale decrement; top-aligned at 10dp initially, smoothly transitioning to vertical center past halfway, computed purely in graphicsLayer without recomposition.
  • Notes Tab Shared Stack & Removal of "Peek Top" (#250): Notes "Center Stack" now shares the new CenterFocusCardStack (fixed 112dp, 2-line body ellipsis, corner icon buttons); removed PEEK_TOP (auto-migrating peek_top to CENTER), and streamlined Settings and SettingsCatalog to "Standard List / Center Stack".
  • AI Auto-Todo Smart Time Inference & 30-Minute Lead Reminder (#252): buildSystemPrompt injects current time to infer todo_due, combining ClientTimeParser (including year-rollover MM/dd) and +2h fallback, scheduling reminders 30 minutes before event time (including duplicate update rescheduling).
  • Pinning Notes Preserves Original Timestamp (#251): onTogglePinNote updates only pinned without overwriting updatedAt.
  • Per-Purpose Binding & Sync for Deep Analysis / Daily Summary Chips (#253): Detail and Stats chips now write setPurposeProfileId, read getProfileForPurpose, sync live with PhantomSettingsBus and ON_RESUME, and include dedicated purpose label prefixes.
  • Daily & Weekly Summary Punctuality Hardening (#254): Added maybeCatchUp for missed runs, Result.retry() for daily failures (max 3 retries, 10-min backoff), scheduled-time anchoring for weekly summaries, and relaxed weekly constraints to NetworkType.CONNECTED.

v2.11.0 Release Highlights (versionCode 29)

  • Home Card Layout Rewritten as Center-Focus Vertical Wheel Stack (#240): Removed broken "Peek Top / Peek Bottom" modes in favor of VerticalPager center-focus wheel (focused card scale=1.0/alpha=1.0 centered with highest zIndex, up to 2 symmetric scaled cards above/below at 0.92f/0.84f, further hidden, native snap, first/last cards centerable); Settings streamlined to "Standard List / Center Stack" (legacy auto-migrated).
  • Notes Tab Overhaul (#241): Collapsible todos (default collapsed, persistent state, showing only the nearest non-overdue incomplete todo); smart todo sort (non-overdue soonest → overdue → completed); 3 note card layout modes ("Standard List / Peek Top / Center Stack") configured in Personalization.
  • Collapsible Sub-Sections in Settings (#242): "Per-App Throttle Overrides" and "Custom Quick Commands" collapse with independently persisted state, unaffected by collapsing/reopening main category cards.
  • Eliminated Square Black Corners Outside Floating Surfaces (#243): Dialog windows and ModalBottomSheets use fully transparent outer containers (PhantomDialog, containerColor = Transparent), drawing opaque dark backgrounds only inside rounded containers so wallpapers show 100% outside corners.
  • Live UI/Settings Sync & On-Time Summaries (#244, #246): Layout modes and collapse states sync immediately via PhantomSettingsBus; daily/weekly summaries switched to self-rescheduling OneTimeWorkRequest so schedule changes trigger on time without drift.
  • Single-Line Collapsible Home Filter Row & AI-Adjustable New Settings (#245, #247): Filter chips collapse without wrapping; added layout modes to AI Assistant / Settings search so AI can switch Home and Notes layouts directly in chat.

v2.10.0 Release Highlights (versionCode 28)

  • Three-Way Home Card Layout Mode (#230): Replaced legacy toggle and StackedAppCard with "Standard List", "Peek Top (Card Deck)", and "Peek Bottom (Folder)" modes (with SnapFlingBehavior and bleed-through protection), wired to SettingsCatalog (personal_home_card_layout) and PhantomSettingsBus.
  • Sender Avatar Extraction & Display (#231): Upgraded Room to v16 (MIGRATION_15_16) adding sender_avatars table; extracts and downsamples notification Person avatars (auto-cleaned after 30 days) for display in thread lists (40dp) and non-own chat bubbles (28dp) with fallback to app icon → colored initial circle.
  • Self-Reply Echo Suppression & Self Identity Detection (#237): Added own_reply_echo table to suppress duplicate echo ingestion within 3 minutes, plus "My Name" (notif_my_display_names) editor in Settings "Messages & Notifications" to mark group messages from self as own replies.
  • Floating Layer, Gesture & Search Polish (#229, #232, #233, #234): Fixed rounded-corner safe insets on drawer/rule panels and unified scrim to 0.45f; compact left-aligned Notes search pill; added VelocityTracker projection and 0.35 threshold to drawer drag; strengthened auto-todo similarity dedup (dice >= 0.9).
  • Liquid Drop Tab Bar & Global Smoothness Optimization (#235, #236): Reused Path/Brush in LiquidGlassTabBar, tuned liquid spring and synchronous drag; preserved tab state via rememberSaveableStateHolder and completed global smoothness audit.

v2.9.0 Release Highlights (versionCode 27)

  • Floating Layer Rendering & Scrim Fixes (#222): Added PhantomFloatingSurface (no blur, .clip(shape) before .background(), dark 0xF012151E / light 0.95f opaque fill + 0.65f scrim), fixing rounded-corner overflow and bleed-through on history drawer and note rules panel while keeping in-page glass cards unchanged.
  • AI History Drawer Drag Performance Fix (#223): Deferred drawer offset and scrim alpha reads to layout/draw phases with derivedStateOf and snapshotFlow, eliminating per-frame recomposition storms during drag.
  • Message Card Stack Visibility Enhancement (#224): Changed StackedAppCard layer color to lerp(surfaceVariant, onSurface, 0.25f), raised alpha to 0.55f/0.35f, tuned scale to 0.96f/0.92f, and added 1dp outlineVariant border on layer 1.
  • Live Sync for AI Settings Changes (#225): Added PhantomSettingsBus so any supported setting changed via AI chat or settings search updates Home, Stats, AI Assistant, and Settings UI immediately.
  • Semantic Keyword-Only "Never Auto-Note" (#226): saveAutoMemoIfPresent applies literal gates only to never rules with app/sender criteria; keyword-only never rules are evaluated semantically by AI (memoV4) to avoid false blocks across unrelated services.

v2.8.0 Release Highlights (versionCode 26)

  • Toggleable Message Card Stack Effect (#212): StackedAppCard draws 0/1/2 3D stack layers behind cards based on message count (with scroll parallax and tap collapse feedback), toggleable in Settings Personalization.
  • Favorites Badges & IME Fix (#213, #214): Fixed Favorites row badges and HomeSortOrder.UNREAD to use true unread counts (hidden at 0, 99+ above 99); fixed AI Assistant input bar keyboard overlap (single imePadding + auto-scroll at bottom).
  • AI Assistant Side History Drawer & Resume Setting (#215, #216): Replaced history sheet with left slide-out glass drawer (drag gesture + BackHandler); added ai_chat_tab_behavior to choose between starting a new chat or resuming the last conversation.
  • Floating Note Rules Panel & AI Semantic Matching (#217): Moved note rules to a floating glass panel opened from top-right Tune button; AiClient supports semantic keyword category matching (memoV3).
  • Custom Stats Cards, Daily App Leaderboard & 4 New Charts (#218): Added "Today's Top 5 App Message Leaderboard" and 4 pure Canvas charts, plus a "Stats" Settings category to customize visibility of 12 stats cards.
  • Notes Home-Screen Widget (#219): Added 2x2 "PhantomCheck Notes" widget (NotesWidgetProvider, pinned first up to 5 notes, tap opens Notes tab) with live diff sync across all write paths.

v2.7.0 Release Highlights (versionCode 25)

  • Auto-Note / To-Do Rules & Source Backtracking (#203, #204): Upgraded Room to v15 (MIGRATION_14_15) adding memo_rules and MemoRuleEngine (never > todo > note); added "Auto-Note Rules" card in Notes tab (natural-language AI parsing + confirmation card and manual add), ChatScreen add_rule kind="memo", Home "Noted / Todoed" filters and icons, one-tap source message jump on todo rows, and 3-scope "Never Auto-Note/Todo" dialog.
  • Top Pull-Down Search Handle & Fixed Home Header (#205, #206): Refactored MessagesHomeTab into fixed header (stats / category filters / favorites) + independently scrolling message list; moved refresh/settings into stats card right column and added 22dp PhantomPullSearchHandle (pull-down or tap) for full-screen search.
  • Conversation IME Fix & Right-Aligned Self-Reply Bubbles (#207): Added windowSoftInputMode="adjustResize" to fix keyboard double lift; all 3 reply paths persist isOwn = true rendered as right-aligned tinted bubbles, strictly excluded from stats, unread, ScamCenter, summaries, and dedup queries.
  • Search & Global Theme Contrast Fixes (#208): Replaced theme-blind Color.Gray/Color.Red, explicitly set body onSurface, made PhantomFullScreenSearchOverlay opaque, and set CardBgMode.TRANSPARENT slider floor to 15% (fallback >= 0.35).
  • 18-Step Onboarding & Global OEM Health Check (#209, #210): Expanded Home tour to 18 steps covering pull-down search, quick reply, note rules, and source backtracking (completed users not re-triggered); added adjustResize to all text-input Activities and audited OEM/insets compatibility.

v2.6.0 Release Highlights (versionCode 24)

  • Bottom Quick-Reply Bar on Conversation Detail Page (#197): Added persistent reply input bar in ConversationScreen (keyboard avoidance, auto-scroll, hidden in multi-select); sendReplyToNotification targets MessagingStyle threads via conversationKey and chains into ReplyProxyManager continuous notification reply and SMS fallback.
  • Crash-Proofed Reply Chain & AI Actions (#196): Fixed ReplyProxyManager RemoteInput PendingIntent to FLAG_MUTABLE, added try/catch and firstOrNull() guards across ReplyProxyReceiver, ReplyProxyManager, and ChatScreen, with unified PhantomReply/PhantomChatAction logcat.
  • Dedicated Whitelist Page & Collapse Persistence (#199): Added WhitelistManagementActivity (exported="false") for grouped whitelist management, simplified Settings to an entry button, and persisted group collapse state in PhantomPrefs wired to SettingsCatalog.
  • Todo Flow Real-Time Sync (#198): TodoDao.observeAll() keeps Notes tab and ChatScreen todo menu synced immediately with widget changes; added ON_RESUME refresh for remindAt in MessageDetailActivity.
  • Search & Transparent Background UI Polish (#193, #194, #195): Fixed full-screen search overlay z-order in ConversationScreen and AppThreadsScreen; unified PhantomSearchBarPill to 36dp mini glass pill (>=48dp touch target); removed opaque background from SwipeToRevealRow so custom wallpapers show through.
  • Global Dependencies, AGP 9 & targetSdk 36 Upgrade (#200): Upgraded Gradle 9.9.1, AGP 9.5.1 (built-in Kotlin), Kotlin 2.4.21, Compose BOM 2026.09.00, Room 2.8.5 (kapt → KSP 2.3.14), Retrofit 3.0.0, WorkManager 2.12.0, compileSdk 37 / targetSdk 36, and migrated Glass.kt to Haze 2.1.0 hazeBlur API.

v2.5.0 Release Highlights (versionCode 23)

  • Continuous Quick Reply from Notification Shade (#183): Added ReplyProxyManager/ReplyProxyReceiver (exported="false") and NotifIds 120000..129999 range; ChatScreen replies launch MessagingStyle proxy notifications (up to 8 history items, 8-session LRU, SMS fallback, AlarmManager idle timeout 15/30/60/off), with Settings and SettingsCatalog entries.
  • Conversation Page Glass Black-Background Fix (#184): Fixed .clip(shape) ordering in Components.kt PhantomGlassCard and phantomGlassSurface after glassSurface(...) (ui/components/ untouched).
  • Pre-AI Duplicate Notification Folding (#185): Added pure-function NotificationFoldUtil (24h chained window, Dice >= 0.85, never folding high-risk or differing numbers/URLs) applied to Chat RAG, daily/weekly summaries, and deep analysis history.
  • Daily Auto Update Check (#186): MainActivity ON_RESUME silently checks once per day; UpdateAvailable sends once-per-version-per-day notification (NotifIds.UPDATE_AVAILABLE = 1007) + dialog, with update_auto_check_enabled toggle in Settings About and SettingsCatalog.
  • Auto-Note Dedup & Smart To-Do Routing (#187, #188): Similar auto-notes from same app within 7 days (Dice >= 0.9) update in place without overwriting pinned; AiClient adds memo_type (note|todo) and todo_due to create deduplicated TodoEntity with scheduled reminders and widget refresh, sharing extracted ClientTimeParser.
  • Widget Notification Sync & Enlarged Buttons (#189): Completing/deleting todos or reminders clears active notifications; enlarged widget_reminder.xml buttons to 16sp bold + minHeight="32dp" + ripple feedback, and raised reminder_widget_info minHeight to 72dp.

v2.4.0 Release Highlights (versionCode 22)

  • AI 5-in-1 Token Saver & Vision Fix (#174, #173): Implemented prompt_cache_key and byte-identical static prefix caching, incremental chat context summaries, dual-model confidence routing (mistral-small-2603 first, escalating 30–70 without double-charging quota), dynamic image size estimation, and daily/weekly summary dedup caps; fixed mistral-small-2603 being misclassified as text-only.
  • Card Black-Background Overflow Fix & Surface Modes (#175): Unified PhantomGlassCard single clip shape, fixed API < S double-layer stacking, and added "Card Surface Mode" (Follow Glass / Transparency Slider / Dark Surface) in Appearance.
  • To-Do Enhancements (#176): Upgraded Room to v14 (MIGRATION_13_14), adding completedAt, priority (Low/Medium/High), notes, and daily/weekly repeat spawning; Notes tab supports filtering, smart sorting, manual add, and full editor dialog.
  • Whitelist Fixes & Management UI (#177): Permanently injected whitelist into Chat system prompt (compressed by app when long), added whitelist_delete action and grouped whitelist management card in Settings, invalidating rule caches across all write paths.
  • Comprehensive AI Feature Health Check (#178): Supplemented CHAT (todos/memos/VIP/mute/keywords) and DEEP_ANALYSIS (sender history) context, and unified DB read-back verification across all AI write actions.
  • Home-Screen Widget Interactions (#179): 2x1 todo widget supports per-item "Done ✓ / Edit ✎ / Delete ✕" buttons with independent PendingIntent and goAsync() live sync.
  • Unified Pull-Down Search (#180): Added custom glass search pill and full-screen search overlay (live filtering + AI semantic search entry) across Messages, Conversation, Notes, and Thread pages.
  • Onboarding Fixes & Expansion (#181): Removed chained auto-skipping, added dynamic top/bottom card avoidance around spotlight hole, expanded Home tour to 15 steps (SEARCH_PILL) and Settings tour to 8 steps.

v2.3.1 Release Highlights (versionCode 21)

  • AI Tag Dispatch Parse Tolerance & Failure Notification Improvements (#169): parseAnalysisJson/parseBatchAnalysisJson support fence stripping, balanced-brace multi-object extraction, and lenient preprocessing; single analysis supports OpenAI-compatible json_object and one corrective retry (no double quota charge), test button shows first 200 chars on failure; failure notifications use 24h sliding window (5 triggers, 6h cooldown) with ai_tag_failure_notif_enabled toggle.
  • Background Page Black-Screen Fix & Picker Fallback (#170): PhantomBackgroundBox explicitly draws theme background when unset/loading/failed; SettingsActivity persists picking state via rememberSaveable and offers OpenDocument file picker fallback on Photo Picker failure.
  • Onboarding Expansion & Health Check (#171): Expanded Home tour to 14 steps (Notes/Auto-Memo, Stats/Offline Queue, Todo Reminders/Batch, 3-Layer Backgrounds & Per-Purpose Models), proofread 4-tab copy, updated 6-step Settings tour, and fixed replay step reset without re-triggering completed users.

v2.3.0 Release Highlights (versionCode 20)

  • Image Vision Upload & Background Picker Fixes (#162): ChatScreen images use bounds-first inSampleSize downsampling (<= 1024px, doubling on OOM retry) and honest error categorization, updated Groq/DeepSeek vision support lists, and fixed BackgroundImageHelper inJustDecodeBounds returning null on all 3 background layers.
  • Per-Purpose AI Model Routing (#163): 6 AI purposes can bind independent Profiles or follow default (auto-memo follows message analysis) via 6 dropdown rows with connection tests in ApiKeySettingsActivity; ChatScreen switcher changes only chat model.
  • Offline AI Retry Queue (#164): Upgraded Room to v13 (MIGRATION_12_13) adding pending_ai_analysis table; transient failures enqueue for WorkManager PendingAiAnalysisWorker exponential-backoff retry (up to 20/round, max 3 attempts) with low-intrusion notification and top banner controls.
  • "Notes" Tab & AI Auto-Memo (#166): Replaced "Scam Alerts" tab with "Notes" (integrating todos and manual/auto notes CRUD, pinning, color tags; Scam Center moved to Messages/Stats entries) and added ai_auto_memo_enabled auto-summary memos.
  • UX Polish & Length Threshold (#165, #167): Moved "Clear Read" to Settings "Messages & Notifications"; added AI analysis length threshold slider (1–30 chars, default 10) wired to SettingsCatalog.

v2.2.0 Release Highlights (versionCode 19)

  • About Card Update Checker & APK Download/Install (#157): Updated author to "Hwanshen (幻神)", added manual "Check for Updates" (GitHub REST API, 10s timeout) with DownloadManager + FileProvider + ACTION_VIEW system installer integration (including REQUEST_INSTALL_PACKAGES and unknown-sources guide).
  • Custom Multi-Layer Backgrounds & Visual Sliders (#159): Added 3-layer backgrounds (Global / AI Chat / Conversation via PickVisualMedia + JPEG 85 downsampling & single LruCache), dark scrim slider (0–100%, default 35% day / 60% night), and glass card strength slider.
  • AI Assistant Action Capabilities Expansion (#160): Added search_messages (inline clickable result cards), todo_list/todo_done/todo_delete/todo_edit, vip_pin, mute_app, mark_read (protecting scam records), and export_messages (reusing MessageExporter CSV), with all mutating actions gated by confirmation cards.
  • Global Codebase Health Check Fixes (#158): Fixed cross-session pendingTodoQueue blocking, added 30s TTL cache for user_tag_rules with full-path cache invalidation, fixed tag_rule missing-tag handling to skip honestly, pre-compiled hot-path Regex, and verified schedules/caches.

v2.1.0 Release Highlights (versionCode 18)

  • AI Natural-Language To-Do Reminders & Widget Integration (#143): Upgraded Room to v12 (MIGRATION_11_12) adding todos table; AI Assistant supports reminder_add with deterministic time-parsing fallback, confirmation cards, and management Sheet, scheduled via AlarmManager.setAndAllowWhileIdle, rescheduled on boot by BootReceiver, and synced with ReminderWidgetProvider.
  • Multi-Select Batch Management on Conversation & Thread Lists (#144): Added multi-select batch actions (read / star / delete, up to 100 items) on ConversationScreen and AppThreadsScreen, disabling swipe/tap during selection and strictly protecting scam records while cleaning message_tags cross-refs.
  • AI Assistant & Quick Command UX Improvements (#142, #145, #146): AI Assistant opens to a new chat by default with "Clear All Conversations" in history drawer; dedicated inline SnackbarHost prevents covering input bar; quick commands added "Follow Default" mode with dynamic resolution.
  • Group Thread Splitting, About Section & Release Flow (#140, #141, #112): Room v11 (MIGRATION_10_11) MessagingStyle conversationKey fixes LINE group splitting; added "About" section at bottom of Settings (runtime version sync); release.yml extracts CHANGELOG.md version sections alongside auto PR lists.

v2.0.0 Release Highlights (versionCode 17)

  • AI Tag Memory & Fallback Protection (#131, #132): Upgraded Room to v10 (MIGRATION_9_10), adding deterministic zero-token TagRuleEngine and user_rule tag memory (manual > user_rule > ai_rules > auto > App category); AI tag failures fall back to app category with anti-spam low-priority alerts, plus "AI Tag Dispatch Test" in Settings.
  • AI Assistant Reliability & Token Optimization (#127–#130): Fixed bare JSON and numeric setting execution chains, Groq free-tier TPM budget control with 413/429 multi-stage fallback, conditional settings catalog loading, RAG dedup, and long-history summarization.
  • Multimodal Input, Layout Simplification & Custom Navigation (#133–#135): Added dual-function "+" menu ("Quick Commands" + "Image Vision Upload"), auto-hiding top title bar and compact input on AI tab, and 3-way bottom bar mode ("Standard / Compact / Auto-Hide") in Appearance.
  • Three Non-Stats Widgets & Global Optimization (#136–#138): Added "Latest AI Summary (2x2)", "High-Risk Actions (2x2)", and "Todo Reminders (2x1)" widgets; completed notification hot-path caching, unified icon LruCache, and M3 8dp/48dp layout audit.

v1.13.1 Release Highlights (versionCode 16)

  • AI Chat Stability & Multi-Action Fixes (#122, #123): Added HTTP 413-specific error messages in AiClient with halved-limit auto-retry in chat (min 25) and quota refund on deep analysis 413; ChatScreen supports multi-action parsing, merged checkable whitelist confirmation cards, and honest error reporting without raw JSON fallback.
  • In-Chat Numeric Adjustment & Settings Navigation (#124, #125): Added setting_adjust slider confirmation cards for RAG limit, daily AI quota, and same-key throttle; added open_setting navigation to target Settings cards, full settings catalog summary in system prompt to prevent fabricated UI paths, and fixed unknown-setting fallback and non-toggle candidate buttons.

v1.13.0 Release Highlights (versionCode 15)

  • Comprehensive AI Chat Enhancements (#114, #116, #118, #119): PhantomMarkdownText completed tables (alignment + horizontal scroll), italics, strikethrough, links, blockquotes, rules, task lists, and nested lists; added per-turn RAG limit slider (50–800, default 400, 100 in token-saver); direct boolean setting toggles in chat (SettingsCatalog); RAG defaults to Today + Yesterday with sender filter, plus confirmation-gated quick reply, open app, delete message (scam protected), and tag message actions.
  • Structured Whitelist & Model Preset Updates (#115, #117): Updated default provider model presets (Mistral mistral-small-2603, OpenAI gpt-6.1-terra, Groq openai/gpt-oss-120b, Gemini gemini-4-hydrogen, etc.); upgraded Room to v9 (MIGRATION_8_9) for sender/single-message structured whitelist that marks safe and skips subsequent analysis, alerts, and intel pre-checks.
  • Comprehensive Settings Search Audit (#120): Aligned SettingsCatalog with actual UI card by card, adding daily summary notification and Liquid Glass effect entries and verifying local/AI dual search paths.

v1.12.1 Release Highlights (versionCode 14)

  • Settings Search Catalog Fixes & Direct Page Launch (#109): Fixed 5 misrouted settings search cards (including routing SMS Auto-Reply to AI card), added "Scam Alert Center" and "Filter Keyword Rules & Hit Actions" entries, added "Go" direct page launch in AI navigation banner (Auto-Reply, Scam Center, Tag Management, API Key Settings), and added home-screen widget instructions in Data Management.

v1.12.0 Release Highlights (versionCode 13)

  • Settings Search & Notification Ingestion Fixes (#99, #101): Split "Same-Key Duplicate Throttle" in settings search to Notifications card and aligned subtitle; messaging notifications with updated postTime capture consecutive identical-content messages (dedupCache only blocks reconnect replays; non-messaging keeps throttling).
  • Data Integrity & Security Hardening (#100, #102, #103, #104): Retention cleanup directly excludes scam evidence and cleans orphan tags; NotifIds centralizes mutually exclusive IDs; AiClient.sanitizeForPrompt protects 4 AI prompt-injection points; SMS auto-reply adds 4h cooldown, 3/day cap, and template self-echo guard.
  • Technical Debt Cleanup & Performance Optimization (#105): Immediate boot delivery for overdue reminders, UPDATE policy for HeartbeatPolicy/WeeklySummaryPolicy, 30s cache + layer decoupling for PhantomPrefs throttle map, 7-day/hourly SQL aggregation, and shared widget icon LruCache.

v1.11.0 Release Highlights

  • Consecutive Message Fix & Custom Throttling (#96): Implemented content-aware same-key throttling, stacked message tail extraction, DB-windowed replay dedup, and multi-tier title fallback; added "Treat digit micro-changes as same update" toggle and per-app throttle seconds override.
  • AI Assistant Response Truncation Fix (#95): Raised chatAssistant maxTokens to 4096 with relaxed chat timeouts (read 120s / callTimeout 180s), honestly annotating truncation when finish_reason == "length".
  • Watchdog & Hot-Path Battery Optimization (#94): Switched ShizukuWatchdogService to 5-min / 60s adaptive backoff, conditionalized requestRebind on !isConnected, and added appLabelCache (LruCache(64)) and 30s TTL rule caches on the notification hot path.

Installation Guide (No Compilation Required)

  1. Download APK from GitHub Releases (Official Release)

    • Go to the Releases page on the right side of this repository, select the latest version (e.g., v4.3.0), and download the attached .apk file.
  2. Or Download Latest Dev APK from GitHub Actions

    • Open the GitHub repository page and click the Actions tab at the top.
    • Select Android Build Check on the left, and click the latest passing (✓) run on the main branch.
    • Scroll down to Artifacts, download phantomcheck-debug-<number>, and extract app-debug.apk.
  3. Install APK on Your Android Device

    • Transfer the APK to your Android phone and tap to install; if prompted about unknown sources, follow the guide to enable "Allow from this source".
  4. Grant Notification Access & Configure API Key

    • Follow the in-app onboarding to grant "Notification Access", and enter any supported AI Provider Key in "Settings → API Key Settings" (keys are encrypted locally only).
  5. Enter Google Safe Browsing API Key (Threat-Intel BYOK)

    • Create a project in Google Cloud Console, enable "Safe Browsing API", and generate an API key under "Credentials → Create API Key" (stored encrypted locally only).
    • Paste the key in the app under "Settings → Anti-Scam Intel → Google Safe Browsing v4" to enable it; when left blank, Safe Browsing is skipped without affecting other intel sources.
  6. Windows Desktop Companion (setup.exe) & Upgrade Troubleshooting

    • PhantomCheckDesktop-<version>-setup.exe (Inno Setup) is the sole official Windows installer and update channel (legacy .msi packages from older releases are retired).
    • Upgrading from a legacy .msi (v0.2.0–v0.4.0): Simply run the new setup.exe once. The installer automatically requests a graceful shutdown, silently removes any legacy .msi or conflicting older installation, and preserves all settings and device pairings stored in %APPDATA%\PhantomCheckDesktop.

Technical Architecture

Layer Technology Description
Language & UI Kotlin + Jetpack Compose (Material 3) Declarative UI, Phantom Light/Dark theme system, and reactive state management
Local Database Room Database Stores intercepted messages (messages) and filter rules (filter_rules), with versioned migrations
Background Scheduling WorkManager Periodically runs message retention cleanup for expired data
Networking & AI Retrofit / OkHttp + Multi-Provider AI APIs Calls AI models for scam semantic analysis and risk scoring
Secrets & Security EncryptedSharedPreferences (AndroidX Security Crypto) Locally encrypts user-entered API keys; zero hardcoded secrets
CI Pipeline GitHub Actions Every PR and main push automatically runs gitleaks secret scanning and ./gradlew :app:assembleDebug, uploading APK artifacts on main

Security Policy

  • All secrets (API keys, tokens, passwords) are never written into code, documentation, or Git history.
  • For local development, test keys may be placed in local.properties (excluded by .gitignore) or entered directly in the in-app Settings.
  • For full security guidelines and vulnerability reporting, see SECURITY.md.

Development Collaboration

This project is co-maintained by multiple AI agents and human collaborators. For detailed guidelines, see:


License

This project is licensed under GPL-3.0: anyone may freely use, modify, and distribute it, provided derivative works are open-sourced under the same terms with this notice preserved.

Explorer des projets similaires

Chargement…