Documentation for Website & Portfolio
Mob-Jarvis is a powerful hybrid AI ecosystem that bridges your Smartphone (Android) and your Workstation (Windows). It allows you to control your PC purely via voice commands from your phone, leveraging a seamless Cloud-Sync architecture. Unlike standard assistants, Jarvis executes complex system-level tasks on Windows (opening apps, typing, browsing) triggered remotely from anywhere.
The system uses a Client-Cloud-Server architecture to ensure reliability and speed without needing complex port forwarding or static IPs.
-
Client (Android App):
- Role: The "Ears" and "Remote".
- Function: Listens for voice commands, processes natural language, and determines if the task is local (Phone) or remote (PC).
- Sync: Uploads commands to Google Firebase Firestore in real-time.
-
The Cloud (Firebase Firestore):
- Role: The "Message Queue".
- Function: Acts as a secure, real-time database that instantly synchronizes commands between the phone and PC.
-
Server (Windows PC Host):
- Role: The "Hands" and "Engine".
- Function: A lightweight Python listener (
firebase_listener.py) watches the cloud. When a command appears, it triggers the Jarvis Engine (command.py) to execute the task on Windows.
graph LR
A[Android Phone 📱] -- "Vocal Input" --> B[Command Processor]
B -- "Write Command" --> C((Firebase Cloud 🔥))
C -- "Real-time Sync" --> D[Python Host 💻]
D -- "Execute" --> E[Windows System ⚙️]
- Voice Activation: Seamless voice listening with UI feedback.
- Circle to Search: Custom overlay allowing users to circle content on screen to search/analyze (similar to Google/Samsung implementation).
- Flashlight Control: "Turn on flashlight" / "Turn off flashlight".
- Note Taking: "Take a note..." saves local text files.
- App Management: Opens installed apps via voice.
- System Info: Batter level, WiFi status, Bluetooth status checks.
- Remote Launching: "PC Open Notepad", "PC Open Chrome".
- Web Automation: "PC Google Search [Query]", "PC Open YouTube".
- System Control: Capability to expand to Shutdown, Restart, Volume control (extensible via engine).
- Universal Bridge: Can execute ANY Python function defined in the PC engine.
- Language: Kotlin
- Core APIs:
SpeechRecognizer(Voice Input)AccessibilityService(Overlay & Circle to Search)MediaProjection(Screen Capture)Firebase Firestore SDK(Cloud Sync)OkHttp(Legacy API calls)
- Language: Python 3.10+
- Core Libraries:
firebase-admin(Database Connection)pyautogui(UI Automation)subprocess(System Commands)eel(Frontend GUI for Desktop)
- Database: Google Firestore (NoSQL)
- Auth: Service Account Key Authentication
- Android Phone: Android 8.0 (Oreo) or higher.
- Windows PC: Windows 10/11 with Python installed.
- Internet: Both devices must be online (WiFi or Data).
- Firebase Project: Must have a
serviceAccountKey.jsonand Firestore Database enabled. - Python Environment:
pip install firebase-admin pyautogui eel
- Android Build:
- Update
google-services.jsoninapp/. - Build APK via Android Studio.
- Update
- Gemini AI Integration: Sending screen screenshots from Phone to PC for LLM analysis.
- Bi-Directional Chat: PC sending status updates back to the Phone (TTS).
- Smart Home: Controlling IoT devices via the PC hub.