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: about 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.
- Host: GitHub
- URL: https://github.com/bguerradev/bluetoothvolumelock
- Owner: bguerraDev
- License: mit
- Created: 2025-04-02T11:00:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-02T11:40:49.000Z (about 1 year ago)
- Last Synced: 2025-04-02T12:33:27.955Z (about 1 year ago)
- Topics: android, android-15, automation, bluetooth, foreground-service-android, gym-app, kotlin, service-android, volume-control
- Language: Kotlin
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.en.md
- Contributing: CONTRIBUTING.en.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ง Bluetooth Volume Lock
๐ [Read this in Spanish](README.md)
**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
Here you can to see the problem of volume in API+34 with bluetooth and annoying notification:
---
## ๐ฆ 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

