Hi sinjhe,
Google fixed the HDIM volume adjustment in the code, causing the HDMI volume to be either 0 or maximu
int mFixedVolumeDevices = AudioSystem.DEVICE_OUT_HDMI |
AudioSystem.DEVICE_OUT_DGTL_DOCK_HEADSET |
AudioSystem.DEVICE_OUT_ANLG_DOCK_HEADSET |
AudioSystem.DEVICE_OUT_HDMI_ARC |
You can try to find a suitable position to add the line below to remove DEVICE_OUT_HDMI feature from mFixedVolumeDevices.
mFixedVolumeDevices &= ~AudioSystem.DEVICE_OUT_HDMI
File: ./services/core/java/com/android/server/audio/AudioService.java
[comment]
Here is just to provide you with an idea. If you still cannot achieve your goal, you can find a similar solution on the internet.
Have a nice day!
B.R,
Weidong