An open API service indexing awesome lists of open source software.

https://github.com/bguerradev/bluetoothvolumelock

Bluetooth Volume Lock is a service designed to keep media volume constant on Android. Android 15 (API 34) automatically lowers the volume for safety reasons. It's ideal for users who exercise with headphones and want to keep their volume constant.
https://github.com/bguerradev/bluetoothvolumelock

android android-15 automation bluetooth foreground-service-android gym-app kotlin service-android volume-control

Last synced: 2 months ago
JSON representation

Bluetooth Volume Lock is a service designed to keep media volume constant on Android. Android 15 (API 34) automatically lowers the volume for safety reasons. It's ideal for users who exercise with headphones and want to keep their volume constant.

Awesome Lists containing this project

README

        

# ๐ŸŽง Bluetooth Volume Lock

**Bluetooth Volume Lock** is an Android service that **keeps your media volume steady** when you connect Bluetooth headphones. On Android 15+ (API 34), the system automatically reduces the volume to a "safe level" when using headphones at high volume for a prolonged time.

> This app solves that issue by restoring your original volume automatically โ€” ideal for gym sessions ๐Ÿ‹๏ธโ€โ™‚๏ธ or extended headphone use.

---

## ๐Ÿ”ง Features

- โœ… Monitors Bluetooth connections
- ๐Ÿ”Š Restores original media volume if Android lowers it for safety
- ๐Ÿ“ฒ Runs as a **foreground service**
- ๐Ÿงช Currently compatible with **Android 15 (API 34)** only

---

## ๐Ÿ“ธ Screenshot

*(TODO)*

---

## ๐Ÿ“ฆ Installation

1. Clone the project:

```bash
git clone https://github.com/bguerraDev/BluetoothVolumeLock.git
```

2. Open it in Android Studio
3. Replace `targetMacAddress` and `device.name` with your own
4. Connect your device
5. Run the project
6. Manually grant the **Nearby Devices** permission on your phone

---

## ๐Ÿงช Start the service manually using ADB

Use this command:

```bash
adb shell am start-foreground-service -n com.bryanguerra.bluetoothvolumelock/.BluetoothVolumeService
```

---

## ๐Ÿ’ก Recommendations

- Make sure you have permission to modify system volume (API 34+ needs additional permission)
- Requires access to nearby devices (`BLUETOOTH_CONNECT` on Android 15)

---

## ๐Ÿ“ƒ License

This project is licensed under the **MIT License** โ€“ see the [LICENSE](./LICENSE) file for details.

---

### ๐Ÿค– Built with Kotlin + Android Studio

![Kotlin](https://img.shields.io/badge/Kotlin-0095D5?logo=kotlin&logoColor=fff&style=flat)
![Android](https://img.shields.io/badge/Android_Studio-3DDC84?logo=android-studio&logoColor=white&style=flat)