yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] aorth:
Fixed boot image for latest nightlies

Most of us have U8150-D devices. The problem is that these devices have several major differences in hardware, and any minor differences can cause a kernel not to boot (or headphones not to work). It's extremely confusing and frustrating for both devs AND users!

In this case I think differences in supported CPU frequencies is causing the problems in booting for some people. The overclocking patches tilal used support up to 768MHz, but I believe that is causing some devices to hang. I've just lowered the max to 672 and the kernel is now booting.

A little history on the chipset in this device, it's an MSM7225. The CPU in that chipset is clocked at 528MHz. Huawei overclocks and ships it at 600MHz. Everything past 600MHz was enabled by Stefano Viola and Francesco Gugliuzza (see the commit in my U8150 kernel repo here). The problem is that every CPU has its quirks, and some can get further than others. Not all overclock stably to the same frequency.

Edit: I've got a fixed boot.img you can flash that will work, but I'm having Internet problems... hang tight while I find a mirror which actually finishes the upload.

Edit 2: Here's a boot image which should work for you guys having problems booting on the latest nightlies (anything after ~September 25th). To flash:

Download this boot.img: http://www.mediafire.com/?livfk72509r8vgd

Shutdown your phone completely.

Reboot into bootloader mode; with your phone off and unplugged from USB:

Hold down RED, volume down, and then press power for a few seconds.

It should vibrate and then stop at the IDEOS screen.

Find and download a copy of fastboot (use your brain, google it).

Plug your phone into the computer.

Flash (use your brain, replace my name with yours):

/home/aorth/Downloads/fastboot flash boot /home/aorth/Downloads/boot.img
/home/aorth/Downloads/fastboot reboot

This boot.img contains a kernel which has a max of 672MHz, min of 30MHz, and is using the smartassV2 CPU scheduler by default. Install SetCPU or No Frills CPU Control if you wanna change something. Good luck. ;)
[Android Software/Hacking General [Developers Only]] pkwakman:
Thanks, after flashing your boot.img the phone boots up ok.
[Android Software/Hacking General [Developers Only]] Smtih:
Hmm, computer can't detect the phone as a mass storage device. Anyone else with this problem? (It sees it, but fails to find drivers)

EDIT:

Can still access the sd storage if I mount it in recovery so it's definately something weird with the rom.
[Android Software/Hacking General [Developers Only]] sdq928:
yes me too and long time
[Android Software/Hacking General [Developers Only]] I am Bored:
I get Status 7 Error in Clockworkmod recovery when trying to install new nightly, i did a wipe/factory reset as well as wipe cache

EDIT: I reflashed recovery using rom manager and now it seems to have worked

EDIT2: I have installed the new nightly and everything seems to be working fine, but my accelorometer doesn't seem to be working properly, it doesnt rotate at all, but when i untick and tick Auto-rotate screen in the display settings and then turn the phone it works for about 2 turns (to landscape and back) and then stops working again. Anyone else with this problem?
[Android Software/Hacking General [Developers Only]] kahush:
Installed latest nightly ...autorotate not working..
[Android Software/Hacking General [Developers Only]] aorth:
Yes... it's behaving strangely for sure... I just noticed as well. The only thing new in the latest nightly is the kernel (we switched to the U8160 kernel sources, which is newer, and allows multi touch, overclocking, etc to work well together).

I'll look into it (eventually). hahah.
[Android Software/Hacking General [Developers Only]] wbrambley:
Rotate working for me, GPS is smoking fast but navigation software makes the phone reboot. I'm using Navitel and Navit.
[Android Software/Hacking General [Developers Only]] aorth:
New lockscreen style in latest nightly

Not sure if tilal's nightly was built before this change merged into CM, but I just compiled from the latest CM source and noticed there's a new lockscreen style called "Ring."

Here's a video of the author demonstrating it:

[youtube]VnQzT9QyJFQ[/youtube]​
[Android Software/Hacking General [Developers Only]] lazyfai:
I just installed the nightly, with aorth's boot.img, it is running with new lock screen :p
[Android Software/Hacking General [Developers Only]] Hetfield666:
@lazyfai

any progress on headphones and power drain?
[Android Software/Hacking General [Developers Only]] ntnlzr:
i don't have power battery drain issue with the last build
[Android Software/Hacking General [Developers Only]] lazyfai:
I just fully charged the phone, will keep an eye on it. ( I will enable 3G and wifi but use juice defender as well )

And I haven't bring my headphones today, have to try it later after work.

One bug is the home key, about 60% of the time it won't show response. The other 3 keys (back, menu, search) works perfectly.
[Android Software/Hacking General [Developers Only]] wbrambley:
Ok, rotate stopped working for me too. No compass too.
[Android Software/Hacking General [Developers Only]] poruid:
Suggestion: register problems like these as issues with the respective Github repository so that changes vs problems can be tracked.
[Android Software/Hacking General [Developers Only]] aorth:
Issues, mainline, nightlies...

Yeah, I think we should cleanup and rebrand a bit, since we're going to push to get this mainlined in CM. Some ideas:

Github or google code project to track issues formally?

Change this thread's title to something more clear, like: [NIGHTLY][ROM][2.3.5] CyanogenMod 7 for Huawei U8150 [UNNOFFICIAL]

Automatic building/uploading of nightlies? I have plenty of CPU power... bandwidth might be an issue, though.

We don't want to appear to be a band of bumbling idiots! We've done a good job lately with being organized collaborating, both users and devs. Lets keep it up. :)
[Android Software/Hacking General [Developers Only]] ntnlzr:
same issue here
[Android Software/Hacking General [Developers Only]] lazyfai:
80 percents battery left after nearly 3 hours uptime, with 3G on most of the time, regular sync of facebook, twitter and gmail, occasional SMS as well.

Home and back softkeys not working well.
[Android Software/Hacking General [Developers Only]] Hetfield666:
so it sounds like a power drain in place to me...
[Android Software/Hacking General [Developers Only]] poruid:
When we use Github issues, review and pull requests become integrated into work-flow, which may be quite helpful.
[Android Software/Hacking General [Developers Only]] project2:
big problems here. i installed the latest nightly and now the u8150D hangs at the ideos screen

i wanted to install the boot.img that was posted here, but the fastboot says <waiting for device>

i even dont know if i got the right drivers for adb. i downloaded one from the internet that didnt worked, found an addition for the .inf file and it got installed and shows up in device manager, but it still says waiting for device

help please :(
[Android Software/Hacking General [Developers Only]] lazyfai:
Since some of the 8150B users and some of the 8150D users reported power drain issue when mobile data is turned on, I think there are different 3G modules being used in the phone, which makes the driver not working properly and drain extra battery...

Updated: screenshot attached, after nearly 6 hours of normal usage, 66% battery left.
[Android Software/Hacking General [Developers Only]] aorth:
Are you sure you're in bootloader mode? Pull the battery, hold those magic buttons down, and THEN plug your phone in... I only use Linux, so I can't help figure out what's wrong in Windows. Anyone?

On another note... Stop spamming the CyanogenMod code review

Guys, you need to stop spamming the CyanogenMod Gerrit. We're starting to piss them off with the useless "+1" messages. Gerrit is a CODE QUALITY review, not a popularity contest. :)

Here's the latest message from one of the CM maintainers...

---------- Post added at 03:14 PM ---------- Previous post was at 02:54 PM ----------

I don't know of anything like a 3G module... certainly not in the sense of a kernel "module." I want to look into accelerometer issues inside the kernel first.

Since we're not making progress today on CyanogenMod/Gingerbread... can I ask that you flash back to a stock Huawei ROM and try your normal usage pattern? :) I'm curious what apps you're normally using? Are you on Twitter? FB? Email? etc...
[Android Software/Hacking General [Developers Only]] Hetfield666:
regarding power usage: i can tell you that i normally have data off and 3g off, so, unless the setting is not correctly applying, it's not up to it.

and no, battery is good, because it lasts 4-5 days with fusion rom.
[Android Software/Hacking General [Developers Only]] aorth:
Renamed my CM device tree

I've just renamed my device tree on github from "ideos" to "u8150": https://github.com/alanorth/android_device_huawei_u8150

If you were following/watching/pulling from it, please make sure you adjust accordingly!

We need to stop using the name "IDEOS" as there are dozens of other IDEOS devices out there (U8120, U8160, U8180, U8220, X3, etc)! This device is the IDEOS U8150! It confuses everyone when we just call it "ideos".
[Android Software/Hacking General [Developers Only]] ntnlzr:
lol 4-5 day....sry but i can't believe.
[Android Software/Hacking General [Developers Only]] amonev:
iDEOS is only one! the U8150! :D
[Android Software/Hacking General [Developers Only]] kauhl:
Greetings.

First of all, many thanks and congratulations to the developers.

I successfully installed the nightly build yesterday on a U8150-B. At first I had problems and got stuck at boot logo, even after fastbooting Aorth's boot.img file. I was previously using the latest FusionIdeos ROM.

I managed to succeed after the following steps:

Flashed the Kenyan stock ROM (to get rid of any FusionIdeos leftovers)

Installed ROM Manager

Flashed the nightly build

Fastbooted the boot.img file

About the ROM, it's is nice and promising. So far, I can confirm that screen rotation is not working well. Home and Back buttons sometimes act up.

Also, IMO, battery usage is average and worries me a bit.
[Android Software/Hacking General [Developers Only]] aorth:
Cool, thanks for the well-structured feedback. When we get closer to pushing this to mainline CM, I might suggest that the "official" installation instructions include that you come from a stock ROM (no custom stock ROMs). There are just too many variables to take into account, and we are all doing this at night, for free, while our families are asleep ;)

So you're using my fixed boot.img on your U8150-B?
[Android Software/Hacking General [Developers Only]] kauhl:
I also can't believe it.

I've tried several CPU tweaks on Dronix and FusionIdeos, with almost everything else turned off (data, wi-fi, bluetooth, etc). I consider myself lucky when batteries last 2 and a half days.
[Android Software/Hacking General [Developers Only]] aorth:
Auto rotate is broken

Hmmmm, the switch to subpsyke's U8160 kernel sources fixed a lot of things, but the auto rotate function seems to have broken. adb logcat is littered with the following:

E/AKMD2 ( 413): compassd: Open Failed!

I'm looking into the bug... it seems the driver for the akm8973 chip changed in the new kernel sources. I've tried back porting the U8150 one, but no luck yet. Brave kernel hackers welcome... ;)

Notice the AKM8973 values are all 0 (on U8160 kernel):

On the U8150 kernel we have real values:

I've opened an issue on my github kernel repository to track the progress on this: https://github.com/alanorth/kernel_huawei_u8160/issues/1
[Android Software/Hacking General [Developers Only]] kauhl:
Hi, aorth!

Yes, I'm using your fix on my U8150-B. It is an official Brazilian retail model.

We have two U8150-B devices at home. :D The other one is an unlocked US model, bought at Newegg.

It's a great device but, as you've stated before, it can be a strange one. I ran into some trouble when I tried to flash custom ROMs on the US model. As I understand, there are some incompatibilities between some U8150 stock firmwares and ROM Manager. I read about it on this board and flashing the Kenyan stock firmware first also solved the problem.

Thanks again for the ROM. I'm a developer myself and I can imagine how much work and dedication a project like yours requires.
[Android Software/Hacking General [Developers Only]] lazyfai:
I just woke up and guess what happen? The battery is still half full, it is 15 hours already!

Before this version, even when I was sleeping, the battery drops quite constantly like 5% per hour, and it is very little now. See the screenshot.
[Android Software/Hacking General [Developers Only]] evildave_666:
Does the kernel in this not support ext4? I'm having no luck trying to get S2E working.
[Android Software/Hacking General [Developers Only]] psyke83:
I found something bizarre with my CM7 port: it doesn't need any akmd daemon running at all. I initially thought that I needed to fix akmd (the u8160 ROM has three seperate daemons: akmd2, akmd8962 and akmd8975), but it turns out that none are needed.

I suggest that you ignore the quoted error and remove the akmd service from the init script.

What you could try to do is to use the sensors.default.so from my CM7 release (i.e., the version from the Vodafone Smart stock ROM). This sensors library is compiled to detect between the three types of akmd versions, and is probably more compatible with the sensor drivers in the U8160 kernel.

---------- Post added at 02:39 AM ---------- Previous post was at 02:32 AM ----------

Oi! The U8160 is not Ideos, it's Smart ;)
[Android Software/Hacking General [Developers Only]] renbenedict:
I Can't Install the ROM....

I Can't Install the ROM.... on my (Huawei U8150 IDEOS) I Try installing it on the Two Recoveries (Clockworkmod Recovery and ULTRAJACK Recovery) but they cant install....sorry for my bad english....Thank You for Any Good Answers....with The Problem....:)
[Android Software/Hacking General [Developers Only]] f1ng3r:
ROFL :-) :-)
[Android Software/Hacking General [Developers Only]] project2:
edit: fixed my phone with ultrajack recovery. inside the zip file is a fastboot-windows.exe. i used it with the boot.img and now its working. happy :D
[Android Software/Hacking General [Developers Only]] tilal6991:
Try flashing back to stock temporarily while I write up a proper guide.
[Android Software/Hacking General [Developers Only]] project2:
its getting past the ideos screen, the android skates in and the circle rotates but nothing happens then

edit: flashed back to gingerman v7, waiting for a u8150d release from you guys ;)

thanks for helping and making such a good piece of software :)

edit 2: tried the method of flashing back to stock firmware first and then to nightly build (with extra boot.img) but it stays the same, skating android, circle rotating and nothing

maybe it helps (u8150d)
[Android Software/Hacking General [Developers Only]] aorth:
You're right... removing the akmd2 service stops the errors from spamming the logs and doesn't change the haphazard behavior of auto rotation. That is, it works once or so and then gets stuck sideways (in Email or the Browser apps, for example). I'll play with a few more combinations.

On another note, have you tried the open-source implementation of akmd? Seems source and information is a bit scattered... but check it out:

https://github.com/alankila/Junk/tree/master/akmd

http://gitorious.org/replicant/akmd_free
[Android Software/Hacking General [Developers Only]] Muru11:
Trying to boot into recovery..

I have tried to boot my phone into recovery using all the methods above, but i cant..

the phone hangs at the first screen with the ideos logo on it..takes forever!

when i paste the recovery files on the system/bin it does paste on it but when i try flashing it says file not found. plz help!
[Android Software/Hacking General [Developers Only]] project2:
before, pull out the battery, wait 5 seconds and put it in

have you tried to hold "volume up" and "green button" and then press "power on"?

this is recovery mode and should boot into clockwork recovery

volume down and red button, then power on should load the fastboot mode (which doesnt show up on the screen, the startlogo wont disappear, thats right!)
[Android Software/Hacking General [Developers Only]] aorth:
I just built a kernel from the vanilla U8150 sources (no multi touch, no overclock, no tweaks, etc), and removed the akmd2 service from init.rc... and surprise, auto rotate works fine.

I might want to start working from the ground up with the U8150 kernel rather than working backwards with the U8160 ones... at least for a test.
[Android Software/Hacking General [Developers Only]] Shank234:
I got 2 questions , can you make that the "hang off" button doesn't lock the phone, instead that it turns you back to home screen? And how to put multi touch on it, i mean i wanna play a bit pew pew hehe :). Wifi works super also the audio + its super fast. Thanks a lot but the multi touch is my primary question and only - on this rom.
[Android Software/Hacking General [Developers Only]] psyke83:
I haven't tried, because the sensors seem to work fine on the U8160. I'm still confused as to why the sensors work without any running daemon, however ;).

I believe the open-source akmd would work better with an open source libsensors implementation (some CM7 ports use one - none that I've ever used personally, though).
[Android Software/Hacking General [Developers Only]] Shank234:
**** , nmv bout the multi touch .. i got mefas screen QQ :((
[Android Software/Hacking General [Developers Only]] SyedAnique:
Thank you devs for nightly 26-09-2011.

I liked it a lot but the compass and rotation sensors are not working on U8150B.

Secondly the graphics of the phone is a little choppier. I am using smartassv2 with 600 mhz max.

I did not tested my audio jack.

By the way i was using cyanogenmod 6 before shifting to the nightly.

Would be eagerly waiting for next update. Wish you best of luck in joining the official approval from cyanogenmod team.

Thank you
[Android Software/Hacking General [Developers Only]] kauhl:
Headphone audio is not working for me. Any advice?
[Android Software/Hacking General [Developers Only]] tilal6991:
Nothing right now.
[Android Software/Hacking General [Developers Only]] tilal6991:
Just a quick notice to the community.

I would NOT flash the nightly unless you know what you are doing. I would stick on stable gingerman. If you want everything to work and your phone to be constantly stable and usable DONT USE NIGHTLIES

Thanks :)
[Android Software/Hacking General [Developers Only]] SyedAnique:
i was facing problem with flashing clockwork recovery on my phone so i did the following steps to get it:

1. Download Amon RA recovery for U8150.

2. Download clockwork recovery image http://download.clockworkmod.com/recoveries/recovery-clockwork-3.0.2.4-ideos.img

3. rename clockwork recovery to UltraJack-Recovery_v6.2.2.

4. and replace it with the original ultrajack recovery.

5. now flash it and enjoy.

---------- Post added at 08:32 PM ---------- Previous post was at 08:30 PM ----------

i love nightlies
[Android Software/Hacking General [Developers Only]] retsef:
on my u8150-D usb host storage don't wont work

sorry my bad english
[Android Software/Hacking General [Developers Only]] aorth:
That makes two of us... :)

Regarding ClockworkMod Recovery, I just noticed yesterday that our device tree actually builds a working CWM. I tried to take a screenshot of it today, it's version 5.0.23. ;) Neener neener neener!

Other than doing a nandroid (backup) I haven't played with it much. I did notice the last few times I tried to do an Advanced Restore from CWM 3.0.2.4 I got MD5 errors. Meh.
[Android Software/Hacking General [Developers Only]] retsef:
on myppc.it i fount cwm 4.0,1,4

with ext4 support

if you flash rom kenya you lost /cust partition and he cant done a backup

sorry my bad english
[Android Software/Hacking General [Developers Only]] crispybbq:
Not sure if anyone's said this yet..

Look in Spare Parts for "End Button Action" or something. Choose the action you want.
[Android Software/Hacking General [Developers Only]] tilal6991:
Yep. Recovery gets compiled every time you çompile cm7. Ill post the new build of cwm soon.
[Android Software/Hacking General [Developers Only]] Shank234:
So there is no way that melfas gets dual touch, or just no one wanna write the code? I have read on someones forum that with C it can be done :P, i know that i am boring. But this phone rocks (games etc 730mhz clocked). But missing dual touch ruins emulator gameplay :D.
[Android Software/Hacking General [Developers Only]] aorth:
Cool, I just never noticed that it was building; I was so concentrated on other issues. :) I just tried a few things on recovery 5.0.2.3; backup, flash, restore, flash, Advanced Restore. Working great actually.
[Android Software/Hacking General [Developers Only]] SyedAnique:
Nice we are going to get update recovery

---------- Post added at 11:46 PM ---------- Previous post was at 11:44 PM ----------

yes i also noted that /cust partition is lost.

but i don't what is the need for it.

Can we use that space to install more apps on phone?

---------- Post added at 11:48 PM ---------- Previous post was at 11:46 PM ----------

Lalit please update your first post so that we do not have to scroll the whole thread for updated nightlies.

Thank you
[Android Software/Hacking General [Developers Only]] crispybbq:
I second this. :P

I'm loving the latest nightly though. Aesthetically, everything seems to work now! Icons aren't painfully small, and the clock, default music player, gtalk... all those apps don't have text escaping their bounding boxes. Excellent stuff! ^_^

There was a post about someone suggesting using the U8160 code to bring back USB tethering... I like the sound of that, if it's practical of course. :P
[Android Software/Hacking General [Developers Only]] tilal6991:
Will do to above

As for USB tethering something might be happening soon. :)
[Android Software/Hacking General [Developers Only]] project2:
i tried again the nightly, but changed to the boot.img from the latest gingerman cm7 release

it still hangs at the android skater

so i think it must be another reason, because gm cm7 runs fine. any other ideas?
[Android Software/Hacking General [Developers Only]] f1ng3r:
The Overclock on boot is locked at maximum 600 MHz or Not?

Becouse this may be a cause of boot problems. Sorry if i am superflue :)
[Android Software/Hacking General [Developers Only]] crispybbq:
Ooh! Excitement! :D

What I did was the following... Cleared cache. Installed ROM. rebooted. ralized the boot.img didn't work, so used fastboot to flash the fixed kernel. Rebooted into recovery and cleared cache just in case. ^_^
[Android Software/Hacking General [Developers Only]] project2:
but the ideos is clocked at 600mhz when its shipped so this should be no problem ;)

@crispybbq: i placed the boot.img directly to the .zip archive, no fastboot required (at my first try i used fastboot too) - no change
[Android Software/Hacking General [Developers Only]] f1ng3r:
I dont think you'r right. If the kernel has overclock enabled and the frequency during the boot is not locked, the phone stuck on bootloop(it just crash and crash....before he finish the boot, becouse gradually the frequency go up during the process).

Example: If i try to flash a ROM with 748 MHz enabled and not locked on 600 MHz during the boot, my Ideos can't never boot becouse 691 is his maximum stable frequency.

I read that this latest builds has OV & Multitouch enabled.
[Android Software/Hacking General [Developers Only]] project2:
so this means i need a stock 2.3.5 kernel and then it should work?

but arent there other functions in this modded kernel so that a stock one wont run with this nightly?