Skip to content

pavi2410/android-devkit

Repository files navigation

Android DevKit Icon

Android DevKit

A comprehensive, open-source VS Code extension that brings the Android Studio experience to VS Code — device management, Logcat, SDK Manager, AVD Manager, and more.

Features

Device Manager

  • List connected devices and emulators via ADB with connection-type icons (USB, TCP/IP, wireless, emulator)
  • Wireless debugging — pair via mDNS (Android 11+) or TCP/IP mode
  • ADB shell in the integrated terminal
  • Screenshots, reboot (normal / bootloader / recovery)

Device File Explorer

  • Browse the full file system of any connected device
  • Upload, download, and delete files directly from the tree view

Logcat Viewer

  • Real-time log streaming in the VS Code panel
  • Filter by level, tag/message text, or package name
  • Color-coded via VS Code's native LogOutputChannel

SDK Manager

  • List all installed and available SDK packages grouped by category
  • Install, uninstall, and update packages via sdkmanager
  • Output streamed to a dedicated output channel

AVD Manager

  • List Android Virtual Devices with live running-state detection (polls adb devices)
  • Create AVDs via a 3-step quick-pick wizard (system image → device profile → name)
  • Launch, delete, and wipe AVDs

Welcome & Setup

  • Auto-shown on first activation if SDK is not detected
  • SDK path detection with a guided setup for first-time users

Installation

From VS Code Marketplace

Search for Android DevKit in the Extensions panel, or install the Android DevKit Extension Pack to get a curated set of Android development extensions.

From Source

git clone https://github.com/pavi2410/android-devkit.git
cd android-devkit

bun install

# Build all packages + webview + extension
mise run build

# Package the VSIX
mise run package

Requires mise and Bun.

Then install the generated .vsix from apps/extension/build/.

Prerequisites

  • Android SDK (auto-detected from ANDROID_HOME, ANDROID_SDK_ROOT, or Android Studio install paths)
  • adb accessible (bundled in platform-tools)

Configuration

Setting Description Default
androidDevkit.adbPath Path to adb executable Auto-detect
androidDevkit.sdkPath Path to Android SDK root Auto-detect
androidDevkit.logcat.defaultFilter Default logcat filter (empty)
androidDevkit.logcat.maxLines Max logcat entries in memory 10000

Project Structure

android-devkit/
├── mise.toml                        # Task runner (build, dev, package, test)
├── packages/
│   ├── adb/                         # @android-devkit/adb  — ADB wrapper
│   ├── sdk/                         # @android-devkit/sdk  — sdkmanager wrapper
│   └── avd/                         # @android-devkit/avd  — avdmanager + emulator wrapper
├── apps/
│   ├── extension/                   # VS Code extension
│   │   └── src/
│   │       ├── extension.ts         # Entry point
│   │       ├── commands/            # Command handlers
│   │       ├── views/               # TreeView providers
│   │       ├── services/            # AdbService, SdkService
│   │       └── webviews/            # WelcomePanel host
│   ├── webview-welcome/             # Welcome page (Vite + React + Tailwind)
│   └── extension-pack/              # VS Code extension pack
├── package.json                     # Bun workspaces config
└── tsconfig.base.json               # Shared TypeScript config

Goals

  1. Device & Emulator Management — List devices, launch emulators, ADB shell
  2. Logcat Viewer — Real-time streaming with filtering and color coding
  3. SDK Manager — Install/update SDK platforms, build-tools, system images
  4. AVD Manager — Create and manage Android Virtual Devices
  5. Build & Run — Gradle sync, build, install, run (upcoming)
  6. Code Intelligence — Kotlin LSP integration (upcoming)
  7. Debugging — Android debug adapter with breakpoints (upcoming)

Non-Goals

  1. Replace Android Studio entirely — Compose Preview, Layout Editor depend on JetBrains infrastructure
  2. New Kotlin language server — leverage the official Kotlin LSP
  3. Flutter / React Native — native Kotlin/Java Android only
  4. NDK/C++ support — out of scope
  5. iOS development — Android only

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT

About

Comprehensive Android development tools for VS Code - Device Manager, Logcat, and more

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages