Work in progress
Control each app's volume independently. Shizuku is used to access privileged APIs.
Requires Android 13.
Latest development version can be downloaded from action artifacts.
Some hand-picked versions can also be downloaded from releases.
- Install and enable Shizuku
- Launch Volume Manager and request Shizuku permission
- It should automatically enable its accessibility service
- You can change volume either from
- The main interface
- Press any volume button and a popup should appear, completely replace the default volume popup
- Enable accessibility button and click the button
Compare to SoundMaster from ShizuTools
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
-
Use
AudioManager#getActivePlaybackConfigurations()
to get list ofAudioPlaybackConfiguration
.Each
AudioPlaybackConfiguration
represents a audio player, likeAudioTrack
andMediaPlayer
-
Use
ActivityManager#getRunningAppProcesses()
andPackageManager#getApplicationInfo()
to map and groupAudioPlaybackConfiguration#getClientPid()
to apps -
Use
AudioPlaybackConfiguration#getPlayerProxy()
andIPlayer.setVolume()
to update the internal volume multiplier -
Use
AudioManager#registerAudioPlaybackCallback()
to listen for newAudioPlaybackConfiguration
s and apply current volume to them.
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.