npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dev-mode-cli

v1.0.10

Published

Official CLI tool for Dev Mode — instantly toggle Android Developer Options, USB & Wireless ADB, and auto-connect over Wi-Fi without manual typing.

Readme


🚀 Quick Start

No installation required! Run instantly using npx:

  ██████╗ ███████╗██╗   ██╗   ███╗   ███╗ ██████╗ ██████╗ ███████╗  │        ▄▄           ▄▄
  ██╔══██╗██╔════╝██║   ██║   ████╗ ████║██╔═══██╗██╔══██╗██╔════╝  │        ▀██▄  ▄▄▄▄  ▄██▀
  ██║  ██║█████╗  ██║   ██║   ██╔████╔██║██║   ██║██║  ██║█████╗    │       ▄████████████████▄
  ██║  ██║██╔══╝  ╚██╗ ██╔╝   ██║╚██╔╝██║██║   ██║██║  ██║██╔══╝    │      ████  ████████  ████
  ██████╔╝███████╗ ╚████╔╝    ██║ ╚═╝ ██║╚██████╔╝██████╔╝███████╗  │      ████████████████████
  ╚═════╝ ╚══════╝  ╚═══╝     ╚═╝     ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝  │     (════════[● ON]═══════)
   ⚡ Android Quick-Toggle & Wireless ADB CLI  v1.0.10
   ─────────────────────────────────────────────────────────────────────────────────────────

              ⚡ DEV MODE : ACTIVATED [ON] ⚡
       [ Android Developer Options & Wireless ADB ]
# Enable Developer Options only
npx dev-mode-cli on

# Enable USB Debugging specifically
npx dev-mode-cli usb on

Or install globally to use bare devmode anywhere:

npm install -g dev-mode-cli
devmode status

📱 Choose Your Setup Tutorial

Dev Mode supports two simple workflows depending on whether you want a standalone terminal utility or a mobile app toggle with Quick Settings tiles:

🔹 Option 1: Setup WITHOUT Mobile App (Pure Terminal CLI)

Best for developers who just want quick terminal commands on their PC to toggle settings and auto-connect ADB wirelessly.

  1. Enable Developer Options on Phone (One-time):
    • Open Settings > About Phone.
    • Tap Build Number 7 times until you see "You are now a developer!".
  2. Enable USB Debugging:
    • Go to Settings > System (or Additional Settings) > Developer Options.
    • Turn USB Debugging to ON.
  3. Connect Device to PC:
    • Plug your Android device into your computer with a USB cable.
    • When the prompt "Allow USB debugging?" appears on your phone screen, check "Always allow from this computer" and tap OK / Allow.
  4. Run CLI Commands Directly:
    # Toggle Developer Options on/off
    devmode on
    devmode off
    
    # Enable Wireless ADB & auto-connect over Wi-Fi without typing IPs/ports
    devmode wifi on
    
    # Speed up UI animations to 0.5x for ultra-fast testing
    devmode speed 0.5

🔹 Option 2: Setup WITH Dev Mode Mobile App (Android Tiles & Widgets)

Best for developers who want 1-tap toggles directly from their Android Quick Settings panel, homescreen widget, or phone without touching a terminal every time.

  1. Download the Mobile App:
  2. Install on Phone:
    • Open and install the downloaded .apk file on your Android device.
  3. Connect via USB (One-time permission grant):
    • Connect your phone to your PC via USB cable (with USB Debugging turned ON).
  4. Grant Secure Settings Permission with One Command:
    • Run the dedicated grant command from your terminal:

      devmode grant

      (Or via npx: npx dev-mode-cli grant)

      Under the hood, this executes:

      adb shell pm grant com.devmode.app android.permission.WRITE_SECURE_SETTINGS
  5. Done! Unplug and Enjoy:
    • You can now safely unplug the USB cable!
    • Add the Dev Mode Quick Settings Tile to your Android notification shade, or use the in-app switch to toggle Developer Options anytime directly from your phone!

✨ Features Overview

| Feature | Command | Description | Zero Root | | :--- | :--- | :--- | :---: | | ⚡ 1-Tap Developer Mode | devmode on / off | Toggles development_settings_enabled on or off with instant app synchronization | YES | | 🔑 One-Command App Grant | devmode grant | Automatically grants WRITE_SECURE_SETTINGS permission to Dev Mode Mobile App | YES | | 🔌 Auto Wireless ADB Connect | devmode wifi on | Reads local Wi-Fi IP, dynamically resolves pairing port, and runs adb connect <ip>:<port> automatically | YES | | 📡 mDNS & Reconnect Discovery | devmode wifi connect | Auto-discovers Android devices over LAN using mDNS (_adb-tls-connect._tcp) without USB | YES | | 🛠️ USB Debugging Control | devmode usb on / off | Selectively turns USB debugging on or off | YES | | 🏎️ Speed Booster (Animations) | devmode speed 0.5 | Sets window, transition, and animator scales to 0.5x for ultra-fast testing | YES | | 📊 Device Diagnostics Dashboard | devmode status | Displays live device model, connection type, IP address, active port, and status flags | YES | | 🎨 Official Green ASCII Icon | devmode icon | Renders the official Android bugdroid + toggle switch ASCII art banner | YES | | 🌉 Rootless Wi-Fi Bridge | devmode bridge | Direct LAN bridge to Dev Mode Mobile App even when USB Debugging is OFF | YES | | 🚀 Universal App Runner | devmode start / run | Auto-detects project: starts Expo server for Expo apps or Native Studio for Kotlin/Android | YES | | ⚡ Native Android Studio | devmode studio / start --native | Lightweight Android Studio CLI for Kotlin/Java builds with Expo-style hotkeys (s sync, i reinstall, r restart, l logcat) | YES | | 📱 Launch Debug Build | devmode debug:android | Builds and launches debug app on Android device & auto-grants permissions | YES | | 🔄 Instant Fast-Refresh | devmode reload | Sends hot-reload signal to Metro bundler and connected device | YES | | 📋 Open Dev Menu | devmode menu | Opens React Native / Expo developer menu directly on device screen | YES | | 📦 Google Play Bundle | devmode build:aab | Compiles production Android App Bundle (bundleRelease) | YES | | 🏗️ Native Gradle Build | devmode build:android | Compiles native Android APK using Gradle (assembleDebug/assembleRelease) | YES | | 📲 One-Tap APK Installer | devmode install:apk | Auto-detects latest compiled APK and installs it to connected device | YES | | 🧹 Deep Cache Cleaner | devmode clean | Purges Gradle build caches and .expo Metro bundler caches | YES | | 📜 Live Device Logcat | devmode logs | Streams filtered React Native, Expo, and AndroidRuntime crash logs | YES | | 🪶 Zero Dependencies | Built-in Node.js | Pure lightweight Node.js standard library with millisecond execution speed | YES |


📖 Command Reference

# Core Toggles & Display
devmode on                     # Turn ON Developer Options (displays green ASCII icon)
devmode off                    # Turn OFF Developer Options only
devmode icon                   # Display official Dev Mode green ASCII art icon
devmode status                 # Inspect live device details, IP, port, and status flags

# Mobile App Bridge & Permissions
devmode bridge                 # Inspect direct Wi-Fi bridge to Mobile App (ADB bypassed)
devmode grant                  # Grant WRITE_SECURE_SETTINGS permission to Dev Mode Mobile App

# Wireless ADB (Auto-Connect)
devmode wifi on                # Enable Wireless Debugging and auto-connect
devmode wifi off               # Disconnect and disable Wireless Debugging
devmode wifi connect           # Reconnect to discovered or cached wireless device
devmode wifi connect <ip:port> # Connect to a specific endpoint

# Expo & Android Dev Suite
devmode auto                   # Interactive menu: press one key (o/u/w/s/a/b/i...) to run any command
devmode start                  # Auto-detects project: starts Expo server (or Native Studio for pure Android)
devmode run                    # Alias for devmode start (works identically)
devmode start --native         # Launch Native Studio for Kotlin/Gradle development (hotkeys: s sync, i reinstall, r restart, l logcat)
devmode studio                 # Alias for devmode start --native (lightweight Android Studio replacement)
devmode debug:android          # Build & launch debug app on device (npx expo run:android)
devmode reload                 # Fast-refresh active app (Metro & device)
devmode menu                   # Open React Native Dev Menu on device screen
devmode build:aab              # Compile production AAB via Gradle for Google Play (bundleRelease)
devmode build:android          # Compile debug APK via Gradle (assembleDebug)
devmode build:android --release# Compile release APK via Gradle (assembleRelease)
devmode install:apk --release  # Install latest APK of a variant (--release | --debug); never falls back to the other
devmode clean                  # Clean Gradle and Metro project caches
devmode logs                   # Stream filtered React Native / Expo logs
devmode reverse                # Set up ADB reverse port for Metro (8081)

# Hardware & System Tools
devmode usb on                 # Enable USB Debugging specifically
devmode usb off                # Disable USB Debugging specifically
devmode speed 0.5              # 2x Animation Speed Booster
devmode speed 1.0              # Reset animations to standard speed
devmode help                   # Show interactive help manual

🔌 How Auto Wireless Connect Works

┌─────────────────────────────────┐
│  Developer runs:                │
│  $ devmode wifi on              │
└────────────────┬────────────────┘
                 │
                 ▼
┌─────────────────────────────────┐
│ 1. Enable `adb_wifi_enabled 1`  │
│ 2. Query wlan0 IPv4 address     │
│ 3. Resolve dynamic TLS port     │
└────────────────┬────────────────┘
                 │
                 ▼
┌─────────────────────────────────┐
│ 4. CLI automatically executes:  │
│    adb connect 192.168.1.4:38291│
└────────────────┬────────────────┘
                 │
                 ▼
┌─────────────────────────────────┐
│ 🎉 Connected wirelessly!        │
│ Safely unplug your USB cable!   │
└─────────────────────────────────┘

🛠️ Prerequisites

  1. Android Platform Tools (ADB): Ensure adb is installed and added to your system PATH.
  2. Device Permission (For Mobile App): If using alongside the Dev Mode Mobile App, grant secure settings permission once directly via the CLI:
    devmode grant
    (Or manual ADB command: adb shell pm grant com.devmode.app android.permission.WRITE_SECURE_SETTINGS)

💡 Troubleshooting Wi-Fi Connection

If devmode wifi on reports a connection timeout:

  1. Same Wi-Fi Band: Ensure your PC and phone are connected to the exact same Wi-Fi band (e.g. both on 2.4GHz or both on 5GHz).
  2. AP Isolation: Some routers (PLDT, Converge, Globe, etc.) have AP Isolation / Client Isolation enabled by default, blocking direct device-to-device communication. Turn off AP Isolation in your router admin panel, or connect your phone to your PC's Mobile Hotspot.

📄 License & Attribution

Distributed under the MIT License. Created by Ryderhxrzy.

Companion repository: Dev Mode Mobile App