ShizuStore

AppVolMgr

yume-chan

0.3 · GitHub

Download APK
Audio Android 13+ 2 weeks ago GPL-2.0
448 ShizuStore
53.8k GitHub
622 Stars
4 MB Size

More about this app

Control each app's volume independently

Volume Manager

IzzyOnDroid RB shield Discord

Control each app's volume independently. Shizuku is used to access privileged APIs.

Requires Android 13.

Screenshot Screenshot

(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

  1. Install and enable Shizuku
  2. Launch Volume Manager and request Shizuku permission
  3. It should automatically enable its accessibility service
  4. You can change apps' volume from
    1. The main interface
    2. Press any volume button (enabled by default, can be switched off per app or globally in settings)
    3. Floating button (disabled by default, can be switched on in settings)
    4. Add the Quick Settings tile; tap it to open the popup or long-press it to open the main interface

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

How does it work

  1. Use AudioManager#getActivePlaybackConfigurations() to get list of AudioPlaybackConfiguration.

    Each AudioPlaybackConfiguration represents a audio player, like AudioTrack and MediaPlayer

  2. Use ActivityManager#getRunningAppProcesses() and PackageManager#getApplicationInfo() to map and group AudioPlaybackConfiguration#getClientPid() to apps

  3. Use AudioPlaybackConfiguration#getPlayerProxy() and IPlayer.setVolume() to update the internal volume multiplier

  4. 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.

Close

How Shizuku is used

Can control per-app volume, detect playing apps, route volume keys and manage DND via `pm grant`, `IAudioService` and system services through Shizuku.

This is an AI-assisted analysis of Shizuku-related usages in the app's public source code. It is best effort, so it may not catch every single usage.

How this app uses Shizuku

Volume Manager uses Shizuku to observe audio playback, set individual app volumes and manage system state that normally needs privileged access.

  • Adjust per-app volume: users can set a separate volume level for each app, applied to its live audio players through Shizuku access to the privileged audio service.
  • Detect playing apps: users see which apps are playing sound because live audio sessions are mapped to running apps through Shizuku access to privileged audio and activity services.
  • List all apps: users can pick from apps installed for all users because the installed package query runs through Shizuku with privileges for all users.
  • Route volume keys: users get volume key presses directed to the foreground app, with per-app opt outs respected, because the foreground task is read through Shizuku access to the privileged task service.
  • Control Do Not Disturb: users can toggle Do Not Disturb from the ring footer because reading and setting the interruption filter runs through Shizuku access to the privileged notification service.
  • Enable volume panel itself: users get the floating volume overlay without manual commands because the app grants itself a system settings permission with the pm grant shell command through Shizuku and then writes secure settings to turn on its accessibility service.

Android APIs or commands used

  • pm grant
  • android.provider.Settings$Secure.putInt
  • android.provider.Settings$Secure.putString
  • android.provider.Settings$Secure.getString
  • android.media.AudioManager.getActivePlaybackConfigurations
  • android.media.AudioManager.registerAudioPlaybackCallback
  • android.app.ActivityManager.getRunningAppProcesses
  • android.media.AudioPlaybackConfiguration.getClientPid
  • android.media.AudioPlaybackConfiguration.getPlayerProxy
  • android.media.PlayerProxy.setVolume
  • android.content.pm.IPackageManager.getInstalledPackages
  • android.app.IActivityTaskManager.getTasks
  • android.app.INotificationManager.getCurrentInterruptionFilter
  • android.app.INotificationManager.setInterruptionFilter
Close

Changelog

What's new for version 0.3

Highlights

  • Added controls for call, ring, alarm, and notification streams, with ring-mode toggles in the main interface and popup.
  • Added a Quick Settings tile and configurable volume-button and floating-button controls, including per-app settings.
  • Improved reliability with a foreground service and clearer Shizuku and battery-optimization guidance.
  • Improved accessibility and usability with TalkBack support, a more stable compact app list, and refined volume controls.
  • Added an About screen and additional app discovery and filtering improvements.

Full Changelog: https://github.com/yume-chan/VolumeManager/compare/v0.2...v0.3

Close

Permissions

7 permissions requested

  • android.permission.WRITE_SECURE_SETTINGS
  • android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
  • android.permission.FOREGROUND_SERVICE
  • android.permission.FOREGROUND_SERVICE_SPECIAL_USE
  • android.permission.POST_NOTIFICATIONS
  • moe.chensi.volume.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
  • moe.shizuku.manager.permission.API_V23
Close