adb调节音量

当没屏幕时,通过adb调节音量就有用了:

set:
adb shell media volume --show --stream 0 --set 15
get:
adb shell media volume --stream 0 --get

stream 类型参考

AUDIO_STREAM_VOICE_CALL = 0,
AUDIO_STREAM_SYSTEM = 1,
AUDIO_STREAM_RING = 2,
AUDIO_STREAM_MUSIC = 3,
AUDIO_STREAM_ALARM = 4,
AUDIO_STREAM_NOTIFICATION = 5,
AUDIO_STREAM_BLUETOOTH_SCO = 6,
AUDIO_STREAM_ENFORCED_AUDIBLE = 7,
AUDIO_STREAM_DTMF = 8,
AUDIO_STREAM_TTS = 9,
AUDIO_STREAM_ACCESSIBILITY = 10

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注