Skip to content

y4kupkaya/android-volume-controller

๐ŸŽต Android Volume Controller for Windows

๐ŸŒ Tรผrkรงe | English

License: GPL v3 Python Platform ADB

๐Ÿš€ Control your Android device's volume directly from Windows Volume Mixer!

Transform your Windows PC into a remote control for your Android device's audio system. This innovative application creates seamless integration between Windows Volume Mixer and your Android device, allowing you to adjust volume and mute settings without touching your phone.

โœจ Features

  • ๐ŸŽ›๏ธ Windows Volume Mixer Integration - Control Android volume through native Windows interface
  • ๐Ÿ”Š Real-time Volume Synchronization - Instant volume changes with zero lag
  • ๐Ÿ”‡ Mute/Unmute Support - Complete mute control from Windows
  • ๐Ÿ“ฑ Multi-device Ready - Automatically detects connected Android devices
  • ๐Ÿ›ก๏ธ Robust Error Handling - Graceful handling of connection issues
  • ๐Ÿ”„ Auto-reconnection - Smart recovery from temporary disconnections
  • ๐Ÿ’พ Memory Efficient - Minimal system resource usage
  • ๐ŸŽฏ Precise Control - Full range volume control (0-100%)

๐ŸŽฏ How It Works

  1. ๐Ÿ”Œ Device Connection: Connects to your Android device via ADB (USB Debugging)
  2. ๐ŸŽต Audio Registration: Creates a virtual audio session in Windows Volume Mixer
  3. ๐Ÿ”„ Real-time Sync: Monitors Windows volume changes and applies them to Android
  4. ๐Ÿ“Š Smart Mapping: Intelligently maps Windows volume range to Android's native range

๐Ÿ“‹ Prerequisites

System Requirements

  • ๐Ÿ–ฅ๏ธ Operating System: Windows 10/11
  • ๐Ÿ Python: 3.7 or higher
  • ๐Ÿ“ฑ Android Device: Android 5.0+ with USB Debugging enabled

Required Tools

  • Android SDK Platform Tools (for ADB)
  • Python Libraries: pycaw (automatically installed)

๐Ÿš€ Quick Start

1. ๐Ÿ“ฅ Installation

# Clone the repository
git clone https://github.com/y4kupkaya/android-volume-controller.git
cd android-volume-controller

# Install Python dependencies
pip install pycaw

2. ๐Ÿ”ง Setup Android Device

  1. Enable Developer Options:

    • Go to Settings โ†’ About Phone
    • Tap Build Number 7 times
  2. Enable USB Debugging:

    • Go to Settings โ†’ Developer Options
    • Enable USB Debugging
  3. Connect Device:

    • Connect via USB cable
    • Allow USB debugging when prompted

3. ๐Ÿ› ๏ธ Setup ADB (Android Debug Bridge)

Option A: Android Studio (Recommended)

# Download Android Studio and install SDK Platform Tools
# Add to PATH: C:\Users\YourUser\AppData\Local\Android\Sdk\platform-tools

Option B: Standalone ADB

# Download platform-tools from Google
# Extract and add to Windows PATH

Verify Installation:

adb devices
# Should show your connected device

4. โ–ถ๏ธ Run the Application

python android_volume_controller.py

5. ๐ŸŽ›๏ธ Control Volume

  1. Open Windows Volume Mixer:

    • Right-click speaker icon in system tray
    • Select "Open Volume Mixer"
  2. Find Python Application:

    • Look for "Python" in the volume mixer
  3. Control Your Android:

    • ๐Ÿ”Š Adjust the slider to change Android volume
    • ๐Ÿ”‡ Click mute button to mute/unmute Android device

๐ŸŽฎ Usage Examples

Basic Volume Control

# The application runs automatically once started
# Simply use Windows Volume Mixer to control your Android device

Running the Application

# Start the volume controller (normal mode)
python android_volume_controller.py

# Run with detailed debug information
python android_volume_controller.py --verbose

# Run in background mode (minimal output, errors only)
python android_volume_controller.py --background

# Show help and usage examples
python android_volume_controller.py --help

# Show version information
python android_volume_controller.py --version

Command Line Options

Option Description
--verbose, -v Enable verbose logging with debug information
--background Run in background mode with minimal console output
--help, -h Show help message and usage examples
--version Display version information

๐Ÿ”ง Configuration

The application automatically detects and configures most settings, but you can customize:

  • Volume Range Mapping: Automatically adapts to your device's volume range
  • Connection Timeout: Smart retry mechanism for connection issues
  • Audio Quality: Optimized for minimal latency

๐Ÿ“ฑ Supported Devices

โœ… Tested and Compatible:

  • Samsung Galaxy series
  • Google Pixel series
  • OnePlus devices
  • Xiaomi/MIUI devices
  • Most Android 5.0+ devices

โš ๏ธ Known Limitations:

  • Some custom ROMs may require additional permissions
  • Devices with heavily modified audio systems may need manual configuration

๐Ÿ› Troubleshooting

Common Issues

๐Ÿ”ด "No Android device found"

# Check device connection
adb devices

# Ensure USB debugging is enabled
# Try different USB cable/port

๐Ÿ”ด "ADB not found"

# Install Android SDK Platform Tools
# Add ADB to Windows PATH
# Restart command prompt

๐Ÿ”ด "Audio session not found"

  • Wait a few seconds for Windows to register the audio session
  • Check Windows Volume Mixer manually
  • Restart the application

๐Ÿ”ด "Permission denied"

  • Re-authorize USB debugging on Android device
  • Check USB connection mode (should be "File Transfer" or "PTP")

Debug Mode

# Run with detailed logging
python android_volume_controller.py --debug

๐Ÿ›ก๏ธ Security & Privacy

  • ๐Ÿ”’ Local Connection Only: All communication happens locally via USB
  • ๐Ÿšซ No Internet Required: No data transmitted over the internet
  • ๐Ÿ” Minimal Permissions: Only requires USB debugging access
  • ๐Ÿ“Š No Data Collection: No user data is collected or stored

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. ๐Ÿด Fork the Repository
  2. ๐ŸŒŸ Create a Feature Branch (git checkout -b feature/amazing-feature)
  3. ๐Ÿ’ป Make Your Changes
  4. ๐Ÿงช Test Thoroughly
  5. ๐Ÿ“ Commit Changes (git commit -m 'Add amazing feature')
  6. ๐Ÿš€ Push to Branch (git push origin feature/amazing-feature)
  7. ๐ŸŽฏ Open a Pull Request

Development Setup

# Clone for development
git clone https://github.com/y4kupkaya/android-volume-controller.git
cd android-volume-controller

# Install development dependencies
pip install -r requirements-dev.txt

# Run tests
python -m pytest tests/

๐Ÿ“„ License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Copyright (C) 2025 Yakup Kaya (y4kupkaya@github)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

๐Ÿ‘จโ€๐Ÿ’ป Author

Yakup Kaya

๐Ÿ™ Acknowledgments

  • ๐Ÿ“š pycaw library - Windows audio system integration
  • ๐Ÿค– Android Debug Bridge - Android device communication
  • ๐ŸŽต Windows Audio Session API - Volume mixer integration
  • ๐ŸŒŸ Open Source Community - Inspiration and support

๐Ÿ”ฎ Roadmap

  • ๐ŸŽš๏ธ Individual App Control - Control specific app volumes on Android
  • ๐Ÿ”Š Audio Profile Management - Save and load custom audio profiles
  • ๐Ÿ“ก Wireless Support - Control over WiFi network
  • ๐ŸŽฏ GUI Interface - User-friendly graphical interface
  • ๐Ÿ“ฑ iOS Support - Extend support to iOS devices
  • ๐Ÿ”„ Bi-directional Sync - Sync Android changes back to Windows

โญ Star History

If you find this project useful, please consider giving it a star! โญ

Star History Chart


Made with โค๏ธ by Yakup Kaya

About

๐ŸŽต Control Android device volume directly from Windows Volume Mixer via ADB. Real-time synchronization, multi-device support, and seamless integration.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages