[MOD][ROOT] Audio Hacks and Modifications + New Insanely Loud Volume Hack!! (post 2)

Search This thread

markuz85

Senior Member
Jun 15, 2010
237
41
/system/etc/sound/m0
This seems to be the equivalent to default_gain.conf if you are running an AOSP ROM.
 

binhdb

Senior Member
May 5, 2013
53
5
PLEASE READ: I've noticed quite a few ROM devs are using my files without crediting me or linking back to this thread. I don't want people to start asking my permission or anything, feel free to use these files in your own work, but I worked hard trying to get my head round these files; finding out just what everything does and what the volume limits are. If you do use the modified files or modify your own using my guide please at least give me some credit. Thanks.

I've also made an Application that can do this for you. It can be found here.


PART 1

File: 'System/etc/default_gain.conf'

Hey everyone!
For those who remember my old volume hack on the T-Mobile G1, this is essentially the same thing! For some bizarre reason, Samsung decided to map all the maximum volume levels to an easily accessible file (system/etc/default_gain.conf), which is different to 99% of Android phones out there because it's usually built into the kernel or something harder to modify. Cheers Samsung!

THIS MOD WILL MAKE THE PHONE'S SPEAKER AS LOUD AS THE OS ALLOWS. ANY LOUDER AND THE AUDIO BREAKS! YOU HAVE BEEN WARNED!

Things this modification can achieve:


There are a few others in that file too. It's weird that instead of defining the Headset Volume for everything, things like 'incall' and 'FMradio' are all separate.

How To Modify
Any text editor will do but I strongly recommend Notepad++ because it's just awesome!

How To Apply
1) Download attatched file ('default_gain.conf' inside 'VolumeMods.zip')
2) Use a file manager or ADB to push it to "system/etc" (back up existing file first!)
3) From ADB or the Terminal do:
Code:
killall mediaserver
or reboot your phone!
4) Enjoy :)

PART 2

File: 'System/etc/Volume.db'

This isn't really an audio hack as such, it simply allows you to disable some irritating sounds you cannot normally disable.

What this mod disables:


All this is so far useful for is to disable the camera sounds without modifying the camera itself.
There are most likely other things this file can do but I've not had chance to play with it properly yet, I'll keep going and update this post if I find anything else.

How To Modify
I strongly recommend using the free "SQL Lite Databse Browser". Any program that can open .db files should work just fine though.

How To Apply
1) Download attatched file ('Volume.db' inside 'VolumeMods.zip')
2) Use a file manager or ADB to push it to "system/etc" (back up existing file first!)
3) From ADB or the Terminal do:
Code:
killall mediaserver
or reboot your phone!
4) Enjoy :)



Flashable Zips

Many thanks to Jesus_c and GadgetCheck


Zip Downloads can be found here.

Ok

Sent from my Lenovo A690 using xda premium
 
  • Like
Reactions: ravin_jr

uf21

Senior Member
Jun 5, 2012
616
32
The problem that some of ppl are facing [me 2] .. are that the kernals are controlling the volume in the device .. so even if u do that hack it wont change anything ..


So what to do?

.I figure out that in my device (s3 lte with perssuse kernal) ..

1- U have to disable the stweaks volume control .. by going to STweaks --> audio then uncheck eqeulizer and every other things inside ..(uncheck)

2- after u replace the file u should make the permissions
(Rw+r+r+)


Try it .. it worked for me ..

---------------------------
سبحان الله وبحمده .. سبحان الله العظيم
---------------------------

How do you uncheck equalizer??? you can't uncheck
 

mianahmadpp

Senior Member
May 14, 2013
142
12
Does it work for v4.2.2 as well? I just can't copy the said file there. It says can't modify system file

Sent from my GT-I9300 using Tapatalk 2
 

tomrago

New member
Oct 20, 2009
2
0
help lost

PLEASE READ: I've noticed quite a few ROM devs are using my files without crediting me or linking back to this thread. I don't want people to start asking my permission or anything, feel free to use these files in your own work, but I worked hard trying to get my head round these files; finding out just what everything does and what the volume limits are. If you do use the modified files or modify your own using my guide please at least give me some credit. Thanks.

I've also made an Application that can do this for you. It can be found here.


PART 1

File: 'System/etc/default_gain.conf'

Hey everyone!
For those who remember my old volume hack on the T-Mobile G1, this is essentially the same thing! For some bizarre reason, Samsung decided to map all the maximum volume levels to an easily accessible file (system/etc/default_gain.conf), which is different to 99% of Android phones out there because it's usually built into the kernel or something harder to modify. Cheers Samsung!

THIS MOD WILL MAKE THE PHONE'S SPEAKER AS LOUD AS THE OS ALLOWS. ANY LOUDER AND THE AUDIO BREAKS! YOU HAVE BEEN WARNED!

Things this modification can achieve:


There are a few others in that file too. It's weird that instead of defining the Headset Volume for everything, things like 'incall' and 'FMradio' are all separate.

How To Modify
Any text editor will do but I strongly recommend Notepad++ because it's just awesome!

How To Apply
1) Download attatched file ('default_gain.conf' inside 'VolumeMods.zip')
2) Use a file manager or ADB to push it to "system/etc" (back up existing file first!)
3) From ADB or the Terminal do:
Code:
killall mediaserver
or reboot your phone!
4) Enjoy :)

PART 2

File: 'System/etc/Volume.db'

This isn't really an audio hack as such, it simply allows you to disable some irritating sounds you cannot normally disable.

What this mod disables:


All this is so far useful for is to disable the camera sounds without modifying the camera itself.
There are most likely other things this file can do but I've not had chance to play with it properly yet, I'll keep going and update this post if I find anything else.

How To Modify
I strongly recommend using the free "SQL Lite Databse Browser". Any program that can open .db files should work just fine though.

How To Apply
1) Download attatched file ('Volume.db' inside 'VolumeMods.zip')
2) Use a file manager or ADB to push it to "system/etc" (back up existing file first!)
3) From ADB or the Terminal do:
Code:
killall mediaserver
or reboot your phone!
4) Enjoy :)



Flashable Zips

Many thanks to Jesus_c and GadgetCheck


Zip Downloads can be found here.

can someone give clearer instructions as ,you can tell newbie I copied the files to sys/etc rebooted but nothing changed ,( trying to get loader ring tones on gal/s3 ) thank you in advanced. my email is [email protected] USING ADROID 4.1.2

---------- Post added at 06:47 PM ---------- Previous post was at 05:55 PM ----------

where do you see the volume controls? mine stays the same what mode do you use I did 60. no change

60 _sound_mod - max vol = 60 (boot sound on, camera sound off)
63_sound_mod - max vol = 63 (boot sound on, camera sound off)
63S_sound_mod - max vol = 63 (boot sound off, camera sound off)
 
Last edited:

tomrago

New member
Oct 20, 2009
2
0
can someone give clearer instructions as ,you can tell newbie I copied the files to sys/etc rebooted but nothing changed ,( trying to get loader ring tones on gal/s3 ) thank you in advanced. my email is [email protected] USING ADROID 4.1.2

---------- Post added at 06:47 PM ---------- Previous post was at 05:55 PM ----------

where do you see the volume controls? mine stays the same what mode do you use I did 60. no change

60 _sound_mod - max vol = 60 (boot sound on, camera sound off)
63_sound_mod - max vol = 63 (boot sound on, camera sound off)
63S_sound_mod - max vol = 63 (boot sound off, camera sound off)

Sending from the phone
 

cheeseymofodude

Senior Member
Apr 11, 2010
52
0
Chesterfield
just to be sure... with a note 2 n7105
i want to edit 'modifier normal', 'supported device headphones' and increase the 'headphone volume' value from 49? As in the last line from the below;

Modifier "Normal" {
SupportedDevice {
"Headphone"
}
Enable {
{ "Headphone ZC Switch", 0 },
{ "AIF1DAC1 Volume", 96 },
{ "AIF1 Boost Volume", 0 },
{ "DAC1 Volume", 96 },
{ "Left Output Mixer DAC Volume", 7 },
{ "Right Output Mixer DAC Volume", 7 },
{ "Headphone Volume", 49 },


tried to upload a screenshot of exactly what i mean but im not allowed.... :(
Sent from my GT-N7105 using xda app-developers app
 
Last edited:

akela11

Member
Dec 22, 2012
26
2
ags
*Whilst we're not interested in the "Input" stage for this mod, it could be incredibly useful for tweaking microphone sensitivity. You can alter the input gain for during a call and for when you're recording a video.


How I can tweak the microphone sensitive? I have a problem whith the microphone volume, when I call people (or they call me) they can't hear me. I have made a lots of workarounds but nothing works. Volumen is still too low (I know is toó low because if y record a voice note it is only perceptible with headphones)

I think tweak the microphone could be the solution for me.

sprint GS3
CM 10.2

Thanks in advance
 
Last edited:

Sami Kabir

Senior Member
Oct 3, 2012
2,233
1,410
Can I use this mod on my Phone? Its not a GS3, its a S Advance BUT its running Samsung's JB 4.1.2... so can I just replace my phone's default_gain.conf file with yours?

If not, then please tell me what values I need to change in order to achieve Loud Volume on my phone?
 
Last edited:

Sami Kabir

Senior Member
Oct 3, 2012
2,233
1,410
Haha I just realized that my phone doesn't have any file named :default_gain.conf.. so I'm pretty sure that this mod won't work.. Anyways, is there any other way to achieve Louder sound without downloading and installing any third party apps from Play Store?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 200
    PLEASE READ: I've noticed quite a few ROM devs are using my files without crediting me or linking back to this thread. I don't want people to start asking my permission or anything, feel free to use these files in your own work, but I worked hard trying to get my head round these files; finding out just what everything does and what the volume limits are. If you do use the modified files or modify your own using my guide please at least give me some credit. Thanks.

    I've also made an Application that can do this for you. It can be found here.


    PART 1

    File: 'System/etc/default_gain.conf'

    Hey everyone!
    For those who remember my old volume hack on the T-Mobile G1, this is essentially the same thing! For some bizarre reason, Samsung decided to map all the maximum volume levels to an easily accessible file (system/etc/default_gain.conf), which is different to 99% of Android phones out there because it's usually built into the kernel or something harder to modify. Cheers Samsung!

    THIS MOD WILL MAKE THE PHONE'S SPEAKER AS LOUD AS THE OS ALLOWS. ANY LOUDER AND THE AUDIO BREAKS! YOU HAVE BEEN WARNED!

    Things this modification can achieve:
    Louder Speaker Volume (Ringtones/Messages/Videos/MusicPlayer/etc.)
    Louder In-Call Volume (Earpiece and Speakerphone)

    Louder Headset Volume (Perhaps - untested)
    Louder Bluetooth Volume (Perhaps - untested)
    Louder Analogue Dock Volume (Perhaps - untested)
    Louder Digital AUX Volume (Perhaps - untested)
    Louder FM Radio Volume (Perhaps - untested)

    There are a few others in that file too. It's weird that instead of defining the Headset Volume for everything, things like 'incall' and 'FMradio' are all separate.

    How To Modify
    Any text editor will do but I strongly recommend Notepad++ because it's just awesome!

    How To Apply
    1) Download attatched file ('default_gain.conf' inside 'VolumeMods.zip')
    2) Use a file manager or ADB to push it to "system/etc" (back up existing file first!)
    3) From ADB or the Terminal do:
    Code:
    killall mediaserver
    or reboot your phone!
    4) Enjoy :)

    PART 2

    File: 'System/etc/Volume.db'

    This isn't really an audio hack as such, it simply allows you to disable some irritating sounds you cannot normally disable.

    What this mod disables:
    Camera Shutter Sound 1
    Camera Shutter Sound 2
    Camera Shutter Sound 3
    Boot Sound
    Camcorder Sounds
    AutoFocus Sound

    All this is so far useful for is to disable the camera sounds without modifying the camera itself.
    There are most likely other things this file can do but I've not had chance to play with it properly yet, I'll keep going and update this post if I find anything else.

    How To Modify
    I strongly recommend using the free "SQL Lite Databse Browser". Any program that can open .db files should work just fine though.

    How To Apply
    1) Download attatched file ('Volume.db' inside 'VolumeMods.zip')
    2) Use a file manager or ADB to push it to "system/etc" (back up existing file first!)
    3) From ADB or the Terminal do:
    Code:
    killall mediaserver
    or reboot your phone!
    4) Enjoy :)

    All the usual warnings apply: I am NOT responsible if this breaks your phone, speaker or ear-drums and I am not responsible for anything else negative that may occur. If you rooted your phone you should know how to recover from potential soft-bricks, etc. It's your responsibility, not mine.

    Flashable Zips

    Many thanks to Jesus_c and GadgetCheck
    Based on update.zip by GadgetCheck

    60_sound_mod - max vol = 60 (boot sound on, camera sound off)
    63_sound_mod - max vol = 63 (boot sound on, camera sound off)
    63S_sound_mod - max vol = 63 (boot sound off, camera sound off)

    Backup_sound_mod - original unmodified files

    all zips CWM flashible

    Zip Downloads can be found here.
    69
    Based on update.zip by GadgetCheck

    60_sound_mod - max vol = 60 (boot sound on, camera sound off)
    63_sound_mod - max vol = 63 (boot sound on, camera sound off)
    63S_sound_mod - max vol = 63 (boot sound off, camera sound off)

    Backup_sound_mod - original unmodified files

    all zips CWM flashible
    24
    Insane Volume Boost

    As the name suggests, this extra little mod (to the same file) will increase the volume even higher. Seriously high. I wouldn't recommend doing this as it distorts to hell and will most likely damage the speaker in the long run.

    For those of you crazy enough to give this a go, here are the instructions:

    1) Take the 'default_gain.conf' file (attached to the first post)
    2) Search for the following section:
    Code:
    Modifier "Normal" {
      Supported Device {
        "Speaker"
      }
      Enable {...
    and then look for
    Code:
     { "AIF1 Boost Volume",
    Change the value after that to whatever you want. The highest I've dared to go is 55. 55 is PLENTY loud enough, but you can probably go higher.

    DISCLAIMER
    The volume is getting absolutely ridiculous now. Be seriously careful if you decide to do this because it can go insanely loud and will most probably damage your speaker. You have been warned!!

    Enjoy ;)
    5
    Hi Meltus,

    great job, very impressive indeed.

    I wonder whether you can guide me which values to change in the file to only have headphone volume boosted.

    I was always happy with the speaker volume as such, so would like to not change that but boost the headphone to the maximum.

    If you tell me which values to modify, I am happy to do that on my own.
    Or is that somehow linked together and therefore not possible?

    Thanks a lot
    Andi

    Thanks :)

    The file is incredibly detailed and each individual parameter can be changed.
    I'll list here everything I know about the file.

    It's basically split up into 2 sections: The "Output Modifier Stage" and the "Input Modifier Stage". So the output stage controls volume and the input stage controls microphone gain, essentially. Under each stage you have a list of "Modifiers" and under each modifier you'll have the "Supported Devices".
    Here is the complete list of modifiers for the output stage (we're not interested in the input stage for now*):

    Output Modifier Stage
    ---------------------
    Normal
    Incall
    Ringtone
    Dual Normal
    Incommunication
    Voipout
    SecVoipout
    FMRadio
    FMRadio_Mute
    Loopback
    LoopbackPacket

    And here's a list of the devices for the Output Stage (many more in the input stage!):

    Supported Devices (for the output modifiers)
    -------
    Earpiece
    Speaker
    Headset Out
    Headphone
    SCO
    SCO Headset Out
    SCO Carkit
    Analogue Dock Out
    AUX Digital Out

    So how do we use this information?
    Well, let's say we wanted to boost the in-call volume:

    As mentioned above, there are 2 things we need to keep an eye on; "Modifier" and "Supported Devices".
    So say you wanted to boost the volume during a call but only for the earpiece (and not for the headset, bluetooth, etc). Well, we find the correct modifier, which is "Incall" and then we find our correct device, which is "Earpiece". We navigate to that little section, find the "Output Volume" and increase the value! :)
    For "Speaker" related sections the value will be "Speaker Volume" and for the Headset it will be "Headset Volume". There may be other variations too.

    Now, for your question; Boosting the headset volume:

    For this we need: Modifier "Normal", Supported Device "Headphone".
    So, we search for this section (it's not very far down) and increase the value!

    The section you are looking for should look like this:

    Code:
    Modifier "Normal" {
    	SupportedDevice {
    		"Headphone"
    	}
    	Enable {
    		{ "Speaker Mixer Volume", 1 },
    		{ "Speaker Volume", 0 },
    		{ "Headphone ZC Switch", 0 },
    		{ "AIF1DAC1 Volume", 96 },
    		{ "AIF1 Boost Volume", 0 },
    		{ "DAC1 Volume", 96 },
    		{ "Left Output Mixer DAC Volume", 7 },
    		{ "Right Output Mixer DAC Volume", 7 },
    		{ "Headphone Volume", 50 },
    	}

    Headphone Volume is the value you need to change.

    Please note: If your headphones double up as a headset (you can place and receive calls with it) the phone might recognise it as "Headset Out" instead, I'm not sure. Probably better to change both.

    So you can match each modifier up with each supported device and create a very complex audio configuration file.
    For example, match up the "Ringtone" with the "Headset/Headphones" section and you can control how loud the ringtone plays through the headset when a call comes in! This file's pretty in depth :p

    We also now know that there is another volume controlling parameter called "AIF1 Boost Volume". This can boost the volume even further than you can with the normal "Output Volume" values, etc. (see post 2).

    *Whilst we're not interested in the "Input" stage for this mod, it could be incredibly useful for tweaking microphone sensitivity. You can alter the input gain for during a call and for when you're recording a video.


    This is my interpretation of the file. Whilst I know some of it is correct, some of it could also be completely wrong, there's just far too much to test. Please go easy on me if some of this is wrong! :D
    5
    Loud it is..

    But Distorts stuff!!

    Any ways if you want to Flashey Flashey use the file below... flash via CWM :D