Enable VGA (640x480) recording on the camera CM 7.2
using the standard application for recording programs,
by the way now you can record using a codec H.263, H.264 and a resolution of 640x480 (using LGCamera or DoubleShot)
Maximum number of fps to> 30 if attained
video output format 3gp (or mp4 when you change a parameter in the file media_profiles.xml)
recording in 100 (previously 90%)
bitrate of 10Mbit (17Mbit earlier)
And now the most important or edit
system/etc/media_profiles.xml
New
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE MediaSettings [
<!ELEMENT MediaSettings (CamcorderProfiles,
EncoderOutputFileFormat+,
VideoEncoderCap+,
AudioEncoderCap+,
VideoDecoderCap,
AudioDecoderCap)>
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
<!ELEMENT EncoderProfile (Video, Audio)>
<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
<!ELEMENT Video EMPTY>
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
<!ATTLIST Video bitRate CDATA #REQUIRED>
<!ATTLIST Video width CDATA #REQUIRED>
<!ATTLIST Video height CDATA #REQUIRED>
<!ATTLIST Video frameRate CDATA #REQUIRED>
<!ELEMENT Audio EMPTY>
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
<!ATTLIST Audio bitRate CDATA #REQUIRED>
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
<!ATTLIST Audio channels (1|2) #REQUIRED>
<!ELEMENT ImageEncoding EMPTY>
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
<!ELEMENT ImageDecoding EMPTY>
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
<!ELEMENT Camera EMPTY>
<!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
<!ELEMENT EncoderOutputFileFormat EMPTY>
<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
<!ELEMENT VideoEncoderCap EMPTY>
<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
<!ELEMENT AudioEncoderCap EMPTY>
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
<!ELEMENT VideoDecoderCap EMPTY>
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
<!ELEMENT AudioDecoderCap EMPTY>
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
]>
<!--
This file is used to declare the multimedia profiles and capabilities
on an android-powered device.
-->
<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<CamcorderProfiles>
<EncoderProfile quality="high" fileFormat="3gp" duration="60">
<Video codec="m4v"
bitRate="10000000"
width="640"
height="480"
frameRate="30" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="m4v"
bitRate="161000"
width="176"
height="144"
frameRate="15" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="100" />
<ImageEncoding quality="95" />
<ImageEncoding quality="90" />
<ImageDecoding memCap="26000000" />
<Camera previewFrameRate="0" />
</CamcorderProfiles>
<EncoderOutputFileFormat name="3gp" />
<EncoderOutputFileFormat name="mp4" />
<!--
If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled
-->
<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="10000000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="h263" enabled="true"
minBitRate="64000" maxBitRate="6000000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="64000" maxBitRate="10000000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="30" />
<AudioEncoderCap name="amrnb" enabled="true"
minBitRate="5525" maxBitRate="23450"
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
<AudioEncoderCap name="aac" enabled="true"
minBitRate="5525" maxBitRate="62900"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="1" />
<!--
FIXME:
We do not check decoder capabilities at present
At present, we only check whether windows media is visible
for TEST applications. For other applications, we do
not perform any checks at all.
-->
<VideoDecoderCap name="wmv" enabled="true"/>
<AudioDecoderCap name="wma" enabled="true"/>
</MediaSettings>
Old>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE MediaSettings [
<!ELEMENT MediaSettings (CamcorderProfiles,
EncoderOutputFileFormat+,
VideoEncoderCap+,
AudioEncoderCap+,
VideoDecoderCap,
AudioDecoderCap)>
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
<!ELEMENT EncoderProfile (Video, Audio)>
<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
<!ELEMENT Video EMPTY>
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
<!ATTLIST Video bitRate CDATA #REQUIRED>
<!ATTLIST Video width CDATA #REQUIRED>
<!ATTLIST Video height CDATA #REQUIRED>
<!ATTLIST Video frameRate CDATA #REQUIRED>
<!ELEMENT Audio EMPTY>
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
<!ATTLIST Audio bitRate CDATA #REQUIRED>
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
<!ATTLIST Audio channels (1|2) #REQUIRED>
<!ELEMENT ImageEncoding EMPTY>
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
<!ELEMENT ImageDecoding EMPTY>
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
<!ELEMENT Camera EMPTY>
<!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
<!ELEMENT EncoderOutputFileFormat EMPTY>
<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
<!ELEMENT VideoEncoderCap EMPTY>
<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
<!ELEMENT AudioEncoderCap EMPTY>
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
<!ELEMENT VideoDecoderCap EMPTY>
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
<!ELEMENT AudioDecoderCap EMPTY>
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
]>
<!--
This file is used to declare the multimedia profiles and capabilities
on an android-powered device.
-->
<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<CamcorderProfiles>
<EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="m4v"
bitRate="1600000"
width="640"
height="480"
frameRate="24" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="m4v"
bitRate="161000"
width="176"
height="144"
frameRate="15" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
<Camera previewFrameRate="0" />
</CamcorderProfiles>
<EncoderOutputFileFormat name="3gp" />
<EncoderOutputFileFormat name="mp4" />
<!--
If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled
-->
<VideoEncoderCap name="h264" enabled="true"
minBitRate="96100" maxBitRate="1600000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="15" />
<VideoEncoderCap name="h263" enabled="true"
minBitRate="96100" maxBitRate="1600000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="96100" maxBitRate="1600000"
minFrameWidth="176" maxFrameWidth="640"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
<AudioEncoderCap name="amrnb" enabled="true"
minBitRate="5525" maxBitRate="23450"
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
<AudioEncoderCap name="aac" enabled="true"
minBitRate="5525" maxBitRate="62900"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="1" />
<!--
FIXME:
We do not check decoder capabilities at present
At present, we only check whether windows media is visible
for TEST applications. For other applications, we do
not perform any checks at all.
-->
<VideoDecoderCap name="wmv" enabled="true"/>
<AudioDecoderCap name="wma" enabled="true"/>
</MediaSettings>
or
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE MediaSettings [
<!ELEMENT MediaSettings (CamcorderProfiles,
EncoderOutputFileFormat+,
VideoEncoderCap+,
AudioEncoderCap+,
VideoDecoderCap,
AudioDecoderCap)>
<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
<!ELEMENT EncoderProfile (Video, Audio)>
<!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
<!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
<!ELEMENT Video EMPTY>
<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
<!ATTLIST Video bitRate CDATA #REQUIRED>
<!ATTLIST Video width CDATA #REQUIRED>
<!ATTLIST Video height CDATA #REQUIRED>
<!ATTLIST Video frameRate CDATA #REQUIRED>
<!ELEMENT Audio EMPTY>
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
<!ATTLIST Audio bitRate CDATA #REQUIRED>
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
<!ATTLIST Audio channels (1|2) #REQUIRED>
<!ELEMENT ImageEncoding EMPTY>
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
<!ELEMENT ImageDecoding EMPTY>
<!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
<!ELEMENT Camera EMPTY>
<!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
<!ELEMENT EncoderOutputFileFormat EMPTY>
<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
<!ELEMENT VideoEncoderCap EMPTY>
<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
<!ELEMENT AudioEncoderCap EMPTY>
<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
<!ELEMENT VideoDecoderCap EMPTY>
<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
<!ELEMENT AudioDecoderCap EMPTY>
<!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
]>
<!--
This file is used to declare the multimedia profiles and capabilities
on an android-powered device.
-->
<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<CamcorderProfiles>
<EncoderProfile quality="high" fileFormat="3gp" duration="60">
<Video codec="m4v"
bitRate="3078000"
width="640"
height="480"
frameRate="30" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="m4v"
bitRate="161000"
width="176"
height="144"
frameRate="15" />
<Audio codec="amrnb"
bitRate="23450"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
<Camera previewFrameRate="0" />
</CamcorderProfiles>
<EncoderOutputFileFormat name="3gp" />
<EncoderOutputFileFormat name="mp4" />
<!--
If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled
-->
<VideoEncoderCap name="h264" enabled="true"
minBitRate="96100" maxBitRate="12000000"
minFrameWidth="176" maxFrameWidth="320"
minFrameHeight="144" maxFrameHeight="240"
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="h263" enabled="true"
minBitRate="96100" maxBitRate="12000000"
minFrameWidth="176" maxFrameWidth="320"
minFrameHeight="144" maxFrameHeight="240"
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="96100" maxBitRate="12000000"
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="1" maxFrameRate="30" />
<AudioEncoderCap name="amrnb" enabled="true"
minBitRate="5525" maxBitRate="23450"
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
<AudioEncoderCap name="aac" enabled="true"
minBitRate="5525" maxBitRate="62900"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="1" />
<!--
FIXME:
We do not check decoder capabilities at present
At present, we only check whether windows media is visible
for TEST applications. For other applications, we do
not perform any checks at all.
-->
<VideoDecoderCap name="wmv" enabled="false"/>
<AudioDecoderCap name="wma" enabled="false"/>
</MediaSettings>
This modification to the operation, restart the phone.
NOTE: If someone independently edited or added anything to the file it is possible that after restarting our mini will be hung on a string :/ android
Rather not recommend using this mod and use at the same time high-OC (which can cause various types of anomalies in a third image is of a different color, brightness)
Maybe someone more optimize the recording!?
its better to use lg camera app from android market to record 480p videos
Can i use these on stock rom ?
I do not know. The first would have to know how to look at stockrom.
I test only CM 7.2.
I edited the file so I do not use LGCamera , but now I can us codec h.263 and h264 and recorded in 640x480
Related
so, i was looking at the content of the frf85b update zip, and inside of system/etc/media_profiles.xml i found this :
(...)
<!ELEMENT Audio EMPTY>
<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
<!ATTLIST Audio bitRate CDATA #REQUIRED>
<!ATTLIST Audio sampleRate CDATA #REQUIRED>
<!ATTLIST Audio channels (1|2) #REQUIRED>
(...)
<!--
This file is used to declare the multimedia profiles and capabilities
on an android-powered device.
-->
<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<CamcorderProfiles>
<EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="3000000"
width="720"
height="480"
frameRate="24" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
(...)
<!--
If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled
-->
<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="3000000"
minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
<VideoEncoderCap name="h263" enabled="true"
minBitRate="64000" maxBitRate="1000000"
minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="64000" maxBitRate="2000000"
minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="24" />
<AudioEncoderCap name="amrnb" enabled="true"
minBitRate="5525" maxBitRate="12200"
minSampleRate="8000" maxSampleRate="8000"
minChannels="1" maxChannels="1" />
(...)
i'm not a dev, so i ask : we just need to change this
<EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="3000000"
width="720"
height="480"
frameRate="24" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
to this
<EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="3000000"
width="720"
height="480"
frameRate="24" />
<Audio codec="aac"
bitRate="xxxxx"
sampleRate="yyyyy"
channels="z" />
</EncoderProfile>
and maybe add this lines to the bottom of the file :
<AudioEncoderCap name="aac" enabled="true"
minBitRate="xxxx" maxBitRate="xxxxx"
minSampleRate="yyyy" maxSampleRate="yyyyy"
minChannels="z" maxChannels="z" />
to enable aac codec when recording video ? please tell me that it's so simple !
It is aac decoder not aac encoder. Doesn't do any good
[AOSP]_[Volume Boost] CM 12+ & CM 13 [L720-L720T] Modified Volume Boost Flashable zip
Modified sound files for AOSP Marshmallow 6.0.1+ Based ROMs
and for
AOSP 5.1.1 Lollipop Based
I find that the Phone Speaker and Headphone volume is way too low for my preference so, I made flasable.zips of my modded sound files for CyanogenMod Nightys so I didn't have to copy and paste my custom file every time I flashed a new nightly.
I only run CyanogenMod so its only tested in CM but It should work in any AOSP Marshmallow or Lollipop ROM unless the file structure is different than CM.
The sound files are different now for CM Lollipop and CM Marshmallow so I've provided both
For Lollipop:
Sound File is located in:
/system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3
For Marshmallow:
It's located in:
/system/etc/mixer_paths.xml
Warning:
If the file structure does not have the same path then flashing this will break things
What is changed in this file?
Lollipop
Code:
SectionDevice
Name "Speaker"
Comment "Speaker Rx device"
EnableSequence
'SLIM_0_RX Channels':0:Two
'RX5 MIX1 INP1':0:RX1
'RX5 MIX1 INP2':0:RX2
'RX6 DSM MUX':0:DSM_INV
'LINEOUT2 Volume':1:83
'LINEOUT4 Volume':1:83
'RX5 Digital Volume':2:[COLOR="red"]69.5[/COLOR]%
EndSequence
DisableSequence
'RX5 MIX1 INP1':0:ZERO
'RX5 MIX1 INP2':0:ZERO
'LINEOUT2 Volume':1:0
'LINEOUT4 Volume':1:0
'RX5 Digital Volume':1:0
EndSequence
ACDBID 15:1
EffectsMixerCTL "SRS TruMedia"
EC_REF_RXMixerCTL "SLIM_RX"
EndSection
SectionDevice
Name "Speaker Extra Gain"
Comment "Speaker Extra Gain Rx device"
EnableSequence
'SLIM_0_RX Channels':0:eek:ne
'RX5 MIX1 INP1':0:RX1
'RX5 MIX1 INP2':0:RX6
'RX6 DSM MUX':0:DSM_INV
'LINEOUT2 Volume':1:100
'LINEOUT4 Volume':1:100
'RX5 Digital Volume':2:[COLOR="red"]67.7[/COLOR]%
'ES325 RX2 Enable':1:1
EndSequence
AND
SectionDevice
Name "Headphones"
Comment "Headset Rx device"
EnableSequence
'SLIM_0_RX Channels':0:Two
'RX1 MIX1 INP1':0:RX1
'RX2 MIX1 INP1':0:RX2
'HPHL DAC Switch':1:1
'HPHR DAC Switch':1:1
'HPHL Volume':1:100
'HPHR Volume':1:100
'RX1 Digital Volume':2:[COLOR="red"]70[/COLOR]%
'RX2 Digital Volume':2:[COLOR="red"]70[/COLOR]%
'COMP1 Switch':1:1
EndSequence
Marshmallow:
Code:
<path name="speaker">
<path name="spk" />
<ctl name="LINEOUT2 Volume" value="8" />
<ctl name="LINEOUT4 Volume" value="8" />
<ctl name="RX5 Digital Volume" value="[COLOR="red"]84[/COLOR]" />
</path>
&
<path name="headphones">
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX2 MIX1 INP1" value="RX2" />
<ctl name="HPHL DAC Switch" value="1" />
<ctl name="HPHR DAC Switch" value="1" />
<ctl name="HPHL Volume" value="12" />
<ctl name="HPHR Volume" value="12" />
<ctl name="RX1 Digital Volume" value="[COLOR="red"]82[/COLOR]" />
<ctl name="RX2 Digital Volume" value="[COLOR="red"]82[/COLOR]" />
</path>
If you have suggestions or you have found an issue please post below.
Downloads
AOSP_MM_sound-boost.zip
AOSP_LP_sound-boost.zip
build.prop Tweaks For J7
The best build.prop tweak for J7 15
How to apply Tweaks :
1. Root your device and install Root Explorer (or any root file manager) then find build.prop located at root/system/build.prop
2. U can Use Root Explorer app or notepad++ to edit your build.prop
3. Open build.prop file with Text editor and Find last line of build.prop
2. Copy all of these lines just below the last line
3. Save the changes and set the permissions to rw-r-r (Remmeber to do that !)
4. Reboot and enjoy
Supreme Battery life (even more in idle)
- Better internet browsing & download speed (updated)
- Smoother experience
- Google DNS
- Better Microphone
- More Ram
- Better signal reception
- Wireless Tweaks
- Smoother video streaming and tweak media
- Faster Boot-Animation FPS (Just compare)
- Better call voice quality
- Game tweaks
- 3G Tweaks (NEW 2016)
- Indicator Hack(NEW 2016)
- Qualcomm Tweaks
******************************************************************************************************************
#ADD
mot.proximity.delay=25
pm.sleep_mode=1
ro.config.nocheckin=1
ro.lge.proximity.delay=25
# Better Responsiveness & Speed
windowsmgr.max_events_per_sec=90
ro.max.fling_velocity=15000
ro.min.fling_velocity=8000
touch.pressure.scale=0.1
# More RAM
persist.sys.purgeable_assets=1
persist.service.pcsync.enable=0
persist.service.lgospd.enable=0
#Hardware Power Saving
ro.config.hw_power_saving=true
#Disable Miscellaneous Android Logging Stuff
debugtool.anrhistory=0
profiler.debugmonitor=false
profiler.launch=false
profiler.hung.dumpdobugreport=false
#Enable ADB Debugging By Default & Disable USB Debugging Popup
persist.adb.notify=0
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
#Disable Logers
ro.config.htc.nocheckin=1
ro.config.nocheckin=1
#Disable Kernel Error Checking
ro.kernel.android.checkjni=0
ro.kernel.checkjni=0
# Other Tweaks:
ro.config.combined_signal=true
#DHA tunning
ro.config.dha_tunnable=1
#Disable Strict Mode Checking
persist.android.strictmode=0
#Better signal reception
persist.cust.tel.eons=1
ro.config.hw_fast_dormancy=1
#For Sensor Sleep Control
ro.ril.sensor.sleep.control=1
#Faster Boot-Animation FPS
boot.fps=20
#Enable Quick Power-On Mode To Reduce Boot-Time
ro.config.hw_quickpoweron=true
persist.sys.shutdown.mode=hibernate
#Disable Scrolling Cache For Faster Scrolling
persist.sys.scrollingcache=3
ro.securestorage.knox=false
# Video Acceleration Enabled And HW debugging
debug.performance.tuning=1
# Dialing Tweaks
ro.telephony.call_ring.delay=0
ro.lge.proximity.delay=25
mot.proximity.delay=25
# Smoother video streaming and tweak media
media.stagefright.enable-meta=true
media.stagefright.enable-record=false
# Increase camera's photo and video recording quality
ro.media.dec.aud.wma.enabled=1
ro.media.dec.vid.wmv.enabled=1
# Support For IPV4 and IPV6
persist.telephony.support.ipv6=1
persist.telephony.support.ipv4=1
# Better image quality, lower performance.
persist.sys.use_dithering=1
# Better call voice quality.
ro.ril.enable.amr.wideband=1
debug.enabletr=true
debug.overlayui.enable=1
debug.qctwa.preservebuf=1
hw3d.force=1
ro.config.disable.hw_accel=false
ro.fb.mode=1
ro.sf.compbypass.enable=0
ro.vold.umsdirtyratio=20
persist.sys.composition.type=c2d
persist.sys.ui.hw=1
# System prop to select MPQAudioPlayer by default on mpq8064
mpq.audio.decode=true
# Better Scrolling responsiveness and speed
ro.min_pointer_dur=1
# Miscellaneous Tweaks for performance
ro.config.hw_menu_unlockscreen=false
ro.mot.eri.losalert.delay=1000
ro.telephony.sms_segment_size=160
# Hardware 2D & 3D Rendering
hw2d.force=1
# 3d performance
ro.secure=0
# Other Tweaks
ro.config.hw_new_wifitopdp=1
vm.dirty_ratio=90
vm.dirty_background_ratio=70
vm.vfs_cache_pressure=10
vm.min_free_kbytes=4096
#Minimum brightness of your screen
ro.lcd_min_brightness=1
# System Tweaks
ro.HOME_APP_ADJ=1
# Qualcomm Tweaks
debug.qctwa.statusbar=1
debug.qc.hardware=true
com.qc.hardware=true
debug.qctwa.preservebuf=1
# Disables data sent and logging
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
# DalvikVM
dalvik.vm.verify-bytecode=false
dalvik.vm.execution-mode=int:fast
dalvik.vm.checkjni=false
dalvik.vm.dexopt-data-only=1
dalvik.vm.lockprof.threshold=250
dalvik.vm.dexopt-flags=m=y
dalvik.vm.jmiopts=forcecopy
# Performance
debug.kill_allocating_task=0
force_hw_ui=true
ro.debuggable=1
# Saves some battery without reducing performances
power.saving.mode=1
# Battery save
ro.ril.disable.power.collapse=0
ro.ril.power_collapse=1
power_supply.wakeup=enable
profiler.force_disable_ulog=true
profiler.force_disable_err_rpt=true
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
# Increase some Performance
ro.product.gpu.driver=1
ENFORCE_PROCESS_LIMIT=false
ro.wmt.blcr.enable=0
# Bass audio props for Lolipop
tunnel.decode=false
persist.sys.media.use-awesome=1
sys.keep_app_1=com.bel.android.dspmanager
ro.audio.samplerate=48000
ro.audio.pcm.samplerate=48000
af.resample=52000
# Game tweaks
persist.sys.NV_FPSLIMIT=60
persist.sys.NV_POWERMODE=1
persist.sys.NV_PROFVER=15
persist.sys.NV_STEREOCTRL=0
persist.sys.NV_STEREOSEPCHG=0
persist.sys.NV_STEREOSEP=20
# Increase jpg quality to 100%
ro.media.enc.jpeg.quality=100
# Force GPU Rendering on 2d Operations
debug.sf.hw=1
debug.egl.profiler=1
debug.egl.hw=1
#NEW
ro.ril.power_collapse=1
pm.sleep_mode=1
wifi.supplicant_scan_interval=180
power.saving.mode=1
ro.com.google.networklocation=0
ro.kernel.android.checkjni=0
ro.config.nocheckin=1
dalvik.vm.checkjni=false
dalvik.vm.execution-mode=int:jit
profiler.force_disable_err_rpt=1
# Increase jpg quality to 100%
ro.media.enc.jpeg.quality=100
debug.performance.tuning=1
persist.sys.use_dithering=0
persist.sys.use_16bpp_alpha=1
ro.min.fling_velocity=8000
ro.mot.eri.losalert.delay=1000
persist.sys.NV_FPSLIMIT=60
persist.sys.NV_POWERMODE=1
persist.sys.NV_PROFVER=15
persist.sys.NV_STEREOCTRL=0
persist.sys.NV_STEREOSEPCHG=0
persist.sys.NV_STEREOSEP=20
persist.sys.purgeable_assets=1
ro.telephony.call_ring.delay=0
debug.composition.type=c2d
persist.sys.composition.type=c2d
debug.enabletr=true
debug.overlayui.enable=1
debug.qctwa.preservebuf=1
dev.pm.dyn_samplingrate=1
ro.fb.mode=1
ro.sf.compbypass.enable=0
hw3d.force=1
ro.product.gpu.driver=1
persist.sampling_profiler=0
hwui.render_dirty_regions=false
persist.sampling_profiler=0
persist.sys.ui.hw=1
ro.config.disable.hw_accel=false
video.accelerate.hw=1
debug.egl.profiler=1
debug.egl.hw=1
ro.vold.umsdirtyratio=20
hwui.disable_vsync=true
persist.service.lgospd.enable=0
persist.service.pcsync.enable=0
touch.pressure.scale=0.001
windowsmgr.max_events_per_sec=200
ro.min_pointer_dur=8
ro.max.fling_velocity=12000
ro.min.fling_velocity=8000
net.dns1=8.8.8.8
net.dns2=8.8.4.4
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.gprs.dns1=8.8.8.8
net.gprs.dns2=8.8.4.4
net.ppp0.dns1=8.8.8.8
net.ppp0.dns2=8.8.4.4
net.wlan0.dns1=8.8.8.8
net.wlan0.dns2=8.8.4.4
net.eth0.dns1=8.8.8.8
net.eth0.dns2=8.8.4.4
#3G tweaks [skip if it causes any performance drop]
ro.ril.hsxpa=2
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=28
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.gprsclass=12
ro.ril.hsupa.category=7
ro.ril.enable.a52=1
ro.ril.set.mtu1472=1
persist.cust.tel.eons=1
net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.lte=524288,1048576,2097152,5242 88,1048576,2097152
net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,8 7380,1048576
net.tcp.buffersize.hspa=6144,87380,524288,6144,163 84,262144
net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.evdo_b=6144,87380,1048576,6144, 87380,1048576
media.stagefright.enable-http=true
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=true
media.stagefright.enable-scan=true
media.stagefright.enable-record=true
#Indicator_Hack
captive_portal_detection_enabled=0
dalvik.vm.dex2oat-filter=interpret-only
dalvik.vm.image-dex2oat-filter=speed
************************************************************************************************************
Remember to set the permission to rw-r-r after editing ( If you don't do it your device gonna brick)
Technically it has to be compatible with any phone running Android OS but I am not responsible for any damage or UI FC
Please always pay attention to risk of soft bricking
If something goes wrong use your backup build.prop to get the default settings
Project by @adblocker at [xda-developers.com]
#ENJOY :good:
Does it work for your phone ? tell me ( in details )
lakamel said:
Does it work for your phone ? tell me ( in details )
Click to expand...
Click to collapse
Is this restricted just for j7???
hackerboy ~AP said:
Is this restricted just for j7???
Click to expand...
Click to collapse
Tested and pm
You can also get a build prop editor from the play store. Some have these tweaks already built it and give you the option to backup your current build prop.
sent from this device using this app....
More than half of these settings are not even in the rom, are for motorola, htc or old versions of android. Please do some research before posting
tweakradje said:
More than half of these settings are not even in the rom, are for motorola, htc or old versions of android. Please do some research before posting
Click to expand...
Click to collapse
Thank you for your continuous search advice from your butt .... Let the knowledge that most of the build tweek now use in the creation of Rohm and we are in 2017, such as dns ... This work is not for me ... and it is set for a workout just told me if I tried, and if he can take advantage them .... this very best to use the pick ... but not in the knowledge that the build file has a big role Thank you my brother ... so far tweek of assayed is the best
Brother should i put 3g tweaks in my j700f (4g) phone?
I m currently using custom LP rom by @Pavan l
process to increase the headphone volume of the LG G5 h850 with oreo can be used in other variants, but it is not tested, it is not responsible for damage to the device, tested and works perfectly.
First go with any folder manager, and needed root, I used root explorer, go to root / vendor / etc folder. Then open the mixer_paths_tasha.xml file.
And look for this line:
***<path name = "headphones">
********<ctl name = "RX HPH Mode" value = "CLS_H_LP" />
********<ctl name = "SLIM RX2 MUX" value = "AIF4_PB" />
********<ctl name = "SLIM RX3 MUX" value = "AIF4_PB" />
********<ctl name = "SLIM_6_RX Channels" value = "Two" />
********<ctl name = "RX INT1_2 MUX" value = "RX2" />
********<ctl name = "RX INT2_2 MUX" value = "RX3" />
********<ctl name = "RX INT1 DEM MUX" value = "CLSH_DSM_OUT" />
********<ctl name = "RX INT2 DEM MUX" value = "CLSH_DSM_OUT" />
********<ctl name = "RX1 Mix Digital Volume" value = "87" />
********<ctl name = "RX2 Mix Digital Volume" value = "87" />
********<ctl name = "HPHL Volume" value = "20" />
********<ctl name = "HPHR Volume" value = "20" />
****</ path>
Just replace the 75 of the RX1 Mix Digital Volume by 87 doing the same thing on the RX2
You can increase more, but it will distort that was the highest volume I got without distortion.
On LG G2, it didn't work... anyone who tried on G5? It works?
Is their a way to boost bluetooth audio? Headphone works
Sent from my [device_name] using XDA-Developers Legacy app
coool! what about main speaker ? and earphone?
Amazing... I'ts work bro. Good job. I did't need to installing dolby. Combining Viper and your trick, my h850 wow... Amazing.
Unimo said:
Amazing... I'ts work bro. Good job. I did't need to installing dolby. Combining Viper and your trick, my h850 wow... Amazing.
Click to expand...
Click to collapse
Hello,
can you share the viper .zip, please?
Thanks.
search on the forum, viper from guitardedhero share, ViPER4Android_2.5.0.5_guitardedhero.zip, work on me, no magisk, just twrp and supersu.
Did someone got this magisk Volumefix Mod working?
And I also found this Dual speaker mod for Oreo.
-----ENABLE DUAL SPEAKER IN REALME G90T,G95 SERIES_(REALME6,REALME7,NARZO 20 PRO)------
------ENABLES EARPICE AS A SECONDARY SPEAKER [BUT THE VOLUME FROM EARPICE IS LOW COMPARED TO BOTTOM SPEAKER DUE TO HARDWARE LIMITATIONS]------
----------PLEASE READ CAREFULLY BEFORE FLASHING THIS [MAGISK MODULE]-----------
-----REQUIRMENTS-----
1. MAGISK INSTALLED (v18 above)
2. WORKS ON BOTH [RUI 1.0/2.0] AND OTHER [A.O.S.P ROMS]
3. REMOVE "ALL OTHER SOUND MOD" BEFORE INSTALLING THIS (MODULE) OTHERWISE IT MAY CONFLICT WITH OTHER MODULES.
4. DON'T USE "audio_modification_libary" AND "audio_compatibility_patch" WITH THIS MODULE.
5. DON'T USE [DOLBY_ATMOS_MODULE] WHICH REQUIRED "audio_modification_libary" TO WORK.
THERE ARE FEW DOLBY_ATMOS_MODULE(e.g dolby atmos module imported from 'ZTE AXON' AND 'RAZER PHONE' WHICH DOES'T REQUIRED "audio_modification_libary" TO WORK)
6. YOUR BRAIN AND SOME COMMON SENSE
--------PROCESS--------[METHOD]
1. DOWNLOAD THE "duel speaker mod realme.zip" (size 11.1 Kb)
2. REMOVE ALL OTHER SOUND MOD I REPEAT REMOVE ALL OTHER MOD
3. FLASH THE "duel speaker mod realme.zip" IN MODULE SECTION OF MAGISK AND REBOOT.
...THATS IT..----NOW YOUR EARPICE WILL WORK AS A SECONDARY SPEAKER BUT THE DIFFERENCE CAN BE ONLY HEARED ON 80% ABOVE VOLUME
...FOR TESTING WEATHER IT'S WORKING OR NOT TRY PLAYING A SONG AND MAXOUT THE VOLUME ABOVE 80% AND COVER THE BOTTOM LOUDSPEAKER WITH FINGER...NOW LISTEN THROUGH THE EARPICE..I'M SURE YOU WILL BE ABLE TO HEAR IT
---------[ADDITIONAL/ OPTIONAL]-----------
------THIS IS AN OPTIONAL ONE-----
IF YOU WANT YOUR SOUND TO BE CLEAR AND OPTIMISED THEN YOU CAN FLASH NL-SOUND MEDIATEK DRIVERS AFTER FLASHING THE DUEL SPEAKER MAGISK MODULE
THESE MEDIATEK DRIVERS WILL ONLY WORK FOR ANY MEDIATEK BASED ANDROID DEVICE NOT FOR QUALCOM
SOURCE CODE AND PROCESS TO BUILD THE MOD
I HAVE PROVIDED THE FILE NAMED AS "audio_device.xml" WHICH I HAVE MODIFIED TO ENABLE EARPICE AS A SECONDARY SPEAKER ANYONE CAN DOWNLOAD THE FILE OR EXTRACT FROM THE dual speaker realme.zip AND MODIFIED IT ACCORDING TO THEIR OWN TASTE AND REPACK IT TO ZIP AND USE IT...
UNLIKE QUALCOM AND EXYNOS WHICH USES mixer_path.xml FILE TO DEFINE THE PATH AND AUDIO PLAYBACK CHANELS, HERE MEDIATEK USES ANOTHER FILE NAMED AS audio_device.xml WHICH IS LOCATED IN /system/vendor/etc/audio_device.xml
"RCV"means RECIEVER
"SPK" means SPEAKER
I ADD A LINE IN EXTERNAL_SPEAKER OUTPUT SECTION
i.e kctl name="Ext_Reciver_Amp Switch" value="1" />
1 means turn on and 0 means turn off
THIS COMMAND FORCE THE EARPICE TO ACT AS A SECOND PATH WAY FOR AUDIO OUTPUT CHANEL
YOU NEED TO ADD AN TURN ON AND TURN OFF COMMAND IN EACH COMMAND
EXAMPLE-
<!--external_speaker output-->
<path name="ext_speaker_output" value="turnon">
<kctl name="Ext_Speaker_Amp Switch" value="1" />
<kctl name="Ext_Reciver_Amp Switch" value="1" /> (turn on command)
</path>
<path name="ext_speaker_output" value="turnoff">
<kctl name="Ext_Speaker_Amp Switch" value="0" />
<kctl name="Ext_Reciver_Amp Switch" value="0" /> (turn off command)
NOW,
YOU NEED TO DEFINE LEFT AND RIGHT CHANELN [ EARPICE IS ALWAYS DEFINED AS LEFT CHANEL]
YOU NEED TO ADD THIS LINES IN EXTERNAL_SPEAKER OUTPUT SECTION
<!--external_speaker output left-->
<path name="ext_speaker_output_left" value="turnon"> (defines left out put turn on)
<kctl name="Ext_Speaker_Amp Switch" value="0" /> (left chanel off for spk)
<kctl name="Ext_Reciver_Amp Switch" value="1" /> (left chanel on for rcv)
</path>
<path name="ext_speaker_output_left" value="turnoff"> (defines left out put turn off)
<kctl name="Ext_Speaker_Amp Switch" value="0" /> (left chanel off for spk)
<kctl name="Ext_Reciver_Amp Switch" value="0" /> (left chanel off for spk)
</path>
<!--external_speaker output right-->
<path name="ext_speaker_output_right" value="turnon">
<kctl name="Ext_Speaker_Amp Switch" value="1" />
<kctl name="Ext_Reciver_Amp Switch" value="0" />
</path>
<path name="ext_speaker_output_right" value="turnoff">
<kctl name="Ext_Speaker_Amp Switch" value="0" />
<kctl name="Ext_Reciver_Amp Switch" value="0" />
THE OVERALL WILL LOOK LIKETHIS
<!--external_speaker output-->
<path name="ext_speaker_output" value="turnon">
<kctl name="Ext_Speaker_Amp Switch" value="1" />
<kctl name="Ext_Reciver_Amp Switch" value="1" />
</path>
<path name="ext_speaker_output" value="turnoff">
<kctl name="Ext_Speaker_Amp Switch" value="0" />
<kctl name="Ext_Reciver_Amp Switch" value="0" />
</path>
<!--external_speaker output left-->
<path name="ext_speaker_output_left" value="turnon">
<kctl name="Ext_Speaker_Amp Switch" value="0" />
<kctl name="Ext_Reciver_Amp Switch" value="1" />
</path>
<path name="ext_speaker_output_left" value="turnoff">
<kctl name="Ext_Speaker_Amp Switch" value="0" />
<kctl name="Ext_Reciver_Amp Switch" value="0" />
</path>
<!--external_speaker output right-->
<path name="ext_speaker_output_right" value="turnon">
<kctl name="Ext_Speaker_Amp Switch" value="1" />
<kctl name="Ext_Reciver_Amp Switch" value="0" />
</path>
<path name="ext_speaker_output_right" value="turnoff">
<kctl name="Ext_Speaker_Amp Switch" value="0" />
<kctl name="Ext_Reciver_Amp Switch" value="0" />
</path>
AGAIN,
<!--receiver output-->
<path name="receiver_output" value="turnon">
<kctl name="RCV_AMP_MODE" value="RECIEVER_MODE" /> (defines RCV as RCV) CALLS
<kctl name="DAC In Mux" value="Normal Path" />
<kctl name="RCV Mux" value="Voice Playback" />
<kctl name="Ext_Reciver_Amp Switch" value="1" />
</path>
<path name="receiver_output" value="turnoff">
<kctl name="RCV Mux" value="Open" />
<kctl name="Ext_Reciver_Amp Switch" value="0" />
<kctl name="RCV_AMP_MODE" value="SPEAKER_MODE" /> (defines RCV as SPK) MUSIC
</path>
NOW,
COPY AND PASTE THIS LINE IN <!-- 2-in-1 speaker output-->
<!-- 2-in-1 speaker output-->
<path name="two_in_one_speaker_output" value="turnon">
<kctl name="RCV_AMP_MODE" value="RECIEVER_MODE" />
<kctl name="DAC In Mux" value="Normal Path" />
<kctl name="RCV Mux" value="Voice Playback" />
<kctl name="Ext_Reciver_Amp Switch" value="1" />
</path>
<path name="two_in_one_speaker_output" value="turnoff">
<kctl name="Ext_Reciver_Amp Switch" value="0" />
<kctl name="RCV Mux" value="Open" />
<kctl name="RCV_AMP_MODE" value="SPEAKER_MODE" />
</path>
I AM NOT RESPONSIBLE FOR ANY DAMAGE
Can you tell me how did you learned editing those files? it's very nice modifcation, I wish it was avalible for realme 6 pro, I'm currently working on it, but I got no luck as there is no tutorial that really give any helpful information, and mostly tutorials are outdated and won't work with todays device
would you give a look on this realme 6 pro mixerpaths.xml attached