[ROOT] Massive Volume Modifications for i9500 (i9505 incompatible)! - Galaxy S 4 i9500 Android Development

Requirements
- Root Access
- ADB understanding (or an app like Root Explorer)
- SGS4 i9500 (doesn't work on i9505)
- Samsung based ROM (i.e, no AOKP or CM, etc.)
WARNING: BE VERY CAREFUL. THIS WILL ALLOW YOU TO PUSH YOUR PHONE'S VOLUME FAR BEYOND IT'S NORMAL LEVEL. THERE DOES NOT APPEAR TO BE A LIMIT YOU CAN PUSH THE VOLUME TO!!!
I will not be held responsible for any damage you do to your phone or your phone's speaker. You have been warned.
Instructions
Exactly the same method as on the SGS3 (the files are NOT interchangeable though)
1) Locate the file 'System/etc/default_gain.conf'
2) Use ADB to pull file to your computer
or
2) Use an app like Root Explorer to edit file on the device
3) Use guide below to make desired changes
4) Reboot your phone to apply changes!
Guide
I will try and explain the file as best I can:
You will notice there are 4 "Output Modifier Stages" listed at the top of the file. These are: Normal, Incall, Ringtone and Incommunication.
There are also 4 "Modifiers" which are not listed at the top but are referred to as: Earpiece, Speaker, Headset Out, Headphone, and a few others.
To alter your desired volume type you simply have to match the Output Stage with the Desired Modifier! It doesn't always work like this, not fully got to grips with this file yet.
For example, I want to increase the volume of Ringtones, so I find the bit that looks like this:
Code:
Modifier "Ringtone" {
SupportedDevice {
"Speaker"
}
Enable {
{ "Speaker Digital Volume", [B]112 [/B]},
{ "SPKOUTL Input 1 Volume", 32 },
{ "SPKOUTL Input 2 Volume", 32 },
}
}
And change it to:
Code:
Modifier "Ringtone" {
SupportedDevice {
"Speaker"
}
Enable {
{ "Speaker Digital Volume", [B]142 [/B]},
{ "SPKOUTL Input 1 Volume", 32 },
{ "SPKOUTL Input 2 Volume", 32 },
}
}
Please Note: I have no idea how high you can push this value. I've had it up to 152 which I would NOT recommend. I don't dare go much louder.
You can also do things like, increase the volume of ringtones that play through the headset or bluetooth headset. It's a pretty detailed file!
There is also an "Input" section lower down in the file which allows you to alter the gain of the microphones in certain situations but I have not had chance to mess with this yet.
SEE POST 2 FOR PRE-MADE FILES!

Pre-Made Files
Default_Gain.zip - Unzip .conf file and move to "System/etc/"
General Volume (Normal, Speaker) increased from 112 to 132.
Ringtone Volume (Ringtone, Speaker) increased from 112 to 132.
Earpiece Volume (Incall, Earpiece) increased from 128 to 132.
Speakerphone Volume (Incall, Speaker) increased from 144 to 154
Default_Gain_Backup.zip - Unzip .conf file, rename it to "default_gain.conf" and move to "System/etc/"
Stock backup file!

Just in case

Nice work

Safe on the long-run?
Meltus said:
Requirements
- Root Access
- ADB understanding (or an app like Root Explorer)
- SGS4 i9500 (needs testing on an i9505)
- Samsung based ROM (i.e, no AOKP or CM, etc.)
WARNING: BE VERY CAREFUL. THIS WILL ALLOW YOU TO PUSH YOUR PHONE'S VOLUME FAR BEYOND IT'S NORMAL LEVEL. THERE DOES NOT APPEAR TO BE A LIMIT YOU CAN PUSH THE VOLUME TO!!!
I will not be held responsible for any damage you do to your phone or your phone's speaker. You have been warned.
Instructions
Exactly the same method as on the SGS3 (the files are NOT interchangeable though)
1) Locate the file 'System/etc/default_gain.conf'
2) Use ADB to pull file to your computer
or
2) Use an app like Root Explorer to edit file on the device
3) Use guide below to make desired changes
4) Reboot your phone to apply changes!
Guide
I will try and explain the file as best I can:
You will notice there are 4 "Output Modifier Stages" listed at the top of the file. These are: Normal, Incall, Ringtone and Incommunication.
There are also 4 "Modifiers" which are not listed at the top but are referred to as: Earpiece, Speaker, Headset Out, Headphone, and a few others.
To alter your desired volume type you simply have to match the Output Stage with the Desired Modifier! It doesn't always work like this, not fully got to grips with this file yet.
For example, I want to increase the volume of Ringtones, so I find the bit that looks like this:
Code:
Modifier "Ringtone" {
SupportedDevice {
"Speaker"
}
Enable {
{ "Speaker Digital Volume", [B]112 [/B]},
{ "SPKOUTL Input 1 Volume", 32 },
{ "SPKOUTL Input 2 Volume", 32 },
}
}
And change it to:
Code:
Modifier "Ringtone" {
SupportedDevice {
"Speaker"
}
Enable {
{ "Speaker Digital Volume", [B]142 [/B]},
{ "SPKOUTL Input 1 Volume", 32 },
{ "SPKOUTL Input 2 Volume", 32 },
}
}
Please Note: I have no idea how high you can push this value. I've had it up to 152 which I would NOT recommend. I don't dare go much louder.
You can also do things like, increase the volume of ringtones that play through the headset or bluetooth headset. It's a pretty detailed file!
There is also an "Input" section lower down in the file which allows you to alter the gain of the microphones in certain situations but I have not had chance to mess with this yet.
SEE POST 2 FOR PRE-MADE FILES!
Click to expand...
Click to collapse
This is great! But I'm concerned, won't this ruin the Speakers or the Headphone plug in the long run?

Paolonicus said:
This is great! But I'm concerned, won't this ruin the Speakers or the Headphone plug in the long run?
Click to expand...
Click to collapse
Headphone plug? Definitely not.
Main loudspeakers, Headphone speakers, bluetooth speakers and earpiece speaker? Most definitely yes!
Although, the same hack worked on the SGS3 and my one is still being used every day with the hack in place and the speakers are still holding out. The speakers are more resilient than you think.
Like I said, the values I've set the pre-made files are probably the maximum I will go to and even those are probably too loud!

Anyone tried it out?:highfive:

Holy moses that's loud. Just what the doctor ordered, thanks!

Went up to 150, I see what you mean
Thank you, this is what I was looking for
Sent from my S IV (Octa Core Beast)

Sounds good apart from music is a bit distorted
Sent from my GT-I9500 using Tapatalk 2

Meltus said:
- SGS4 i9500 (needs testing on an i9505)
Click to expand...
Click to collapse
SGS4 I9505 doesn't have file default_gain.conf in System/etc.

hi..,
i have downloaded the files,
but how do i replace them or edit the file with new values

nani67 said:
hi..,
i have downloaded the files,
but how do i replace them or edit the file with new values
Click to expand...
Click to collapse
Read the instructions in the OP

jaidev.s said:
Read the instructions in the OP
Click to expand...
Click to collapse
am using fx explorer,
if i try to edit the file it says " file system is marked as read-only "

Meltus, nice to see you here , man,,, been using your work on note2

nani67 said:
am using fx explorer,
if i try to edit the file it says " file system is marked as read-only "
Click to expand...
Click to collapse
You've to change the root permission in the fx explorer settings

jaidev.s said:
You've to change the root permission in the fx explorer settings
Click to expand...
Click to collapse
yaa
got it..
now am set to 125 as speaker value,
now my speaker volume rocks

Meltus said:
Pre-Made Files
Default_Gain.zip - Unzip .conf file and move to "System/etc/"
General Volume (Normal, Speaker) increased from 112 to 132.
Ringtone Volume (Ringtone, Speaker) increased from 112 to 132.
Earpiece Volume (Incall, Earpiece) increased from 128 to 132.
Speakerphone Volume (Incall, Speaker) increased from 144 to 154
Default_Gain_Backup.zip - Unzip .conf file, rename it to "default_gain.conf" and move to "System/etc/"
Stock backup file!
Click to expand...
Click to collapse
is this the safest adjustment ? coz i dont want to break my speaker and ears...
i mean the SAFEST adjustment

gdonanthony said:
is this the safest adjustment ? coz i dont want to break my speaker and ears...
i mean the SAFEST adjustment
Click to expand...
Click to collapse
The safest adjustment is to not adjust it!
I'm currently running mine at +10 across the board which seems like a good level to me. The pre-made files are at +20 which is a little too high.
But remember: You're on the XDA forums, nothing is safe
Sent from my GT-I9500 using xda app-developers app

good point ! haha.. can give me ur adjustment ? i think ur adjustment is good level too XD

Related

incall volume please help

guys i just got this note2 from local, the incall volume so low even i set it to max, any one have this issue with theirs or what can i do to make it louder , thanks
Confirmed, its a bit on the low side.
I made a adjusted default_gain.conf with slightly increased volume.
Not tested tho but anyone want to try, use root explorer and overwrite the file in system/etc
(attached, remove the .txt part of file name)
DocRambone said:
Confirmed, its a bit on the low side.
I made a adjusted default_gain.conf with slightly increased volume.
Not tested tho but anyone want to try, use root explorer and overwrite the file in system/etc
(attached, remove the .txt part of file name)
Click to expand...
Click to collapse
thanks it confirmed your too,thanks Doc
any note 2 owners please confirm, i was so worry because i thought i got the defected unit
One more version, tested and will boost the incall volume a lot
Cred to Meltus : http://forum.xda-developers.com/showthread.php?t=1722136
tongphan said:
any note 2 owners please confirm, i was so worry because i thought i got the defected unit
Click to expand...
Click to collapse
Don't have this problem.
Sent from my Nexus 7 using xda premium
not working sometimes no sound
did u try the native incall volume boost? It works pretty good. Just set it to Clear audio option and its rocking:good:

Volume increase

Do any of you guys know what values can be increased to raise headphone volume? Can you just adjust mixer paths file?
I'm also trying to figure this out. I miss the volume mod from the Nexus 5, both of these phones are too quiet stock. I looked through the mixer_paths.xml file on the 5X and it seems to look very similar, but the HPHL and HPHR values are already 20 for headphone volume. Speaker volume seems to me to be controlled in "speaker-gain-default". I'd appreciate if someone more knowledgeable than me would comment on this before I blow up my phone lol.
Screenshots:
http://imgur.com/zai6hWk
http://imgur.com/lYjlq7p
g1isawsome said:
I'm also trying to figure this out. I miss the volume mod from the Nexus 5, both of these phones are too quiet stock. I looked through the mixer_paths.xml file on the 5X and it seems to look very similar, but the HPHL and HPHR values are already 20 for headphone volume. Speaker volume seems to me to be controlled in "speaker-gain-default". I'd appreciate if someone more knowledgeable than me would comment on this before I blow up my phone lol.
Screenshots:
http://imgur.com/zai6hWk
http://imgur.com/lYjlq7p
Click to expand...
Click to collapse
I remember seeing a tread that you are looking for and with some search magic, finally found it. It talks about making surround sound, but it also explains + shows what you are looking for!
http://forum.xda-developers.com/nex...nd-testers-t3252659/post63908047#post63908047
Charkatak said:
I remember seeing a tread that you are looking for and with some search magic, finally found it. It talks about making surround sound, but it also explains + shows what you are looking for!
http://forum.xda-developers.com/nex...nd-testers-t3252659/post63908047#post63908047
Click to expand...
Click to collapse
That works great to increase the speaker volume, but I haven't noticed any volume increase in the headphones from increasing the values that controlled it in the Nexus 5. I bumped the values from the stock 20 to 24.
I can only do this if I'm rooted correct?
Download faux sound and a kernel which supports it. I'm currently using it and I can control both speaker and analog volumes.
Sent from my Nexus 5X using Tapatalk

[ROOT][MOD] Xperia X Volume Boost for Stock Configuration v.1.2

What's bugging me about my brand new Xperia X? The overall low volume.
These simple tweaks, this mod if you may, simply modifies a few lines from the stock audio config files which, after a reboot make your speakers louder and headphones, a bit too loud (but I didn't hear anyone complaining about Xperias for being too loud lol)!
It's for rooted users only and for me it sounds a lot better than using (possibly) unstable sound mods instead of simply adjusting the volume on some pretty decent stock drivers.
It's been tested against 34.0.A.2.301 - but it should be backwards compatible..
UPDATE:
Stereo in-call Voice-Speaker now working;
It should be compatible with N - test it with a backup at hand - I'm on MM because of Xposed;
Stereo for Ringtone-speaker is WIP - feel free to jump in and help ;
Features:
Louder Stereo Speaker sound system wide;
Louder Headphone sound;
Stereo Voice-Speaker for calls;
WIP for Stereo Ringtone-speaker - I'm open to suggestions!
Customizable as you see fit! Just stick to the already explored options.
Conflict-free tweaks - no additional files added, no nothing, just some modified lines - you can trust it .
Installation:
By flashing the .zip with FLASHFIRE [press the red "+" button > Flash ZIP or OTA > leave the options as they are and Click on the "done arrow thingy".
Manually copying the file to /etc - DO NOT forget to set the right permissions (RW R R). Please take a look over the Permissions.png screenshot in case you don't know how to set them - you long click on the file, then go to properties and you'll see the permissions button.
Do it yourself - there's a guide down bellow.
Bugs: -None-
If you have ideas for this, PM me!
In the download section you'll find:
>>Flashable! already modified "Xperia X Getting Loud.zip" with: SPEAKER values - 85 for both RX7/RX8 and HEADPHONE values - 85 for RX1/RX2.
>>Flashable! Stock Values - it's the stock file unmodified.
>>NON-Flashable! zips - there you have 1 zip for the modified file and the stock one so you can place it manually via ES file explorer or the explorer of your choosing.
**And some screenshots that are pretty self explanatory showing you what modifications need to be made if you want to do it yourself.
DIY Guide (using ES File Explorer):
You're probably acquainted with ES File Explorer so it should be pretty simple. The modifications I made were done with ES (it has an built-in editor).
1. Make sure the Root Explorer toggle is On - it's located in the Tools tab as you swipe the left side of the screen;
2. Go to the root of the files where you'll see folders such as "data; dev; firmware; storage; system; etc" go to "etc" folder and scroll down till you see the mixer_paths files;
3. Open "mixer_paths_wcd9335" and at the prompt, select ES Note Editor - it's a huge file so tap right above the navigation bar! A bar with percentage should show up - it will help you navigate through the file;
4.1 Speakers - Get to 42% of the file where you should see the path for "wsa-speaker", ctrl name RX7 and RX8 with their stock values - modify the values as you please but please don't go over 86 - sound will be too distorted;
4.2 Headphones - Go to 53% of the file - you'll see "headphones-regulation" path - ctrl name RX1 and RX2 - modify the values but anything more than 85 might be too much.
4.3 New! Stereo Voice-Speaker - find the path for Voice-speaker as seen in screenshot and simply add some volume there - default is 0 - I'd advise to go lower on that speaker since the mic used for speaker calls is located near the earpiece - so values around 80-82 should be ideal.
5. Save and reboot. If you choose to modify the files on a PC make sure to set the permissions when you put the file back. Otherwise bootloops might occur.
***Internal players such as Music, Video, ringing and notification will try to compensate the sound so it might not be as loud as expected. But try a youtube video and you'll notice the difference.
***Do not attempt to modify something else unless you know what you're doing - on that note, make a backup first. In my first attempts I lost sound device wide with FC for sound effects apk.
***Do not go over the values I imputed (85 for speaker and 85 for headphone) - apart from the distortions that will occur because of the louder volume the internal DAC might not be able to reproduce the sound at such intensity - in my tests one of the speakers was shutting down. Again, no harm can come to your device but don't push it.
***I saw a lot of sections for hi-res headphones, Noise cancelling, etc - I did not explore those options because I don't have the means to test it. Any input and contributions from you guys are most welcome.
These files control the volume output for digital / analog which means it's a non-intrusive way to change volumes with no harm for the device. If volume limit exceeds the capacity of the speakers it will sound bad but there is no chance for physical damage.
I'm coming from a highly modded Xperia Z (that phone saw some torture) which made use of the earpiece speaker for stereo, and even if the speakers aren't designed for that output they are louder than the X which packs pretty decent speakers. This is the mod that gave me the idea: http://forum.xda-developers.com/xperia-z/themes-apps/mod-stereomod-xz-v1-1-t2835995 @monivan
Click to expand...
Click to collapse
Don't forget to hit Thanks! ​
Cheers and happy new year!
Files also available in this Box.com folder: https://app.box.com/s/0oibhyojbwhrwxyyglpzd63sihsigeu5
Thank you so much for this great mod.
Oel said:
Thank you so much for this great mod.
Click to expand...
Click to collapse
You're welcome but I just updated the files..... Speaker was just a bit too loud. I decreased the values a bit because a notification was distorting the speakers. Use the update if you feel like it's too much.
Good work!
UPDATE 1.2
Stereo Voice-Speaker for calls;
WIP for Stereo Ringtone-speaker - I'm open to suggestions!
File: 'Xperia X Loud + Stereo voice-spkr.zip' - flash it, explore it, enjoy!
Sebi673 said:
Stereo Voice-Speaker for calls;
WIP for Stereo Ringtone-speaker - I'm open to suggestions!
File: 'Xperia X Loud + Stereo voice-spkr.zip' - flash it, explore it, enjoy!
Click to expand...
Click to collapse
<path name="voice-speaker">
<path name="speaker" />
<ctl name="RX7 Digital Volume" value="82" />
</path>
I don't see a line here that you can add a value greater than 0 to in order to get both speakers working.
agentsmith988 said:
<path name="voice-speaker">
<path name="speaker" />
<ctl name="RX7 Digital Volume" value="82" />
</path>
I don't see a line here that you can add a value greater than 0 to in order to get both speakers working.
Click to expand...
Click to collapse
I PMd you to debunk this whole thing. As for the rest of you, watch out for bootloops if you try something new...
f5122 can use it?
FuLiterary said:
f5122 can use it?
Click to expand...
Click to collapse
I don't have one. Backup the file and look if it uses the same one. It should though. Look through the guide, you'll know what to look for.
can it be used on xperia x compact? thank you very much
Does this work with the X COMPACT as well?
stevuna said:
can it be used on xperia x compact? thank you very much
Click to expand...
Click to collapse
CPH_game_master said:
Does this work with the X COMPACT as well?
Click to expand...
Click to collapse
Files should be different on your device. I no longer have the X, nor the X Compact, so this mod could not work.
Use the guide instead, it's pretty easy to make the modifications on your own. All you need is ES file explorer or something similar. Always keep a backup ready to flash.
Hello! Is it possible to enable stereo voise without increasing volume?

Any way to increase ringtone/notification volume?

I find it's way too quiet. Most of the time I don't even realize it's ringing in my pocket (and I don't even notice the vibrations). Is there a way to make it a bit louder?
If you are rooted you can, but I don't recommend it to you because it causes a distortion of the sound. But if you wanna try. . .
1. Locate file 'mixer_paths.xml' located on 'etc' root folder. Open it with text editor. (I recommend to edit it on PC)
2. Find '<path name="speaker">' attribute.
3. Just edit the 'RX3 Digital Volume' value to a new value, higher than default (84 for me).
Also, as it was not the primary think you were asking for, but would be useful. I use it when I leave home. Increasing vibration intensity. . .
- You can use Kernel Adiutor, or other Kernel app. Them usually allow you to easily tweak the value. And also apply the new value at boot.
or
- Just edit the current value of the file 'vgt_level.*' located on '/sys/devices/virtual/timed_output/vibrator' root folder. But by this way you will lost your modified value after reboot.
CrashOverride93 said:
If you are rooted you can, but I don't recommend it to you because it causes a distortion of the sound. But if you wanna try. . .
1. Locate file 'mixer_paths.xml' located on 'etc' root folder. Open it with text editor. (I recommend to edit it on PC)
2. Find '<path name="speaker">' attribute.
3. Just edit the 'RX3 Digital Volume' value to a new value, higher than default (84 for me).
Click to expand...
Click to collapse
I don't have that line in my "mixer_paths.xml" file.
Hi
GuyInDogSuit said:
I don't have that line in my "mixer_paths.xml" file.
Click to expand...
Click to collapse
Just wait for MiniX Rom Official Release…
Just send me the file by PM. I will check it.
D_Vovan_238 said:
Just wait for MiniX Rom Official Release…
Click to expand...
Click to collapse
Source?
Yeah, can't really increase it much without distortion. Pretty much every number I tried is distorted. Damn this cheap single little speaker. Damn thing sounds like a tiny Piezo buzzer.

How to increase speaker in call and music (root)?

Is There a zip file to flash in twpr that change configuration of mixer file that increase speaker volume?
If isnt how i can increase It?
kenshin88 said:
Is There a zip file to flash in twpr that change configuration of mixer file that increase speaker volume?
If isnt how i can increase It?
Click to expand...
Click to collapse
Your best bet is not to do that.
Raising the volume beyond what the manufacturer has implemented = busted speakers.
Xiaomi will have the volume set to exactly the maximum volume the speaker can handle because they want it to be loud to impress customers.
Use the mixers from the MIUI stable ROMs
Dobsgw said:
Your best bet is not to do that.
Raising the volume beyond what the manufacturer has implemented = busted speakers.
Xiaomi will have the volume set to exactly the maximum volume the speaker can handle because they want it to be loud to impress customers.
Use the mixers from the MIUI stable ROMs
Click to expand...
Click to collapse
Problem is with headphones
You can edit a file called mixer_paths_tasha.xml in vendor/etc/
Find
<ctl name="HPHL Volume" value="13" />
And change the value of both 2 lines to what u like but i recommend 1 or 2 increases i saw a tutorial setting it on 18 and that was too bad even on low volume it had noises so just stick with little increases i set mine to 14
Sent from my MI 6 using Tapatalk
Hey Arin, how can I do that? Do I need a root for that?
Can you remember how and where you found that video?
Thanks
hans.boerse said:
Hey Arin, how can I do that? Do I need a root for that?
Can you remember how and where you found that video?
Thanks
Click to expand...
Click to collapse
He basically gave the instructions right here.
NickTheSickDick said:
He basically gave the instructions right here.
Click to expand...
Click to collapse
Not really, as I don´t know how to edit that file and what I need for it. He gave a hint but its not really an instruction.
hans.boerse said:
Not really, as I don´t know how to edit that file and what I need for it. He gave a hint but its not really an instruction.
Click to expand...
Click to collapse
He gave you the location of the file and the exact lines you need to edit within the file.
Its an XML so it reads like a text document.
You need a root file explorer like mixplorer or solid explorer.
Navigate to the file. Open it and edit. Save. Reboot.
It really is that simple. A search on any search engine or XDA would likely get you access to information on how to open and edit files on android.
It does seem daunting but its really as simple as copy pasting text into documents. Just different file extensions than normal.
If youre rooted then backup and have a go. No harm.
If no root then suffer in silence

Categories

Resources