Skip to content

An Android Client for Stable Diffusion WebUI Forge and Comfy Ui. Supports Background Generation, Flux, SDXL, and Qwen via Capacitor.

License

Notifications You must be signed in to change notification settings

bojrodev/Resolver-Stable-Diffusion-Client-for-android

Repository files navigation

Resolver


Resolver is an open-source, high-performance native Android interface for AI image generation. It provides a seamless mobile experience for interacting with WebUI Forge and ComfyUI backends, ensuring your generation queues stay active even when your screen is off.

Table of Contents

Quickstart

To get started with development, clone the repository, install dependencies with npm install, run npx cap sync, and then npx cap open android to launch in Android Studio.

Features

Core Engines

  • Forge WebUI Integration: Natively optimized for WebUI Forge Neo.
  • ComfyUI Orchestration: Execute .json workflows with dynamic UI generation (sliders, dropdowns, and inputs).
  • Flux and SDXL Powerhouse: Full control over sampling, scheduling, and Flux First Block Cache (FBC) optimizations.
  • Qwen / Z-Image: Specialized mode for dense narrative-to-image support.

Advanced Capabilities

  • True Background Generation: Java-based Foreground Service with Wake Locks keeps tasks running while the app is minimized.
  • Native Metadata Analysis: Built-in viewer to analyze and reuse generation parameters directly from your local history.
  • Live WebSocket Feedback: Real-time step monitoring and binary image previews.
  • Magic Prompt: Connect to local LLMs (LM Studio/Ollama) to expand simple ideas into complex prompts using Bojro PromptMaster.
  • Mobile Inpainting: Touch-optimized canvas editor with mask blurring and denoising controls.

Remote Management

  • Smart Connection: Seamlessly toggle between Local (LAN) and External (HTTPS/Ngrok) modes.
  • Power Control: Integrated remote KILL! signal to halt backend services instantly.
  • Remote Wake: Integration with Bojro Power helper for remote system startup.

Screenshots


Home / SDXL TAB

Flux UI

QWEN / Z-IMAGE TAB

Inpainting

Lora Tab

Configuration Tab

Magic Prompt Tab

Gallery Tab

Metadata viewer Tab

Queue Tab

Requirements

  • Android 10.0 (API 29) or higher
  • A running instance of WebUI Forge or ComfyUI
  • Shared Wi-Fi network (for local connection)

Backend Setup (Mandatory)

To allow Resolver to communicate with your PC, you must enable API access:

WebUI Forge: In webui-user.bat, set COMMANDLINE_ARGS to include --listen --api --cors-allow-origins *

ComfyUI: Append --listen and --enable-cors-header * to your launch command.

Magic Prompt (LLM) Setup

  1. Model: Download PromptMaster v2 from HuggingFace.
  2. Host: Load the model into LM Studio or Ollama.
  3. Link: Enter your PC IP or Server URL in the Resolver Bot modal.

Remote PC Wake

Requires the Bojro Power (BojroPowerv_x_portable.exe) utility running on the host PC.

  • Set the Wake Port (Default: 5000) in the CFG Tab.
  • Use the Power Icon (ტ) to trigger the wake signal through the Bojro Power helper.

Installation

  1. Download the latest .apk from the Releases page.
  2. Install on your Android device.
  3. Open the CFG Tab, enter your PC IP address, and save.

Architecture

Resolver utilizes a Hybrid Mobile Architecture to balance UI flexibility with system-level performance:

  • Frontend: Vanilla JS + Capacitor 6.0 for a responsive UI.
  • Backend Communication: REST API for state sync and WebSockets for real-time image streaming.
  • Native Layer: Java-based Android Foreground Services with Wake Locks to ensure background task persistence.

License

This project is licensed under the GPLv3 License.