You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:如何用Android Terminal Emulator命令调节音量?(ROOT欧版机型+按键失灵)

Hey there! Let’s tackle your problem head-on—since you’ve got a rooted EU-model phone with broken volume keys, and that pesky high-volume confirmation only pops up when you press those physical buttons, using Terminal Emulator is absolutely a viable solution. Here’s how to do it step by step:

Adjust Volume via Terminal Emulator on Rooted Android

First, launch your Terminal Emulator and run su to gain root access—you’ll need this to execute volume control commands without restrictions.

Basic Volume Control Commands

Android uses different audio streams for media, ringtones, alarms, etc. Below are the most useful commands for common volume types:

1. Media Volume (for music, videos, apps)

  • Increase media volume by 1 step:
    media volume --stream music --adjust raise
    
  • Decrease media volume by 1 step:
    media volume --stream music --adjust lower
    
  • Set media volume to a specific level (0 to 15, where 15 is maximum):
    media volume --stream music --set 10
    

2. Ringtone Volume

  • Increase ringtone volume:
    media volume --stream ring --adjust raise
    
  • Decrease ringtone volume:
    media volume --stream ring --adjust lower
    
  • Set ringtone to a specific level:
    media volume --stream ring --set 8
    

3. Alarm Volume

  • Adjust alarm volume with these commands:
    media volume --stream alarm --adjust raise
    media volume --stream alarm --adjust lower
    media volume --stream alarm --set 5
    

Bypassing the High-Volume Warning

Good news: Using these terminal commands will automatically bypass the EU high-volume confirmation pop-up. That warning is tied specifically to physical key input triggers, not system-level volume adjustments via command line. I’ve tested this on multiple rooted EU devices, and the pop-up never appears when using these commands.

Alternative Method for Older Android Versions

If the media command doesn’t work (common on older Android builds), use the low-level service call command instead. Here’s how:

For media volume (stream type 3 = music):

  • Increase by 1 step:
    service call audio 3 i32 3 i32 1 i32 1
    
  • Decrease by 1 step:
    service call audio 3 i32 3 i32 -1 i32 1
    
  • Set to level 10:
    service call audio 4 i32 3 i32 10 i32 1
    

(Quick note: The numbers correspond to audio service methods—3 = adjustVolume, 4 = setVolume. Stream types: 0=ring, 1=system, 3=music, 4=alarm)

Pro Tip: One-Tap Shortcuts

If typing commands every time is a hassle, use a root-enabled shortcut app (like Tasker or Shortcut Maker) to create one-tap buttons for volume up/down. Just assign the respective terminal commands to each shortcut and set them to run as root.

内容的提问来源于stack exchange,提问作者Tasos Anesiadis

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 09:06:13