Volume Manager

Work in progress
Control each app’s volume independently. Shizuku is used to access privileged APIs.
Requires Android 13.
(Screenshot from beta version, download available from action artifacts)
Download
Latest development version can be downloaded from action artifacts.
Some hand-picked versions can also be downloaded from releases.
Usage
- Install and enable Shizuku
- Launch Volume Manager and request Shizuku permission
- It should automatically enable its accessibility service
- You can change apps’ volume from
- The main interface
- Press any volume button (enabled by default, can be switched off per app or globally in settings)
- Floating button (disabled by default, can be switched on in settings)
- Add the Quick Settings tile; tap it to open the popup or long-press it to open the main interface
This app uses hidden API to directly change each audio stream’s volume.
SoundMaster uses MediaProjection API to record audio from each app and apply post-effects.
| Feature |
Volume Manager |
SoundMaster |
| Minimal Android version |
13 |
10 |
| Control volume of each app |
✅ |
✅ |
| Set output device for each app |
❌ 1 |
✅ |
| Change left-right balance |
❌ 2 |
✅ |
| Equalizer (EQ) |
❌ |
✅ |
| Control protected apps |
✅ |
❌ 3 |
| Zero latency added |
✅ |
❌ |
1: There are APIs to do that, but not implemented in this app
2: There are other APIs to do that, but not implemented in this app
3: Can be worked around by patching the app
How does it work
-
Use AudioManager#getActivePlaybackConfigurations() to get list of AudioPlaybackConfiguration.
Each AudioPlaybackConfiguration represents a audio player, like AudioTrack and MediaPlayer
-
Use ActivityManager#getRunningAppProcesses() and PackageManager#getApplicationInfo() to map and group AudioPlaybackConfiguration#getClientPid() to apps
-
Use AudioPlaybackConfiguration#getPlayerProxy() and IPlayer.setVolume() to update the internal volume multiplier
-
Use AudioManager#registerAudioPlaybackCallback() to listen for new AudioPlaybackConfigurations and apply current volume to them.
Note
This app uses the same API as MIUI’s “Adjust media sound in multiple apps”. Because this API can only setting volume, not reading, the volume set by one app will not be reflected in the other one.
评论