lundi 2 février 2015

Flashable file to change build.prop values topic






Hi!
So I'm having this weird microphone issue with my OnePlus One where people can only hear me if I turn on the speakerphone.
I found a way to fix it, but I need to do it every time I flash a new rom. Since I'm currently testing the CM nightlies, that means almost everyday!

I was thinking about a flashable .zip file that changes the values for me. Is this possible? Is it complicated? Do we have any tool/app for this?
The details are below, but the files that need to be adjusted are build.prop, audio_platform_info.xml, and mixer_paths.xml+

Thanks!

Step by step:

/system/build.prop. Change
ro.qc.sdk.audio.fluencetype=fluence
to
ro.qc.sdk.audio.fluencetype=none
Then, edit /system/etc/audio_platform_info.xml
<device name="SND_DEVICE_IN_HANDSET_MIC" acdb_id="40" />
to
<device name="SND_DEVICE_IN_HANDSET_MIC" acdb_id="4" />

And also....

1. Go to system/etc/mixer_paths.xml
2. Mount system as R/W
3. Open up mixer_paths.xml with Text Editor
4. Scroll close to the bottom of the text, your little scroll position indicator should be about an inch up from the bottom of your screen(no on screen buttons)
5. You will see <!-- Analog input devices --> and a bunch of text underneath.
6. I wasn't entirely sure which mic would make this work so I changed the <path name+"main-mic"> value from 84 to 110
7. Save the changed mixer_paths.xml and reboot your device for good measure






Aucun commentaire:

Enregistrer un commentaire