5,596,568 Members 41,842 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Meltus
Old
(Last edited by Meltus; 30th August 2012 at 04:35 PM.)
#1  
Meltus's Avatar
Senior Member - OP
Thanks Meter 984
Posts: 1,909
Join Date: Jan 2009
Location: Manchester

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

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:
Quote:
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:
Quote:
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

Quote:
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
Quote:
Originally Posted by jesus_c View Post
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.
Attached Files
File Type: zip VolumeMods.zip - [Click for QR Code] (5.2 KB, 31727 views)
The Following 188 Users Say Thank You to Meltus For This Useful Post: [ Click to Expand ]
 
Meltus
Old
(Last edited by Meltus; 23rd June 2012 at 04:26 PM.)
#2  
Meltus's Avatar
Senior Member - OP
Thanks Meter 984
Posts: 1,909
Join Date: Jan 2009
Location: Manchester

 
DONATE TO ME
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
The Following 21 Users Say Thank You to Meltus For This Useful Post: [ Click to Expand ]
 
benny6812
Old
#3  
Senior Member
Thanks Meter 4
Posts: 148
Join Date: Jan 2010
"THIS MOD WILL MAKE THE PHONE'S SPEAKER AS LOUD AS THE OS ALLOWS. ANY LOUDER AND THE AUDIO BREAKS! YOU HAVE BEEN WARNED!"

Can you clarify this please. Do you mean that you have cranked the values up as high as sound quality allows??
The Following User Says Thank You to benny6812 For This Useful Post: [ Click to Expand ]
 
Meltus
Old
#4  
Meltus's Avatar
Senior Member - OP
Thanks Meter 984
Posts: 1,909
Join Date: Jan 2009
Location: Manchester

 
DONATE TO ME
Quote:
Originally Posted by benny6812 View Post
"THIS MOD WILL MAKE THE PHONE'S SPEAKER AS LOUD AS THE OS ALLOWS. ANY LOUDER AND THE AUDIO BREAKS! YOU HAVE BEEN WARNED!"

Can you clarify this please. Do you mean that you have cranked the values up as high as sound quality allows??
I've turned it up as loud as the phone will allow. It's currently set to '63' but setting it to '64' breaks the audio so you end up with no sound until you change it back. It doesn't seem to distort that much either; the SGS3's speaker is surprisingly good!
The Following 4 Users Say Thank You to Meltus For This Useful Post: [ Click to Expand ]
 
benny6812
Old
#5  
Senior Member
Thanks Meter 4
Posts: 148
Join Date: Jan 2010
Okay, I'll be the first to try it out...reporting back in a min

---------- Post added at 07:03 PM ---------- Previous post was at 06:57 PM ----------

Probably just me but I didn't notice any difference except that MAYBE the drop effect during unlock was louder

Actually, I think that the notifications are louder which i like
 
ratcom
Old
#6  
ratcom's Avatar
Senior Member
Thanks Meter 157
Posts: 1,316
Join Date: Mar 2005
Location: Nottingham, England
just tried this and i can confirm its working very well

well done and thanks mate!
(.(*. .*).)
..ratcom..
(.(.* *.).) Flashing Since 2004
The Following User Says Thank You to ratcom For This Useful Post: [ Click to Expand ]
 
gh.rohit
Old
#7  
gh.rohit's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 4095
Posts: 6,340
Join Date: Oct 2011
Location: Mumbai

 
DONATE TO ME
yes it works
-------------------------------------------------------------------------------
My ROMs:-
For HTC One :- RGUI ROM | For LG G2 :- RGUI ROM
For S2 :- RGUI_NDT MIUI | For S3 :- RGUI ROM
For S3 :- MIUI-INDIA ROM
| Note 2:- MIUI-INDIA ROM
Xtreamer Aiki 5":- Xtreamer Mobile Aiki 5" | Xtreamer Aiki 4":- Xtreamer Mobile Aiki 4"

-------------------------------------------------------------------------------
www.rgui.net | www.miui.co.in
The Following User Says Thank You to gh.rohit For This Useful Post: [ Click to Expand ]
 
katsuru
Old
#8  
katsuru's Avatar
Senior Member
Thanks Meter 32
Posts: 348
Join Date: Apr 2010
Location: Herford, Germany

 
DONATE TO ME
im on AOKP and there is no default_gain.conf file on system/etc
If you find my post useful don't be afraid of hitting the Thanks button!

Tweeter

a.k.a SylasF

Sony Xperia S - Rocking KA Rom and Doomkernel ONLY!

If you like my work or find it useful you can always pay me a beer
 
meule46
Old
#9  
meule46's Avatar
Senior Member
Thanks Meter 127
Posts: 213
Join Date: Feb 2011
works like hell

Thanks!
Groet Maurice
Phone :* Galaxy S IV
Firmware :*JB 4.4.2
The Following User Says Thank You to meule46 For This Useful Post: [ Click to Expand ]
 
dehaani
Old
#10  
Account currently disabled
Thanks Meter 67
Posts: 260
Join Date: Oct 2010
Quote:
Originally Posted by katsuru View Post
im on AOKP
And you're looking for a Samsung ROM mod?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes