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

Search This thread

XDM inc

Senior Member
Mar 7, 2011
1,613
364
does this work on xperia based phones? i dont seem to have that file in my ect
 

FlorinSVJ

Senior Member
Jul 1, 2012
105
35
Oradea
www.facebook.com
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

This Works perfectly for Headphones , can you make a version just for headphones? like they are now? 63? but only for headphones , i don't like that thing my earpiece when i talk to somebody with the cellphone at ear i hear better in the cell phone , is too loud or tell me how to revert stock only the earpiece settings what to edit? thx in addvance !

EDIT
Problem solved i edited the lines and the earpiece is back to stock if anybody want it i post it here , Keep it up mate ;) and make an app to mantaint the excelent work !
 

Attachments

  • default_gain.zip
    2.9 KB · Views: 192
Last edited:

Krep3

Senior Member
Aug 22, 2012
100
6
This Works perfectly for Headphones , can you make a version just for headphones? like they are now? 63? but only for headphones , i don't like that thing my earpiece when i talk to somebody with the cellphone at ear i hear better in the cell phone , is too loud or tell me how to revert stock only the earpiece settings what to edit? thx in addvance !

EDIT
Problem solved i edited the lines and the earpiece is back to stock if anybody want it i post it here , Keep it up mate ;) and make an app to mantaint the excelent work !

Does it work on 4.3? I'm rooted and can't edit my file or overwrite it
 

pxp3

Senior Member
Jul 31, 2013
69
17
Hi,

I did this (replacing default_gain.conf) and everything worked great. The sound was great.

But I did something wrong with my files and root explorer and now it stopped working. The volume is back to low.

Is there something I can do to try to start all over again and make it work?

I did replace default_gain.conf two or three times, but still doesn't work.

Anyone?

Thanks
 

maxxxz

Senior Member
Jul 10, 2012
172
4
Sorry,if i flash via cwm the .zip file, i dont got got to the the rest?
Thanks and sorry for the ignorance.
 

amp77

Member
Jan 30, 2013
32
3
I m on TW 4.3 - KT747 kernel and there is no default_gain.cong file in system/etc

Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
 

vsanch24

Senior Member
Oct 28, 2008
57
6
Flint, MI
I am on a L710 S3 for VM and have the new 4.4.2 update. I do not see the files which are being modified and have seen posts it doesn't work with KK. I am throwing my hat in the ring for a possible rewrite to make it compatible.

Does anyone else have any ideas on how to get the same results on KK? I have a Stock 4.4.2 SIII Rooted.
 

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