Code:
#include
/*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about the feature I'm showing you here
* before using it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
* --- Extracted from @Hazou --- (thank you)
*/I've been looking to increase the volume on my razr I during a normal call, trying not to use 3rd party software
I couldn't find a direct answer in my searches, and thinking that somebody else would need this as well,
I found that we can modify the file AudioConfigurableDomains.xml to incrase the volumen,
Default value is 33, for those using CM11 by @Hazou value is 63, however this was still low for me, so I've set the max, which is 71,
Just need to replace the value. In the file you will find a section like the one below
The file location is: /system/etc/parameter-framework/Settings/Audio
You will need to access this file through a root explorer app, modify the file and save it,
I recommended to create a backup of the original file.
Permissions for this file must be set to 644 (0644 for those using TWRP File Manager),
Also to those that doesn't know the octal permissions, these are:
Owner: Read + Write
Group: Read
Others: Read
not setting these permissions correctly will cause a bootloop,
Code:
<Settings>
<Configuration Name="Multimedia.WiredSpeakers">
<ConfigurableElement Path="/Audio/MSIC/SOUND_CARD/ROUTING/PLAYBACK/DEVICE/HEADPHONE/VOLUME">
<IntegerParameter Name="VOLUME">71 71</IntegerParameter>
</ConfigurableElement>
</Configuration>
<Configuration Name="Multimedia.Earpiece">
<ConfigurableElement Path="/Audio/MSIC/SOUND_CARD/ROUTING/PLAYBACK/DEVICE/HEADPHONE/VOLUME">
<IntegerParameter Name="VOLUME">71 71</IntegerParameter>
</ConfigurableElement>
</Configuration>
<Configuration Name="Telephony.WiredSpeakers">
<ConfigurableElement Path="/Audio/MSIC/SOUND_CARD/ROUTING/PLAYBACK/DEVICE/HEADPHONE/VOLUME">
<IntegerParameter Name="VOLUME">71 71</IntegerParameter>
</ConfigurableElement>
</Configuration>
<Configuration Name="Telephony.Earpiece">
<ConfigurableElement Path="/Audio/MSIC/SOUND_CARD/ROUTING/PLAYBACK/DEVICE/HEADPHONE/VOLUME">
<IntegerParameter Name="VOLUME">71 71</IntegerParameter>
</ConfigurableElement>
</Configuration>
<Configuration Name="Telephony.IHF">
<ConfigurableElement Path="/Audio/MSIC/SOUND_CARD/ROUTING/PLAYBACK/DEVICE/HEADPHONE/VOLUME">
<IntegerParameter Name="VOLUME">71 71</IntegerParameter>
</ConfigurableElement>
</Configuration>
<Configuration Name="BluetoothSCO">
<ConfigurableElement Path="/Audio/MSIC/SOUND_CARD/ROUTING/PLAYBACK/DEVICE/HEADPHONE/VOLUME">
<IntegerParameter Name="VOLUME">71 71</IntegerParameter>
</ConfigurableElement>
</Configuration>
</Settings>If you choose to replace your own file with the one attached, please remember to set the permissions as it's noted above.
Hope this help someone,
Best regards,
Download from this link
No comments:
Post a Comment