Skip to content

Instantly share code, notes, and snippets.

@mvsde
Last active April 14, 2024 00:04
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
@erwinpratama
Copy link

is this works for all android?

@bickbick
Copy link

bickbick commented Jun 19, 2021 via email

@bickbick
Copy link

bickbick commented Jan 17, 2022 via email

@masterewot
Copy link

I want to try it, but is it safe?

@mvsde
Copy link
Author

mvsde commented Oct 16, 2022

I want to try it, but is it safe?

@masterewot I haven’t used this technique in quite a long time. So I can’t say if it’s safe to use or if it still works at all.

@peace20021
Copy link

I want to try it, but is it safe?

@masterewot I haven’t used this technique in quite a long time. So I can’t say if it’s safe to use or if it still works at all.

I just tried it in my LG V20 H910 LineageOS 20, doesn't work at all, guess I will have to go back to magisk extensions.

@mvsde
Copy link
Author

mvsde commented Nov 16, 2023

@peace20021 There are some differences between Android versions regarding which file to edit. So I guess with newer versions that came out since I documented this “trick” things unfortunately changed again.

@xknat
Copy link

xknat commented Jan 30, 2024

for chmod you need to run adb shell chmod
Maybe handy to point out

@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