Skip to content

Instantly share code, notes, and snippets.

@mvsde
Last active April 14, 2024 00:04
Show Gist options
  • Save mvsde/1b5488921d6af22dfe02053739e43522 to your computer and use it in GitHub Desktop.
Save mvsde/1b5488921d6af22dfe02053739e43522 to your computer and use it in GitHub Desktop.
Android Volume Steps

Android Volume Steps

Warning

This is a rather old guide and may or may not work with modern versions of Android.

Connect through ADB

  1. Boot into TWRP
  2. Connect device to computer
  3. Terminal: List devices with adb devices
  4. TWRP: Mount > System

Get and edit props file

  1. Terminal:
# Android <= 9
adb pull /system/build.prop

# Android 10 - 11
adb pull /system/default.prop

# Android >= 12
adb pull /default.prop
  1. Editor: Add the following settings to the pulled file
ro.config.vc_call_vol_steps=14
ro.config.media_vol_steps=30

Push props file

  1. Terminal: Push file back to the device
# Android <= 9
adb push build.prop /system/

# Android 10 - 11
adb push default.prop /system/

# Android >= 12
adb push default.prop /
  1. Terminal: Adjust permissions of the pushed file
adb shell

# Android <= 9
cd /system
chmod 644 build.prop

# Android 10 - 11
cd /system
chmod 644 default.prop

# Android >= 12
cd /
chmod 644 default.prop
@calvinrw
Copy link

calvinrw commented Apr 13, 2024

Thanks for sharing this. As a datapoint for others, the following worked for me on LineageOS 21 (a.k.a Android 14) on beckham, after enabling USB debugging and rooted debugging:

adb root
adb pull /system/build.prop

(make edits as described)

adb shell mount -o remount,rw /system
adb push build.prop /system
adb shell chmod 644 /system/build.prop

(reboot the device)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment