Hybrid Local + Cloud AI Privacy-First & Offline Ready 14 Android Modules + FastAPI

An Intelligent Operating Companion for Android.

Beyond a chatbot. NexaDroid understands your on-screen context with explicit consent, remembers across a semantic Knowledge Graph, routes intelligently between on-device models and cloud reasoning, and automates Android safely behind confirmation gates.

14Kotlin/Compose Modules
8Production UI Screens
128-DOffline RAG Vectors
AES-256Keystore Encryption
Hybrid AI Router Live Preview
LOCAL • nexa-core-offline 14 ms • 100% private

Fast lightweight query handled locally with semantic memory RAG.

From your personal memory Project Atlas (92% match): Meeting with Maya Chen about Kubernetes rollout on Friday at 3 PM.
Memory: Project Atlas Graph: Atlas -[involves]-> Maya Chen
Core Capabilities

Built for Real Context, Not Empty Demos

Every subsystem separates Android OS platform APIs from AI routing, encrypted storage, and optional FastAPI sync.

⚡

Hybrid Local & Cloud Engine

Routes automatically across on-device NexaCore, Ollama / llama.cpp GGUF models, and OpenAI, Anthropic, or Gemini with seamless offline fallback and token telemetry.

🧠

3-Layer Memory & Knowledge Graph

Short-term session context, long-term approved memories, and automatic entity-relation graphs indexed with 128-dim dense embeddings and Markdown/JSON export.

👁

Consent-Gated Screen Intelligence

On-demand MediaProjection foreground capture, ML Kit OCR, and password-safe AccessibilityService inspection. Zero covert capture; sensitive apps excluded.

⚙

Confirmation-Gated Automation

Launch apps, open Settings, schedule WorkManager reminders, launch URLs, copy/share, draft SMS, manage notifications, and execute multi-step workflows safely.

🎙

Voice Intelligence & Barge-In

Android SpeechRecognizer + configurable TextToSpeech with instant playback interruption on mic tap and opt-in foreground wake-phrase handling.

🛡

Hardware-Backed Security

Android Keystore AES-256-GCM field encryption, EncryptedSharedPreferences API key vault, live Permission Dashboard, audit log, and one-action full data wipe.

Obsidian Neural UI

All 8 Production Screens

Jetpack Compose + Material 3 adaptive layouts supporting dark & light themes, phones, and tablets.

Modular System Design

14 Android Modules + Python FastAPI Backend

Strict dependency boundaries with Hilt DI, Kotlin Coroutines & Flow, Room SQLite, DataStore, FastAPI, WebSockets, and PostgreSQL.

Android Multi-Module Stack

:app:core:security:database :networking:local-models:cloud-ai:ai-engine :memory:screen-intelligence:automation:voice :ui-components:feature-settings
  • Kotlin 1.9.24 + Jetpack Compose (BOM 2024.06.00 / Material 3)
  • MVVM + Hilt 2.51.1 + Room 2.6.1 + Jetpack DataStore
  • ML Kit Text Recognition + MediaProjection + WorkManager
  • OkHttp 4.12 REST, SSE & WebSocket real-time streaming

Companion Backend & Storage

FastAPIWebSocketsSQLAlchemy Async PostgreSQL 16SQLite FallbackTesseract OCR
  • REST + WebSocket Hub (/api/v1/* & /ws/assistant)
  • PostgreSQL DDL in backend/app/db/schema.sql + Docker Compose
  • Hybrid RAG & Graph Sync mirroring mobile 128-dim embeddings
  • Verified Test Suites: Gradle unit tests + Pytest integration tests
Zero-Trust Guarantees

Privacy Built Into Every Layer

No Silent Screen Capture

ScreenCaptureService activates only on explicit user tap and displays an ongoing OS notification. Banking & password-manager packages are blocked by default.

Password Fields Ignored

NexaAccessibilityService immediately skips any UI node marked isPassword == true and buffers only when inspection is explicitly armed.

Mandatory Action Confirmation

Every automation intent passes through ActionConfirmationDialog showing target, parameters, and risk level before execution.

Complete Device Wipe

One confirmed wipe clears Room tables, Knowledge Graph, DataStore, encrypted API keys, downloaded GGUF models, and cached captures.

Deploy & Build

Get Running in Minutes

1. Build & Test Android App
git clone https://github.com/yashab-cyber/NexaDroid.git
cd NexaDroid/android
./gradlew testDebugUnitTest assembleDebug
2. Run FastAPI + PostgreSQL Backend
cp config/.env.example backend/.env
docker compose up --build
# Or local zero-config SQLite:
cd backend && uvicorn app.main:app --reload