Configuration Walkthrough

Input Leaf Setup Guide: Connect PC Mouse & Keyboard to Android

Complete step-by-step setup guide for Input Leaf. Configure Input Leap or Deskflow on Windows, Mac, or Linux, pair with your Android device over Wi-Fi, and enable Shizuku or Accessibility input injection.

6 min readUpdated 2026-09-05Apache 2.0 Open Source

Prerequisites Checklist

Before beginning, make sure both your computer and your Android device are connected to the same local network:

On your Computer

  • Input Leap (v3.0.2+) or Deskflow installed
  • Connected to your local Wi-Fi router or Ethernet LAN
  • TCP port 24800 open in firewall

On your Android Device

  • Input Leaf APK installed (Android 8.0+)
  • Connected to the same local Wi-Fi subnet
  • Optional: Shizuku active for hardware shortcuts

Step-by-Step Visual Setup Guide

Follow these 5 steps to configure your desktop server and connect your Android phone:

01
Computer Setup

Configure Desktop Server Screen Layout

Input Leap / Deskflow

Open Input Leap or Deskflow on your PC in Server Mode and click Configure Server... to edit your screen layout grid:

  1. Drag a new screen icon from the top tray into the grid.
  2. Position it where your phone or tablet is physically located on your desk (e.g. to the right of your primary PC monitor).
  3. Double click the new screen icon and set its Screen name to match the client name displayed in the Input Leaf app (e.g., input-leaf).
  4. Click OK, then click Apply or Start.
Server Screen Configuration Matrix
desktop-pcHost PC (Server)
Port 24800 (TCP)
Screen Boundary
input-leafAndroid (Client)
Input Leaf Active

Setup Note: The screen name in your PC grid (input-leaf) must match the client name in the Input Leaf Android app exactly.

02
Android App Setup

Grant Overlay & System Permissions

Required

Launch Input Leaf on your Android phone or tablet. The guided setup wizard will request permissions necessary to render the mouse cursor and handle input:

  • Display Over Other Apps (Overlay): Allows Input Leaf to render the custom leaf cursor across your Android home screen and inside any running third-party app.
  • Tap Grant Permission and toggle Allow display over other apps to ON.

Zero Tracking: Input Leaf uses this permission exclusively for rendering the on-screen mouse pointer.

Input Leaf overlay permission screen
Allow 'Display over other apps' so Input Leaf can draw the virtual cursor.
03
Input Engine

Choose Input Injection: Shizuku or Accessibility

High Performance

Input Leaf supports two distinct methods for injecting mouse and keyboard events into Android:

  • Shizuku Mode (Recommended): Uses rootless ADB developer shell privileges (UID 2000). Provides true hardware-accurate mouse movement, right-click, and full modifier keys (Ctrl+A, Ctrl+C, Alt+Tab, Escape).
  • Accessibility Service (Instant Fallback): Quick setup without installing Shizuku. Works through standard Android accessibility APIs for basic typing and clicking.

Read our Shizuku Setup Deep-Dive →

Shizuku setup and authorization in Input Leaf
Authorize Shizuku for full hardware keyboard shortcuts and smooth cursor tracking.
04
LAN Pairing

Connect to PC & Accept TLS Certificate

Auto-Discovery

On the Input Leaf home screen, your computer's server will appear automatically under Discovered Servers via local mDNS:

  1. Tap your server name to initiate the connection.
  2. If mDNS is blocked by your router, tap Manual Connect and enter your PC's local IP address (e.g. 192.168.1.150) and port 24800.
  3. Trust-On-First-Use (TOFU): Input Leaf will display your PC's SHA-256 certificate fingerprint. Verify it matches your PC server window, then tap Trust & Connect.
Find PC IP Address
# Windows PowerShell
ipconfig | findstr IPv4

# macOS / Linux
ip route get 1.1.1.1 | awk '{print $7}'
Input Leaf home screen showing discovered servers and active status
Select your discovered PC server or enter IP address manually.
05
Stability Setting

Prevent Background Disconnects

Crucial for OEM Skins

Many Android phone manufacturers (Xiaomi, Samsung, OnePlus) aggressively kill background processes when screens sleep:

  • Tap Allow Background Activity in Input Leaf's setup prompt.
  • In your phone's App Info, change Battery usage from Optimized to Unrestricted.
  • On Xiaomi / MIUI devices, enable Autostart and lock the app in the Recents overview.

See device-specific fixes in our Troubleshooting Guide.

Allow background activity permission in Input Leaf
Exempt Input Leaf from battery saver so sessions stay active.
06
Customization

Fine-Tune Pointer Speed & Cursor Styles

Personalize

Open the Settings screen in Input Leaf to adjust how the mouse feels:

  • Pointer Speed & Acceleration: Calibrate cursor sensitivity so moving between high-DPI desktop monitors and your phone screen feels natural.
  • Cursor Theme: Switch between the branded green leaf pointer and a classic arrow cursor.
  • Saved Favorites: Pin multiple workstations for one-tap reconnect when switching desks.
Input Leaf settings screen showing cursor speed and configuration
Customize pointer speed, acceleration curves, and server favorites.

Common Questions

Setup & Configuration FAQ

Input Leaf displays your device's screen name on its home screen (by default, often something like 'android-phone' or your device model). You must use this exact name when creating the screen in your desktop Input Leap or Deskflow grid layout.
Get Started Today

Control Android with your PC mouse & keyboard

Input Leaf is 100% free, open-source, and runs on your local Wi-Fi network without cloud servers or root access.