eric11yothelast-Hwanshen/PhantomCheck
Acerca de
Scam-aware Android messaging app: AI summaries, notes & todo from SMS and notifications. Kotlin + Jetpack Compose.
Productividad y automatizaciónWhat 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.
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- Recopilando historial
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalEnglish | 繁體中文
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
NotificationListenerServicewithout 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 updatedpostTimerecord 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
RemoteViewspersistent 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>= 600dpautomatically switch to a leftNavigationRail) 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:mmbottom-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,LocalDataConnectordirect local calendar access where specific events come verbatim from local calendar queries or honestly refuse if none found,UsageStatsManagerusage 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),PhantomMarkdownTextrendering, and "Yesterday's Briefing"; Proactive Intel Hub (off by default; when enabled, usesAiPurpose.PROACTIVEdaily quota to extract candidatewatch_topicsfrom 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", thresholds50/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-pointReminderSchedulercompletion 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>=12bpmabove 7-day average via pure local lookup, max 1/day and 2/week per rule),CalendarInsightEngineperiodic calendar intel (default 60 min, queries external intel using only title + date<= 60chars 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:
LinkedAppsActivityis driven by a single-source declarativeLinkedAppActionRegistry(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 viaEncryptedByokStore) plus "Confirm Before Execute" cross-app action cards;IntentCapabilityRegistrydeclarative capability table & blocked-action rerouting (REMINDER/MEMO/CALENDAR_ADD/OPEN_APPautomatically 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);PermissionHubActivitycentralizes 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;AssistantHubActivitycentralizes briefings, proactive calendar intel, scheduled task templates (TaskTemplateEngine3-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 viaschedule_memo_routein 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;
DecisionEngineprioritizes deterministic signals with an AI semantic cap (threshold - 10) and reversible/irreversible matrix, strictly tightening automaticscamtagging (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
MessagingStyleconversation key (both Home and Notes tabs share "Standard List (rounded segmented group list) / Center Stack" layout modes: Center Stack usesLazyColumncontinuous inertial scrolling + damped spring snapping, compact6dpedge gap, linearlerpcentering, symmetriccontentPaddingkeeping 2–3 cards stably drawn above, dynamiczonepreventing short-list overlap/sinking,92dpcompact cards (104dpmax for large font),40dppeek band, near-focus scale easing (0.94f→1.0f) with0.04fstep-down (floor0.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 persistent22dphandle 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
KEEPdebouncing, 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" (periodicVACUUM+ expired data / 300-entry avatar cache cleanup);EncryptedSharedPreferenceslocally 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 (
DownloadManagerdual-path polling +ON_RESUMEre-check + failure retry + Android 8+ unknown-sources one-step guide +FileProviderAPK install flow). - 💬 Continuous Quick Reply from Notification Shade: After replying via AI Assistant, keeps a
MessagingStyleproxy 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 > notepriority 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@stringresources); Settings Hub supports 3-state "Language" switching (Follow System / 繁體中文 / English; API 33+ syncs viaLocaleManagerper-app settings, API 26–32 smoothly recreates viaattachBaseContext); 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.exesole 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
FlowRowbelow 360dp width or at fontScale ≥ 1.3, and keep the previous subtitle meaning insidecontentDescription. - 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;
CenterFocusCardStackmigrates to the officialLazyColumn(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_SNAPSHOTwhen a page is not loaded, so unread counts no longer under-report. - Desktop 0.13.3 (#681):
CHAT_STREAM_CHUNK/CHAT_STREAM_ENDnow carry session guards so switching sessions cannot inject bubbles; date dividers and schedule parsing moved to constantjava.timeformatters and pre-compiled regexes for hot-path performance. - 中文摘要:訊息頁 LIST 模式 Bento 由 2×2 大卡改為單列 4 格緊湊卡,清單可視高度增加約 114dp,窄幅/大字體自動退回兩行且無障礙語意保留;Compose BOM 升 2026.11.01、compileSdk 37.1,中央堆疊快取視窗遷移官方參數版 API、手感零變動;手機已讀/星標改事件驅動即時同步桌面,桌面未載入分頁以權威統計快照收斂,AI 串流補會話隔離;本版
versionCode74、versionName6.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
TextButtonat the end of the row (shown only when unread > 0) that shares the exactonMarkAllReadpath with LIST mode. - Duplicate Assistant Name/Avatar Fixed (#674): the legacy avatar + name row ahead of
ChatWorkbenchAiBlockwas removed, so regular and proactive AI chatrooms each render one header; the default assistant showschat_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,BentoMetricCardand 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.smoke01now 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)。本版
versionCode73、versionName6.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
quoteMessagesToAipipeline with theMAX_QUOTESlimit 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.ymlnow publishing prereleases. - Fixes: unread list / counter single source of truth (#658), natural-language schedule intent gate regression (#665),
release.ymlworkflow_dispatchcheckout ref (#665). - 中文摘要:引用至 AI 對話入口全面鋪設(中央堆疊、對話頁、多選批次、App 群組、詳情頁);Gemini 式排程任務(自然語言建立+確認卡、上限 10、聯網可關);排程回覆與 5 秒撤回緩衝;正式/測試雙更新通道;並修復未讀清單與統計不一致、排程閘門誤攔閒聊、
release.yml手動觸發 checkout ref。本版versionCode71、versionName6.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_version28 (#654, PR #655): devices left at Roomuser_version28 by v6.0.0 crashed on every launch after rolling back to 5.x;DbDowngradeHelpernow also covers 28→25, dropping the #641anchorWeekday/anchorMonthDaycolumns, with all user messages, notes and to-dos preserved. - 中文摘要:曾安裝 v6.0.0 的裝置(DB
user_version28)覆蓋降回 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;
DbDowngradeHelpernow checksPRAGMA user_versionbefore Room opens and, on 26–27, downgrades the DB structure back to v25 in a single transaction (dropsscheduled_sendsand the three v6task_templatecolumns, 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_version26–27 並以單一 transaction 將 DB 結構降回 v25(移除scheduled_sends與task_templatev6 三欄、重建 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;
versionCode68 and Desktop0.12.1exist 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_VERSIONfrom0.10.0to0.11.1(matchingdesktopVersion = "0.11.1"), fixing the splash screen version, Settings About label,DesktopUpdaterself-comparison (up-to-date detection), and HTTPUser-Agentheaders. - 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,128dpwhenfontScale ≥ 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.1and caught up the missingv5.6.0andv5.6.1release highlight sections in bothREADME.mdandREADME.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;
settingsAnchornow reports every id and expands advanced sections before scrolling, includingnotify_screen_modeanddesktop_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 addschat_messages.referencedMessageIds(non-destructive migration). - Floating Orb Inline Reply & Mini-Chat Enhancements (#609, #610): Inline reply inside notification bubbles (
QUICK_REPLY_SENDwith 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
notifyScreenModeoptions (PRIMARY/FOLLOW_ORB/FOLLOW_MOUSE/EXPLICIT:<deviceId>), per-device orb position memory, and hot-plug fallback to primary. - AI Chat Streaming Output (#612):
chatAssistantStreamSSE 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_VERSIONstays 2; addedchat.context.fetch/.res,chat.stream.chunk,chat.stream.end,chat.send.cancel, and optionalreferencedMessageIds/imageDataUrifields; 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
chatFontSizesetting; 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/Regexanti-patterns in the touched files. - Behavior Change (additive):
chat.sessions.changed/chat.session.deleteare additive;PROTOCOL_VERSIONstays 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.0to0.8.1(desktopVersion,CURRENT_DESKTOP_VERSION, and Inno Setup defaultMyAppVersion), enabling existing0.8.0users to receive the update prompt viaDesktopUpdaterand install the R15/R16/R17a desktop fixes (including the Fail-Closed updater and 48dpPhantomDialog). - Documentation Sync (#583): Added the missing
v5.2.0andv5.2.1release highlight sections toREADME.zh-TW.md, and updated the outdated Desktop Companion version in the Core Features overview of bothREADME.mdandREADME.zh-TW.mdto0.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_associationgate plus SHA-pinned actions inopencode.yml; Fail-Closed desktop updater that rejects installs without a matching.sha256;allowBackup=falsetogether withdataExtractionRules; 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
startForegroundrule, workers rethrowCancellationException, exact alarms checkcanScheduleExactAlarms()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/isStarredmerges, a 3-tier title fallback chain, and a Conversation View / Group by App toggle; Android Messages adds an icon + text Group ReportModalBottomSheetentry sharingGroupReportsViewerwith 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,remainingMshover-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 (HKCURun+ per-user Task SchedulerPhantomCheckDesktopLogonwithLeastPrivilege), 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
<48hfreshness, SHA-256 dedup, diagnostics panel, desktop push mirroring (≤60-char excerpt) with "Stop Watching" mute write-back, andPRIVACY.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.muteprotocol (PROTOCOL_VERSIONstays2); Proactive Intel enables unauthenticatednews.google.comRSS requests; popup display duration expanded from3|5|8s to3–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) —
ThreadLocaldate formats, hoisted regexes, timeout recoveries, and zero new persistent polling — and rebuilt all five desktop pages aroundDesktopWindowClass(#520) with a unifiedPhantomDialogshell and WCAG-verified contrast tests (general ≥4.5:1, HC ≥7:1). - Behavior Changes: New
normalpermissionsACCESS_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-depDesktopIcons,PackageManager-resolved friendly app names in stats (7d/30d/Hourly, Today's Active Apps, Weekly Top 5), Light Mode frosted theme toggle, andAlt+1..6shortcuts. - Single-Instance, Startup Verification &
.msiRetirement (#495, #496, Behavior Change): AddedFileLock+ loopback IPC single-instance guard and WindowsHKCU\...\Runread-back verification withStartupApproved\Rundisabled detection; retired the legacy.msichannel—Windows now ships exclusively asPhantomCheckDesktop-0.6.0-setup.exe, which silently cleans legacy MSI/Inno installs while preserving%APPDATA%\PhantomCheckDesktopsettings and pairings. - Two-Way To-Dos/Notes, Phone Link & Filters & Focus (#499, #500, #501, #503): Fixed Android
NotesTabnote click editing and upgraded Desktop Todos/Notes to full CRUD forms + AI "Quote Latest Notification"; added 60s mDNS TTL,NetworkCallbackreset, fingerprint-keyed dynamic IP:port resolution, and 6 failure diagnostics; unified cross-end Filters & Focus (過濾與專注) with 1h quick mute, tag management, and collapsedAdvanced & SystemAndroid Settings; added additiveDESKTOP_SETTINGS_SYNCand event-drivenWidgetUpdater(≤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_VERSIONremains2with additive-only backward compatibility).
- Desktop Messaging, Notifications & Themes (#494, #497, #498, #504): Grouped Desktop Messages into conversation threads (
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.ktfor read-only profile/rule inspection and UAC-elevated one-click creation of a scoped executable + TCP49515+-Profile Anyfirewall rule (with Public profile and192.168.137.xhotspot warnings); Android adds 15s probe cooldown, "Diagnose Now" immediate probe, and bilingualPRIVACY.mddisclosure. - #486 Camera Scanner R8 Crash Fix & QR Stability Hardening (PR #491): Added R8 full-mode keep rules for bundled ML Kit and
firebase-componentsComponentRegistrar.<init>()inapp/proguard-rules.pro(verified viaretraceandmapping.txt), fixing the release APK scanner NPE crash;QrScannerOverlay.ktadds back-camera precheck,ON_RESUMErebind,try/finallyImageProxy.close(), and safe teardown. - #488 Desktop Page Transitions & Glass/Surface Customization (PR #491): Added
DesktopThemeTokens/LocalDesktopTokensfor 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, andDesktopBackgroundHelper.ktfor 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.resolveServicewith backoff, added 5-attempt 30s pairing code lockout + audit logging, local SHA-256 + optional.sha256sidecar verification inDesktopUpdater.kt, R8 smoke/retrace rules inAGENTS.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.0Netty WSS server (DesktopLinkServer.kt,DesktopTls.kt,DesktopMdnsBroadcaster.kt, port49515), while Android connects as an OkHttp WebSocket client (DesktopLinkClient.kt) with TLS SHA-256 fingerprint pinning,1s→30sbackoff,NsdManagerdiscovery, and phase/error diagnostics.PROTOCOL_VERSIONbumped to2(mandatory re-pairing). - #477 Phone QR Code Scanning for Desktop Pairing (PR #481): Desktop generates 3-minute single-use pairing QR codes (
DesktopQrDialog.ktviazxing:core:3.5.4); Android scans offline without Google Play Services via bundledmlkit:barcode-scanning:17.3.0+ CameraX1.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 comparingPhantomCheckDesktop-<semver>-setup.exe/.msiassets),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.isZhvia ComposemutableStateOffor 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_EXCEEDEDdisconnect +120msinitial command pacing, UTF-8Propertiesmigration, composite chat list keys, bilingual classified error messages, JmDNS diagnostics, strict QR JSON validation,1024x680minimum window size (125%font scaling), and lifecycle-safeCAMERAhandling.
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-ciotoktor-server-netty3.6.0(1/2/4thread pools), upgraded rate limiting to Token Bucket (5/s+ burst12) with100msdesktop startup pacing, added port-in-use preflight, dedicatedmarkReadDAO, and Netty ProGuard/packaging rules. - #466 Phone Bottom Bar "Link" Tab (PR #474): Expanded
MainTabfrom 5 to 6 tabs withLINK("Link" / "連線"), extracted sharedLinkHubContent.ktbacked by theDesktopLinkServersingleton with foregroundtouchActivity()keepalive. - #467 7 New Two-Way Sync Capabilities (PR #474): Added two-way starring, message tag apply/remove, full to-do CRUD (
ReminderSchedulersync), 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),1180x760Master-Detail layout, Canvas 7-day/24h charts, Markdown-rendered AI Assistant, and keyboard shortcuts. - #469 Desktop System Tray Resident Mode (PR #474): Hoisted
DesktopLinkClientandMdnsScannertoapplication {}using ComposeTrayAPI; closing the window minimizes to tray by default while preserving LAN sync and native notifications (--minimized/--traysupported). - #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, unifieddesktopVersion = "0.3.0", producing bothPhantomCheckDesktop-0.3.0.msiandPhantomCheckDesktop-0.3.0-setup.exe. - #471 Cross-End Stability Audit Fixes (PR #474): Migrated
link.properties(hmacSecret) to per-user ACL directories (DesktopPaths.kt), addedsendCommandboolean feedback, 130sCHAT_SENDtimeout, per-clientclientCursors, safeactiveSessions.remove(id, sess), off-EDTJmDNS.close(),runCatchingaround Gson, and properCancellationExceptionrethrowing.
v4.5.0 Release Highlights (versionCode 53, 2026-11-23)
- #454 LinkHubActivity Desktop Settings Crash Fix (PR #459 / #463): Moved
enableEdgeToEdge()aftersuper.onCreate(), added targeted R8 keep rules forPairedDesktop/UnknownAttempt/CommandAuditEntryandqrcode.**, and wrapped allLinkHubActivity/DesktopLinkStore/DesktopLinkServerpaths withrunCatchingand copyablewss:///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 toruleBasedSearchDecisionin Token Saver), domain-deduplicated clean source lists (max 3), andFreeWebSearchEngineHTML/encoding sanitization, readability/length filtering, and domain quality tiering. - #456 Proactive Intel Hub v2 (PR #461 / #463):
WatchTopicEnginebuilds<=100-char personalized queries from non-sensitive memories, authorized 7-day calendar highlights, and high-level health trends;DigestComposeradds 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/packageVersionto0.2.0withTargetFormat.Msi/TargetFormat.Exeandwindows-latestCI/Release jobs, and upgradedDesktopAppwith dark-glass cards,springanimations, 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;
AiClientnow 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; unifiesAccept: application/json; non-JSON responses throw explicit exceptions preserving HTTP status code,Content-Type, and the first 300 characters of the body;testConnectionpayload shape is unchanged. - #440 Insights Tab Long-Term Goal Tracking (PR #442, Behavior Change): Completion is unified through
ReminderScheduler.completeTodoWithRecurrenceas the single trigger forGoalEngine.onTodoCompleted(with(goalId, todoId)dedup guard before write), removing directNotesTabcalls and goal-progress Toasts; overdue downgrade periods persist in dedicatedphantom_goal_engineSharedPreferences; next-period generation anchors onmax(today, previous dueAt + cadenceDays); milestones consumemilestoneJsonas the source of truth. - #441 Intimacy Stage 5 (PR #442, Behavior Change): Thresholds updated from
30/100/250to50/160/420/900, adding Lv5 "Kindred (知己)"; existing users' effective level may adjust downward as expected; the2/1/1weight 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
LocaleManagerper-app settings, API 26–32 smoothly recreates viaattachBaseContext); notifications, widgets, Settings catalog, and AI outputs all follow the app language;zh-TWsystem + Follow System behaves identically to v4.2.0. - #439 Widgets (PR #442): Upgraded all 7 existing widgets with
targetCellWidth/Height,previewLayout, dedicated vector previews,goAsync8.5s timeout, andonDisabledcleanup; 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-TWDevices:- Dual resource buckets (
values/default English fallback andvalues-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-TWdevices remain byte-for-byte unchanged.
- Dual resource buckets (
- #429 Full UI String Extraction & XML
@stringExternalization (PR #432):- Extracted 2,898 user-visible strings across Compose, Activities, Dialogs, Onboarding, widgets, notification channels,
SettingsCatalog(138 items),AndroidManifest.xml, andres/layout/*.xmlintostrings.xmlwith@stringreferences, and established the UI string extraction rule inAGENTS.md(zero behavior change).
- Extracted 2,898 user-visible strings across Compose, Activities, Dialogs, Onboarding, widgets, notification channels,
- #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.xmland translated the defaultvalues/strings.xmlbucket into concise Android UI English aligned with core terminology (PhantomCheck,AI Assistant,Memo,To-do,Whitelist,Scam Protection,Memory Bank).
- Moved all 2,898 Traditional Chinese strings byte-for-byte into
- #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-TWvs. English), whileIndicatorExtractor,MemoryEngine, andContactContextadd English scam lexicons (unpaid toll, parcel redelivery, bank ATO / safe account, Hi Mum impersonation, crypto pig-butchering, OTP harvesting) for offline rule-based detection.
- AI prompts across risk analysis, auto-memo, weekly summary, deep analysis, briefings, diary annotations, proactive intel, and chat automatically follow the system locale (
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.Materialwith darkandroid: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 andhealth_queryaction. - #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_ANNOTATIONAI purpose (ai_model_diary_annotationcan 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, andproactive_extract_enabledto catalog (all with symmetric read/write); added "Dark / Theme" synonym group, expanded health synonyms with distance/calories, and routed global settings search toSETTINGS_SEARCHpurpose 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
👎>=2scales cooldown ×1.5,👍>=2with 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_DAYevents 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): AddedSettingsHomeScreenandSettingsCategoryRegistrywith top 56dp dual-mode search bar (local keyword + AI semantic search), 6 editable pinned quick-setting tiles (inlineFluidSwitchtoggles), recently adjusted pills, and 8 categories (merging Personalization & Appearance, N1/N2 shared X-axis transitions, preservinghighlight_card_keydeep links); (3) Messages Home Simplification & Center Stack Preserved (D3):CenterFocusCardStackgeometry 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 inSettingsAdvancedSection, 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-ScreenNavigationRail(D7):>= 600dpswitches to leftNavigationRail+ centered840dpcontainer; (8) New Components, Motion N1–N7 & Zero-Regression Guarantee: AddedPhantomPageScaffold,GlobalSearchOverlay(5 scope chips / recent searches / quick actions / pinned),SettingsRow, and ID-onlyUiLayoutPrefs(phantom_ui_v400), appended N1–N7 draw-phase constants toPhantomMotionwithPredictiveBackHandler; 0 diff inservice/,data/,network/, andutil/(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
summarizeWeeklymaxTokensto2400(Groq1600), auto-continues onfinish_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 inPRIVACY.md; honestly refuses when unauthorized), plus local lookupHealthObservationPolicyinProactiveMonitorWorker(2 nights sleep<6h, 3 days steps<2000, resting HR>=12bpmabove 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 sharedeliverProactiveMessagediscipline, deep-linking to the proactive chatroom and clearing unread badges, with one-time banner ifassistant_briefingchannel is blocked; (4) Settings AI Semantic Search Fix (#405): Enabledjson_objectmode (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 colloquialaliasesfor all 136 catalog items; (6) Eliminated Mid-Sentence Truncation in Proactive Messages & Previews (#407): Removed.take(...)hard truncations inProactiveEngine,TaskTemplateEngine, and continuity anchors, with template fallback and tap-to-expand cards; (7) Auto-Popup Installer After Update Download (#408): PersisteddownloadId+version, addedBroadcastReceiver+Dispatchers.IODownloadManager.querypolling +ON_RESUMEre-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/phantomItemstaggered list entry withLocalPhantomEnterRegistry,phantomPopIn,PhantomChevronspring rotation,phantomSheenglass highlight border,PhantomAnimatedCount, and automatic static fallback whenANIMATOR_DURATION_SCALE = 0); upgradedFluidSwitch(draw-phase continuous color, outer glow, dynamic thumb checkmark),LiquidGlassTabBar(spring icon bounce & color transition), andpressableScale(Animatable+touchSlop/scroll early release + edge glow); appliedphantomSheentoPhantomGlassCard,PhantomFloatingSurface,MessageCard,PhantomSearchBarPill, andphantomPopIntoPhantomDialogandEmptyStateView; directionalAnimatedContentacross 6 main tabs (preservingSaveableStateProvider) with unified motion across all 5 tabs, Settings, all 12 subpages, andOnboarding.kt(springspotlight hole); chatroomanimateItem()bubbles, user bubble sheen (preserving8–24dpcorner radius &70%–95%width), draw-phase waveTypingDotsIndicator(zero per-frame recomposition); refinedPhantomMarkdownTextblockquotes, code blocks, and zebra-striped tables; added global Activity window transitions (styles.xml+ 4res/animXMLs). Zero new dependencies, 0 diff inCenterFocusCardStack, all 37 changed files inui/andres/, 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_EVENTSto 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_msstate 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) fromintelHit/cryptoAddressPresent(strong signal); automaticscamtagging 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; tightenedhasSuspiciousFeaturebare-word triggers and added feedback write-back to sender reputation and encrypted benign-domain LRU. - Bottom-Right Chat Bubble Timestamps (#376 / PR #383): Unified
10spHH:mm(CHAT_TIME_FORMATTERLocale.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 onBootReceiverreboot.
v3.4.0 Release Highlights (versionCode 43, 2026-11-21)
- Full-Table Whitelist Matching & Unified Dedup Fix (#362 / PR #369): Removed
LIMIT 20truncation inAiRuleDao.activeWhitelistAll();WhitelistRuleHelper.upsertWhitelistunified 6 write paths with dedup and re-enabling disabled rules; deep analysis re-queries DB whitelist and marks provenance;dedupWhitelistRulesIfNeededmerged existing exact duplicates. - Memory Tab Filter Chips Overlap Fix (#363 / PR #369): Separated top controls and two full-width
LazyRows (clipToBounds()+ trailingcontentPadding) inMemoryTabexpanded mode, standardizingheightIn(min = 34.dp)forfontScale = 1.3and360dpnarrow screens. - AI Tool-Calling Precision, Anti-Hallucination & Direct Local Queries (#364 / PR #369):
ChatScreenPartsinjects system capability declarations and single-intent single-card priority; addedLocalDataConnectorfor local calendar andUsageStatsBridge; implementedusage_queryquerying realUsageStatsManagerforeground 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 minUPDATE) queries external intel for checked calendar events in the next 48h using only "title + date (<=60 chars)", deduplicated byeventId|beginMs|intelHashand 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);TaskTemplateEngineseparates zero-AI aggregation from optional polishing with a 3-step wizard + WYSIWYG preview inAssistantHubActivity; added single-sourceLinkedAppActionRegistry(includingdiscord_digest_stats_readonlydemo connector) and fixedGitHubMonitorWorkersync/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) andcalendar_write_confirm(still checks conflicts when off), plus collapsibleN/Mlocal 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-pathmessageIddedup scoring, and removed daily AI summary (weekly summary unaffected and gated by token-saver mode; existingai_summarydata 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
SettingsCatalogcopy. - Permissions, Pre-Send Notification Check & Security Hardening (#345, #346, #352, #353, #356, #358 / PR #359): Added
PACKAGE_USAGE_STATSin Manifest; pre-send notification permission check with warning guide; GsonJsonObjectfor 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.queryFreeSlotsSummaryUTC day-boundary bug onALL_DAYevents and excluded sensitive memorycontentmatching inChatScreenmemory_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_immunityin chat. - Contacts Integration (#336 / PR #342): Upgraded Room to v20 (non-destructive
contact_aliasestable); 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_LOCATIONregion 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) andAssistantHubActivity; 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
ContactContextoffline acquaintance-impersonation detection (falling back to memory-only when denied), context contradiction injection into risk analysis,scam_immunitymemory 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_addconfirmation card with conflict warnings, "📅 Add to Calendar" suggestion card on schedule-type notifications, andACTION_INSERTfallback 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.propertiesfallback 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
NotesTabexpanded to-do area at 2/3 ofBoxWithConstraintsavailable 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/pBelowsymmetric fill pitch) and top-aligned compact short-list mode toCenterFocusCardStack, adjustingedgeGapto6dp(first card to Favorites and last card to bottom bar both6dp). - Storage Optimization & Database Maintenance (#299 / PR #303, #306 / PR #307): Enabled R8 code/resource shrinking in
releasebuilds; upgraded Room to v17 (MIGRATION_16_17) with query indexes; added periodicVACUUM, 300-entry avatar cache cap, and expiredintel_cachecleanup; 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
KEEPdebouncing with low-frequency reconnect check when persistent notification is off, hardenedStatsForegroundServicestartup and rescue exponential backoff, added screen-off early exit, and pre-compiled hot-path Regex/date formatters. - UI Component Splitting (#301 / PR #305): Split
MainActivityandChatScreeninto 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.mdandDISCLAIMER.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(replacing8dp) inCenterFocusCardStackto extend vertical visibility; reduced HomeCENTERouter spacing12dp → 8dpand NotesCENTERheader bottom spacing8dp → 4dp(non-CENTERmodes and shared card frame unchanged). - Damped Spring Snapping & Silky Transitions: Switched to official
snapFlingBehaviorwithspring(dampingRatio = 0.85f, stiffness = Spring.StiffnessMediumLow); addedFastOutSlowInEasingnear-focus scale easing (0.94f → 1.0f, seamlessly joining0.04fstep-down to0.82ffloor atabsU = 1) and6dpfocus shadow gradient ingraphicsLayerdraw phase, keeping lineartranslationYtracking and all v3/v4 geometry invariants.
- Tighter Vertical Margins: Added
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 * exposurepaired withtrailing, total scroll range(n - 1) * 40dpand snap feel unchanged) so 2–3 cards above focus stay natively in the visible range with top-band app icon/name visible; singleclipToBoundskept only on the outermost stack container. - Initial Top-Alignment & Linear Transition: Anchors flush at
8dpwith zero whitespace whenfirstVisibleItemIndex == 0andoffset == 0; replacedsmoothstephead/tail transition withzone-normalized linearlerpfor 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 whenn <= 4; Notes tab continues sharing the stack component with dynamic height. - Single-Line To-Do Due Subtitle: Added
maxLines = 1,softWrap = false, andEllipsistoNotesTodoRowdue info so it no longer wraps into two lines next to action buttons (both expanded and collapsed).
- Fixed Above-Focus Card Clipping & Missing Draw on Fast Fling: Switched to symmetric
v2.14.0 Release Highlights (versionCode 32)
- Compact Center Stack Cards (#270 / PR #272): Locked card height to
92dp(104dpcap for large fonts) with12dppadded three-part layout eliminating empty black space,40dpstack offset &edgeFade,scaleStep = 0.04f(0.82ffloor), and40dpbottom 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.Startuniform snapping for continuous multi-card inertial flings, smoothstep continuous lerp across top/mid/bottom anchors eliminating jumps, dynamic layer count,8dpmargins, and dynamiccontentPaddingfor zero whitespace and full card fill (44dpexposure,scaleStep = 0.035f, opaque inside viewport). - Fixed Dual-Path Duplicate SMS Recording (PR #268):
SmsAutoReplyReceiverhandles 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 fixed112dpcard height,24dpequidistant peek, and0.06fscale decrement; top-aligned at10dpinitially, smoothly transitioning to vertical center past halfway, computed purely ingraphicsLayerwithout recomposition. - Notes Tab Shared Stack & Removal of "Peek Top" (#250): Notes "Center Stack" now shares the new
CenterFocusCardStack(fixed112dp, 2-line body ellipsis, corner icon buttons); removedPEEK_TOP(auto-migratingpeek_toptoCENTER), and streamlined Settings andSettingsCatalogto "Standard List / Center Stack". - AI Auto-Todo Smart Time Inference & 30-Minute Lead Reminder (#252):
buildSystemPromptinjects current time to infertodo_due, combiningClientTimeParser(including year-rolloverMM/dd) and+2hfallback, scheduling reminders 30 minutes before event time (including duplicate update rescheduling). - Pinning Notes Preserves Original Timestamp (#251):
onTogglePinNoteupdates onlypinnedwithout overwritingupdatedAt. - Per-Purpose Binding & Sync for Deep Analysis / Daily Summary Chips (#253): Detail and Stats chips now write
setPurposeProfileId, readgetProfileForPurpose, sync live withPhantomSettingsBusandON_RESUME, and include dedicated purpose label prefixes. - Daily & Weekly Summary Punctuality Hardening (#254): Added
maybeCatchUpfor missed runs,Result.retry()for daily failures (max 3 retries, 10-min backoff), scheduled-time anchoring for weekly summaries, and relaxed weekly constraints toNetworkType.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
VerticalPagercenter-focus wheel (focused cardscale=1.0/alpha=1.0centered with highest zIndex, up to 2 symmetric scaled cards above/below at0.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-reschedulingOneTimeWorkRequestso 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
StackedAppCardwith "Standard List", "Peek Top (Card Deck)", and "Peek Bottom (Folder)" modes (withSnapFlingBehaviorand bleed-through protection), wired toSettingsCatalog(personal_home_card_layout) andPhantomSettingsBus. - Sender Avatar Extraction & Display (#231): Upgraded Room to v16 (
MIGRATION_15_16) addingsender_avatarstable; extracts and downsamples notificationPersonavatars (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_echotable 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; addedVelocityTrackerprojection 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/BrushinLiquidGlassTabBar, tuned liquid spring and synchronous drag; preserved tab state viarememberSaveableStateHolderand 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(), dark0xF012151E/ light0.95fopaque fill +0.65fscrim), 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
derivedStateOfandsnapshotFlow, eliminating per-frame recomposition storms during drag. - Message Card Stack Visibility Enhancement (#224): Changed
StackedAppCardlayer color tolerp(surfaceVariant, onSurface, 0.25f), raised alpha to0.55f/0.35f, tuned scale to0.96f/0.92f, and added 1dpoutlineVariantborder on layer 1. - Live Sync for AI Settings Changes (#225): Added
PhantomSettingsBusso 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):
saveAutoMemoIfPresentapplies literal gates only toneverrules with app/sender criteria; keyword-onlyneverrules 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):
StackedAppCarddraws 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.UNREADto use true unread counts (hidden at 0,99+above 99); fixed AI Assistant input bar keyboard overlap (singleimePadding+ 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); addedai_chat_tab_behaviorto 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
Tunebutton;AiClientsupports 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) addingmemo_rulesandMemoRuleEngine(never > todo > note); added "Auto-Note Rules" card in Notes tab (natural-language AI parsing + confirmation card and manual add),ChatScreenadd_rulekind="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
MessagesHomeTabinto fixed header (stats / category filters / favorites) + independently scrolling message list; moved refresh/settings into stats card right column and added 22dpPhantomPullSearchHandle(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 persistisOwn = truerendered 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 bodyonSurface, madePhantomFullScreenSearchOverlayopaque, and setCardBgMode.TRANSPARENTslider 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
adjustResizeto 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);sendReplyToNotificationtargetsMessagingStylethreads viaconversationKeyand chains intoReplyProxyManagercontinuous notification reply and SMS fallback. - Crash-Proofed Reply Chain & AI Actions (#196): Fixed
ReplyProxyManagerRemoteInputPendingIntenttoFLAG_MUTABLE, addedtry/catchandfirstOrNull()guards acrossReplyProxyReceiver,ReplyProxyManager, andChatScreen, with unifiedPhantomReply/PhantomChatActionlogcat. - 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 inPhantomPrefswired toSettingsCatalog. - Todo Flow Real-Time Sync (#198):
TodoDao.observeAll()keeps Notes tab andChatScreentodo menu synced immediately with widget changes; addedON_RESUMErefresh forremindAtinMessageDetailActivity. - Search & Transparent Background UI Polish (#193, #194, #195): Fixed full-screen search overlay z-order in
ConversationScreenandAppThreadsScreen; unifiedPhantomSearchBarPillto 36dp mini glass pill (>=48dptouch target); removed opaque background fromSwipeToRevealRowso custom wallpapers show through. - Global Dependencies, AGP 9 &
targetSdk36 Upgrade (#200): Upgraded Gradle9.9.1, AGP9.5.1(built-in Kotlin), Kotlin2.4.21, Compose BOM2026.09.00, Room2.8.5(kapt → KSP2.3.14), Retrofit3.0.0, WorkManager2.12.0,compileSdk37/targetSdk36, and migratedGlass.ktto Haze2.1.0hazeBlurAPI.
v2.5.0 Release Highlights (versionCode 23)
- Continuous Quick Reply from Notification Shade (#183): Added
ReplyProxyManager/ReplyProxyReceiver(exported="false") andNotifIds120000..129999range;ChatScreenreplies launchMessagingStyleproxy notifications (up to 8 history items, 8-session LRU, SMS fallback,AlarmManageridle timeout 15/30/60/off), with Settings andSettingsCatalogentries. - Conversation Page Glass Black-Background Fix (#184): Fixed
.clip(shape)ordering inComponents.ktPhantomGlassCardandphantomGlassSurfaceafterglassSurface(...)(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):
MainActivityON_RESUMEsilently checks once per day;UpdateAvailablesends once-per-version-per-day notification (NotifIds.UPDATE_AVAILABLE = 1007) + dialog, withupdate_auto_check_enabledtoggle in Settings About andSettingsCatalog. - 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;AiClientaddsmemo_type(note|todo) andtodo_dueto create deduplicatedTodoEntitywith scheduled reminders and widget refresh, sharing extractedClientTimeParser. - Widget Notification Sync & Enlarged Buttons (#189): Completing/deleting todos or reminders clears active notifications; enlarged
widget_reminder.xmlbuttons to16spbold +minHeight="32dp"+ ripple feedback, and raisedreminder_widget_infominHeightto72dp.
v2.4.0 Release Highlights (versionCode 22)
- AI 5-in-1 Token Saver & Vision Fix (#174, #173): Implemented
prompt_cache_keyand byte-identical static prefix caching, incremental chat context summaries, dual-model confidence routing (mistral-small-2603first, escalating 30–70 without double-charging quota), dynamic image size estimation, and daily/weekly summary dedup caps; fixedmistral-small-2603being misclassified as text-only. - Card Black-Background Overflow Fix & Surface Modes (#175): Unified
PhantomGlassCardsingle 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), addingcompletedAt, 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_deleteaction 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) andDEEP_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
PendingIntentandgoAsync()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/parseBatchAnalysisJsonsupport fence stripping, balanced-brace multi-object extraction, and lenient preprocessing; single analysis supports OpenAI-compatiblejson_objectand 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) withai_tag_failure_notif_enabledtoggle. - Background Page Black-Screen Fix & Picker Fallback (#170):
PhantomBackgroundBoxexplicitly draws theme background when unset/loading/failed;SettingsActivitypersists picking state viarememberSaveableand offersOpenDocumentfile 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):
ChatScreenimages use bounds-firstinSampleSizedownsampling (<= 1024px, doubling on OOM retry) and honest error categorization, updated Groq/DeepSeek vision support lists, and fixedBackgroundImageHelperinJustDecodeBoundsreturningnullon 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;ChatScreenswitcher changes only chat model. - Offline AI Retry Queue (#164): Upgraded Room to v13 (
MIGRATION_12_13) addingpending_ai_analysistable; transient failures enqueue for WorkManagerPendingAiAnalysisWorkerexponential-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_enabledauto-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_VIEWsystem installer integration (includingREQUEST_INSTALL_PACKAGESand unknown-sources guide). - Custom Multi-Layer Backgrounds & Visual Sliders (#159): Added 3-layer backgrounds (Global / AI Chat / Conversation via
PickVisualMedia+ JPEG 85 downsampling & singleLruCache), 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), andexport_messages(reusingMessageExporterCSV), with all mutating actions gated by confirmation cards. - Global Codebase Health Check Fixes (#158): Fixed cross-session
pendingTodoQueueblocking, added 30s TTL cache foruser_tag_ruleswith full-path cache invalidation, fixedtag_rulemissing-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) addingtodostable; AI Assistant supportsreminder_addwith deterministic time-parsing fallback, confirmation cards, and management Sheet, scheduled viaAlarmManager.setAndAllowWhileIdle, rescheduled on boot byBootReceiver, and synced withReminderWidgetProvider. - Multi-Select Batch Management on Conversation & Thread Lists (#144): Added multi-select batch actions (read / star / delete, up to 100 items) on
ConversationScreenandAppThreadsScreen, disabling swipe/tap during selection and strictly protecting scam records while cleaningmessage_tagscross-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
SnackbarHostprevents 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)MessagingStyleconversationKeyfixes LINE group splitting; added "About" section at bottom of Settings (runtime version sync);release.ymlextractsCHANGELOG.mdversion 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-tokenTagRuleEngineanduser_ruletag 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 inAiClientwith halved-limit auto-retry in chat (min 25) and quota refund on deep analysis413;ChatScreensupports multi-action parsing, merged checkablewhitelistconfirmation cards, and honest error reporting without raw JSON fallback. - In-Chat Numeric Adjustment & Settings Navigation (#124, #125): Added
setting_adjustslider confirmation cards for RAG limit, daily AI quota, and same-key throttle; addedopen_settingnavigation 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):
PhantomMarkdownTextcompleted 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, OpenAIgpt-6.1-terra, Groqopenai/gpt-oss-120b, Geminigemini-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
SettingsCatalogwith 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
postTimecapture consecutive identical-content messages (dedupCacheonly 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;
NotifIdscentralizes mutually exclusive IDs;AiClient.sanitizeForPromptprotects 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,
UPDATEpolicy forHeartbeatPolicy/WeeklySummaryPolicy, 30s cache + layer decoupling forPhantomPrefsthrottle map, 7-day/hourly SQL aggregation, and shared widget iconLruCache.
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
chatAssistantmaxTokensto4096with relaxed chat timeouts (read 120s / callTimeout 180s), honestly annotating truncation whenfinish_reason == "length". - Watchdog & Hot-Path Battery Optimization (#94): Switched
ShizukuWatchdogServiceto 5-min / 60s adaptive backoff, conditionalizedrequestRebindon!isConnected, and addedappLabelCache(LruCache(64)) and 30s TTL rule caches on the notification hot path.
Installation Guide (No Compilation Required)
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.apkfile.
- Go to the Releases page on the right side of this repository, select the latest version (e.g.,
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
mainbranch. - Scroll down to Artifacts, download
phantomcheck-debug-<number>, and extractapp-debug.apk.
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".
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).
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.
Windows Desktop Companion (
setup.exe) & Upgrade TroubleshootingPhantomCheckDesktop-<version>-setup.exe(Inno Setup) is the sole official Windows installer and update channel (legacy.msipackages from older releases are retired).- Upgrading from a legacy
.msi(v0.2.0–v0.4.0): Simply run the newsetup.exeonce. The installer automatically requests a graceful shutdown, silently removes any legacy.msior 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:
- Collaboration rules & role division: AGENTS.md
- Contribution guide & PR workflow: CONTRIBUTING.md
- Local development setup: docs/LOCAL_SETUP.md
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.
Explorar proyectos relacionados
Cargando…