Android Studio Flash


A lightweight VS Code extension that brings essential Android Studio features to your fingertips
Build, run, and debug Android apps without the heavy resource consumption of Android Studio. Features event-driven device monitoring for zero-impact on your system's RAM and CPU.
✨ Features
🔨 Build System
- One-click Build & Run - Build and deploy your app with a single click
- Debug APK - Quick debug builds for development
- Release APK with Signing Wizard - Smart wizard guides you through signing your release builds
- 🔐 Keystore Creator - Generate signing keys without Android Studio
- Clean Project - Remove build artifacts
- Sync Gradle - Synchronize project dependencies
- 🧠 Smart APK Discovery - Automatically finds APK files even with complex build flavors (e.g.,
afatDebug, googleRelease)
📦 Multi-Module Project Support
- Module Selection - Target specific modules in large projects (like Telegram, Signal, etc.)
- Sidebar Module Picker - Visual module selection in the Android Control Panel
- Status Bar Indicator - Quick view and change of active module
- Persistent Selection - Remembers your module choice between sessions
- Auto-Detection - Parses
settings.gradle to discover all project modules
📱 Device Management
- ⚡ Instant Device Detection - Devices appear immediately when plugged in, with zero lag.
- 🍃 Zero-Resource Monitoring - Uses event-driven ADB tracking instead of heavy polling loops, saving your CPU and RAM.
- Device Selection - Easy switching between multiple devices and emulators.
- Real-time Status - Live connection status (Online, Offline, Unauthorized).
📡 Wireless Debugging
- Wireless Debugging (Android 11+) - Connect without cables using pairing code
- ADB over TCP/IP (Android 4.0+) - Legacy wireless support
- 📶 Hotspot Mode Support - Works when your Android device IS the hotspot (PC connects to phone's hotspot)
- Auto-reconnect - Automatically reconnects to saved devices on startup
- Network Scanning - Discover devices on your local network
📋 Logcat
- Real-time Logs - Live streaming with color-coded output
- App Filter - Show only your app's logs (like Android Studio)
- Tag Filter - Filter by specific log tags
- Critical Highlighting - Automatic highlighting of errors and exceptions
- Android Control Panel - Dedicated sidebar with all tools
- Status Bar Integration - Quick access from the status bar
- Diagnostics Tool - Troubleshoot connection issues
- Auto
local.properties - Automatically creates/updates SDK path configuration
📦 Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X)
- Search for "Android Studio Flash"
- Click Install
From VSIX File
code --install-extension android-studio-flash-0.1.0.vsix
🚀 Quick Start
Prerequisites
Setup
- Open an Android project in VS Code
- The extension activates automatically when it detects
build.gradle
- Click the Android icon in the Activity Bar
- Connect a device or emulator
- Click ▶️ Build & Run
🎮 Commands
All commands are available via Command Palette (Ctrl+Shift+P):
| Command |
Description |
Android: Build APK |
Build debug APK |
Android: Build Release APK |
Build release APK |
Android: Run on Device |
Build and run on selected device |
Android: Clean Project |
Clean build artifacts |
Android: Sync Gradle |
Sync project with Gradle |
Android: Show Logcat |
Open Logcat output |
Android: Setup Wireless Connection |
Configure wireless debugging |
Android: Run Diagnostics |
Troubleshoot issues |
⚙️ Configuration
Configure the extension in VS Code Settings:
{
"android.sdkPath": "", // Auto-detected if empty
"android.adbPath": "", // Auto-detected from SDK
"android.logcat.maxLines": 1000, // Max lines in Logcat
"android.build.showNotifications": true
}
📡 Wireless Debugging Setup
Android 11+ (Recommended)
- Enable Developer Options on your device
- Go to Settings → Developer options → Wireless debugging
- Enable Wireless debugging
- In VS Code, click ➕ Add Wireless Device
- Select Wireless Debugging
- Enter the IP:Port and pairing code from your device
Android 4.0+ (Legacy)
- Connect device via USB
- Click ➕ Add Wireless Device
- Select ADB over TCP/IP
- Follow the prompts
- Disconnect USB - you're now wireless!
🔧 Troubleshooting
Device not detected?
Run Android: Run Diagnostics from the Command Palette to check:
- SDK installation
- ADB connectivity
- USB debugging status
Common Issues
| Issue |
Solution |
| "SDK not found" |
Set android.sdkPath in settings or set ANDROID_HOME environment variable |
| "ADB not found" |
Install Android SDK Platform-Tools |
| "Unauthorized" |
Accept USB debugging prompt on device |
| "Wireless fails" |
Ensure device and PC are on same network |
💡 Tips
- Quick Run: Click the status bar button to build & run instantly
- Filter Logcat: Use app filter to see only your app's logs
- Save Wireless Devices: Connected wireless devices are saved for auto-reconnect
- Plug & Play: No need to manually refresh devices! The extension listens to USB events and updates the device list instantly when a cable is connected or disconnected.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature)
- Commit your changes (
git commit -m 'Add some AmazingFeature')
- Push to the branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
👨💻 Author
Dr. Mohammed Hamed
If you find this extension helpful, please consider giving it a ⭐ on GitHub!