[Huawei Ideos X5 U8800] ksatta:
I'm not responsible in any way if your phone disappears in a cloud of smoke and turns into an iPhone, or if something else catastrophic happens.

Thanks

- genokolar

- dzo

- stockwell

- franciscofranco

- TomGiordano @ github

- bukington @ github

Sorry if I forgot someone.

Changelog

Dec19

- Fixed default CPU max clock to 806Mhz. I'm extremely sorry about that bug :(

- some bluetooth changes from dzo's config.

Description

Should work with official 2.3 betas for U8800, maybe also geno's ICS. Don't know if it works with this compilation config on U8800Pro.

This is based on 2.6.35 kernel source for U8800Pro from huaweidevice.com with the following changes:

- dzo's fixes for u8800 (https://github.com/dzo/kernel_huawei/commits/2.6.35)

- The phone's mic is forced when headphones/etc are plugged in. So for example if you connect the phone to your car stereo via the headphone-jack, and make a phone call, you can hear the other person from the car's speakers and the phone's mic works as the mic. Stock Huawei kernels disable the phone's mic when anything is plugged into the headphone-jack.

I created two different versions for now, one with the force mic on, one with it off. If people want to test this otherwise, and not use the mic force mod.

Installation

1. Take a backup first somehow. This changes the boot.img. I recommed doing a full backup of your phone with the "dd" method (http://xdaforums.com/showthread.php?t=1374511). This is always a good idea before trying anything after-market. This mod only changes the kernel, so shouldn't mess up the phone more than just the boot.img. To quickly go back to the default kernel you can backup in CWM recovery before flashing this, then advanced restore / boot to go back to the old kernel.

2. Flash (install zip) from geno's recovery 5.0.2.7. (http://xdaforums.com/showthread.php?t=1343276)

3. Looks like 2.3 beta1 v2 atleast has some problems with dalvik cache, so just incase you can wipe cache and dalvik-cache after flashing to avoid problems. If you experience any strange behaviour, try wiping both caches first.

Details (advanced stuff)

It's possible to turn it on/off as before with "echo /.../headset_mic_swith 0/1", but not sure if that requires root or not. Also it can be controlled with stockwell's x5 settings, haven't tested that yet outside of cm7 and miui.

The speakerphone mode (with phone's own mic & speaker) seems to have echo. It might be a side-effect of using the u8800pro kernel sources, but when I briefly tested even with the official beta1 v2 u8800 kernel there was some echo. I couldn't fix it like I did before, now the dev. id that had echo before works with line-out without echo, but it has echo with speakerphone mode etc.. And the dev. id that worked in 2.2 doesn't work anymore. Requires more study. My current version doesn't change anything in the speakerphone mode.

Also looks like Huawei added some "notify client of change" etc in there, it might be possible to force the mic by trying the other stuff I tried before in the old thread. (Force the value of ...h2w_state or an app that forces it).

Looks like when you add the OC frequencies and don't define min/max in .config, the max available is used by governor as max. freq. Good to know, I won't make the same mistake again now that I know.

Sources

https://github.com/ksatta/kernel_huawei

https://raw.github.com/ksatta/kernel_huawei/2.6.35/COMPILING_AND_FLASHING.txt

Downloads

Current release is attached to this post. edit: Couldn't upload for some reason, you can get them here:

https://github.com/ksatta/kernel_hu..._19-12-2011_12-46-27-NORMAL_MODE.zip?raw=true (normal mode)

https://github.com/ksatta/kernel_hu...12-2011_13-02-14-PHONE_MIC_FORCE.zip?raw=true (phone mic force)

All releases (current and older):

https://github.com/ksatta/kernel_huawei/tree/2.6.35/build_scripts/release_zips