yashsingh1/xdaforums huggingface dataset:
[Huawei Ideos X5 U8800] mikereidis:
What does "Worked" mean ? Does it mean didn't "FC all the time" ?

Or does it mean RSSI signal strength at upper left was working as expected when tuning, but that audio was bad ?

Your report seems much less successful than those of others. You have a u8800 ?

If you can send me a log with any version, please do, along with any ideas you might have about why your experience is so different.
[Huawei Ideos X5 U8800] mikereidis:
Thanks. I think the volume test screen crash was due to a silly little thing that didn't crash my devices. I've fixed this for next release, but the qdsp5v2 volume tests can be done on the adb shell/command line like this:

/data/data/com.mikersmicros.fm/files/ssd 3 1010

The last number is volume + 1000, so no audio/ 0 volume needs "1000". The above sets volume to 10. I think the range might be 0 to 255. This only works on Feb 8 or later.
[Huawei Ideos X5 U8800] dancer_69:
For this command to work need to have selected qdsp5v2 as audio method?
[Huawei Ideos X5 U8800] mikereidis:
No. Just need to have FM audio working to test.
[Huawei Ideos X5 U8800] axistr:
@mikereidis, above command gives an error. Is it the correct command? If I change the last number to lower values sth. like 10-20 it doesn't give an error.

# /data/data/com.mikersmicros.fm/files/ssd 3 1010
/data/data/com.mikersmicros.fm/files/ssd 3 1010
Spirit FM Radio audio utility version 2012, Jan 7
Copyright (c) 2011-2012 Michael A. Reid. All rights reserved.
Mode: "3" (3)
Function: "1010" (1010)
Opening device /dev/msm_audio_dev_ctrl
snd_fd: 3
dev_id_get_disp sizeof (struct msm_snd_device_info): 72 num_dev: 21
dev_id: 00 dev_cap: 0x00000005 dev_name:
handset_rx
dev_id: 01 dev_cap: 0x00000006 dev_name:
handset_tx
dev_id: 02 dev_cap: 0x00000005 dev_name:
headset_stereo_rx
dev_id: 03 dev_cap: 0x00000006 dev_name:
headset_mono_tx
dev_id: 04 dev_cap: 0x00000005 dev_name:
bt_sco_rx
dev_id: 05 dev_cap: 0x00000006 dev_name:
bt_sco_tx
dev_id: 06 dev_cap: 0x00000011 dev_name:
fmradio_handset_rx FM Capability
dev_id: 07 dev_cap: 0x00000005 dev_name:
speaker_stereo_rx
dev_id: 08 dev_cap: 0x00000011 dev_name:
fmradio_speaker_rx FM Capability
dev_id: 09 dev_cap: 0x00000011 dev_name:
fmradio_headset_rx FM Capability
dev_id: 10 dev_cap: 0x00000026 dev_name:
tty_headset_mono_tx
dev_id: 11 dev_cap: 0x00000025 dev_name:
tty_headset_mono_rx
dev_id: 12 dev_cap: 0x00000006 dev_name:
speaker_mono_tx
dev_id: 13 dev_cap: 0x00000002 dev_name:
fmradio_stereo_tx
dev_id: 14 dev_cap: 0x00000006 dev_name: ha
ndset_dual_mic_broadside_tx
dev_id: 15 dev_cap: 0x00000006 dev_name: sp
eaker_dual_mic_broadside_tx
dev_id: 16 dev_cap: 0x00000006 dev_name:
handset_secondary_mic_tx
dev_id: 17 dev_cap: 0x00000005 dev_name: heads
et_stereo_speaker_stereo_rx
dev_id: 18 dev_cap: 0x00000005 dev_name:
speaker_music_rx
dev_id: 19 dev_cap: 0x00000001 dev_name:
hdmi_stereo_rx
dev_id: 20 dev_cap: 0x00000005 dev_name:
headset_music_stereo_rx
dev_id_get_disp device: 6
m1_do SND_SET_FM_RADIO_VOLUME ioctl ret: -1 errno: 22
[Huawei Ideos X5 U8800] mikereidis:
Yes, it's the correct command.

It just doesn't work on your device and ROM. It might work on some other ROMs, I don't know.

So you know, I'm about at the limit of what I can reasonably do without one of these phones. I've been working on this latest round of fixes and tests for 11 days now.

I could probably get things done 10 times faster with a real device. So this mode is at least 90% inefficient...
[Huawei Ideos X5 U8800] mikereidis:
Feb 9: http://www.mediafire.com/file/bq5z6rahsclh50z/Spirit_FM_Radio_v120209b.apk

In this release:

- Headset and speaker should work, even with the default CM audio method selected (at least at startup).

- You should be able to switch audio method to qdsp5v2 without a crash. If you quickly switch back and forth between speaker and headset when using qdsp5v2, you may have a problem.

- Hopefully someone will have success with the Menu->Test->Volume options for setFmVolume or qdsp5v2.

- If a phone call comes in, mediaserver will be killed. This is not setting dependent. Hopefully this will allow phone calls to be taken. To make a phone call, Be sure Debug->BC 20780 is enabled and exit the app first.
[Huawei Ideos X5 U8800] Tcm9669:
Yeah I mean it didn't FC once! But I couldn't tune into any stations, I could only hear static sound. As for the signal strenght.. I don't remember.. I know that the bar thingy was empty (or gray) and the number next to it changed all the time.

I got the newer version to work by first removing the SU privileges, then setting the audio to qdsp5v2, then close the app and opening it again and THEN I allow SU.. Then, no FC BUT still, cannot tune into any station.

Just for the record, I'm in Australia so I selected Australia as Freq Band, does that matter?

Yes I do have a u8800, no PRO or any sub thing.. just the plain u8800. If it FC again, I will send you a log. (Just press EM log right?)

I will try the newer version.
[Huawei Ideos X5 U8800] axistr:
@mikereidis, thanks for all your effort. I understand it is very difficult to develop further without the phone. I hope you can get a phone. Actually I rarely use radio on my phone so it's not an essential app for me but I appreciate all your work and I'm trying to help you as much as I can. :) Of course, I would like to have fully working radio app for the phone.

Initial impression for the last relase(0209b) with Cyanogenmod settings everything same as before so speaker doesn't work for me. I've tried Test->Volume settings but they don't change anything. BC 20780 is enabled but audio is stuck again it wasn't restored after exiting the app.

For qdsp5v2, I can change to it without crash but I can't use after. I only could use it at first time after changing to it. At that time, I tried Test->Volume but again the same result, nothing changed. Audio is stuck again with this mod also and it wasn't restored. Speaker and other buttons work.

The main problem is with qdsp5v2 I can't use it after first exit of app. When I open the app again I think it doesn't fully load, so I can't do anything, none of the buttons are work. It give a sound for 10-15 seconds then phone goes to reboot. Tried without su then change to qdsp5v2, still the same.

Here are the logs if they help:

http://pastebin.com/YLUGTiqf

http://pastebin.com/tdTfesDL
[Huawei Ideos X5 U8800] dancer_69:
All these happen to me too, with Miui Elite rom for .32 kernel.
[Huawei Ideos X5 U8800] Ozgurce:
@mikereids I'm sure we can buy you a u8800. If you interested in please let us know.

If I close to your contry I would sen my phone to you for testing but Turkey is far away :)
[Huawei Ideos X5 U8800] mikereidis:
For testing purposes, it never matters, unless you select the weird 76-90 MHz Japan band.

For this FM chip, it makes absolutely no difference. I've had so many problems with functions crashing or doing the opposite of what is expected that I've stripped support down to a bare minimum.

So de-emphasis for example, is likely the North American default, which I think kills the high end of the audio frequency spectrum outside of North America.
[Huawei Ideos X5 U8800] mikereidis:
I think if you set the speaker mode (headset is showing), then restart the app then it should start in speaker mode.

"killall mediaserver" requires SU and won't work otherwise. Apps can't normally kill system services per the Android security.
[Huawei Ideos X5 U8800] mikereidis:
Well, it's an idea and I've proposed it.

But exactly what would I be committing to if it was possible and I accepted ?

I keep reading your sig saying "Never huawei again!". And with all these weird issues, I'm starting to wonder.

Right now there are some extremely popular devices my app has some issues with.

Such as stock ROM HTC Desire/HD. So I'm looking to buy one used now, out of my own pocket, maybe $250 or so. It makes sense because the Desire is the most popular device running my paid app, and the HD is 5th.

Also a Motorola Droid X. My apps been mostly working on several Motorola devices for 8 months or so. Except reception is awful because I haven't figured out the antenna switch yet. So it's the 2nd most popular phone for the free app, but doesn't even register on the paid app. Here again I'm trying to get one on Ebay now, maybe $130 or so.

So with these and the proprietary FM API supports I'm about to unleash on the Market for all those unrooted stock ROM devices. I don't think I should make any particular commitments for Tavarua right now,

...And I really think someone should try de-odexing that FM app that someone had on his stock u8800. I suspect it would work on stock ROMs, and might work on custom ROMs with a few added files perhaps. And running the Acer Liquid Metal app might even be possible.

If someone got one or both apps running, I think interest in my app might evaporate, especially if it supported RDS and had other nice features like the Acer app, and for free too.

Aren't any of the ROM devs interested in trying to get FM working on these devices ?
[Huawei Ideos X5 U8800] Mach III:
Latest version, v120209b, is working straight away for me. I just have to choose country and frequenzy, no aditional settings necessary. Perfect stereo with the jack all the way in, and no hangs/chrashes so far.

I'm still on Oxygen R1.

Just hoping to get volume adjustment now.:)
[Huawei Ideos X5 U8800] mikereidis:
Great ! :)

Everybody just needs to switch to Oxygen ROM now. ;)

Perhaps the kernel in this ROM has a better version of the Tavarua driver ?

I think the su utility may have been giving us grief also, perhaps it's better on this ROM.

I've finally released the first new market version in 1.5 months: Feb 10.

It's almost identical to Feb9b, except I disabled some potentially trouble-causing background logcat collecting.
[Huawei Ideos X5 U8800] pandamaluko:
I'm with elite movil (muiu) and is also working (with no sound control).
[Huawei Ideos X5 U8800] papatsonis:
just tried on Official 2.3.5 rom with "custom" kernel based on dzo's and victor's source, and it works, with earphone and speaker, but no volume. (one note though, when i pressed to power off the app, it rebooted my phone after a while)
[Huawei Ideos X5 U8800] tenico:
im in elite miui and the new version work 5* , but after 1 minute the phone reboot. all the time
[Huawei Ideos X5 U8800] rastek:
Works perfect in Elite miui. Good job mikereidis! :D

Now just the volume and it would be awesome.:)
[Huawei Ideos X5 U8800] mikereidis:
Consistently after about 60 seconds, or at some random time within 1-2 minutes or so ?

It's this sort of thing that makes me think there's bad code in the kernel on some ROMs. But since the audio isn't being started the same way the stock app does it, I can't be sure there's a way for my app to avoid it. But the reboot still tells me their is some nasty bug that shouldn't be there.

It would be nice to have the stock app running and see if it does the same.

It would also be useful if someone with the problem on a given ROM could check results on a ROM others have reported as good. Perhaps using the kernel from a known good ROM would help.

Some of the logs I've seen also seem to indicate there may be at least two different revisions on the Tavarua chip installed in these phones. Older ones might have more problems.
[Huawei Ideos X5 U8800] tenico:
is random time in 1-2 minutes , i already have the spirit in another version of miui and work.
[Huawei Ideos X5 U8800] Tcm9669:
Latest version: Everything with default settings, I give root access.. app and phone dont crash, but no sound comes out...

If I change the settings to previous settings that outputted static only sound before (qdsp5v2 and 7 as music output) it crashes the whole phone :(

Running latest oxygen

Edit: Emailed Logs.
[Huawei Ideos X5 U8800] mikereidis:
I'm not aware that anyone has seen better results using a Volume Control Stream of 7 (Huawei), versus the default of 3 (Music). If nobody has, then 3 is the best.

If anyone HAS seen better results, please let me know. This would likely only be true on stock ROMs, or at least ROMs that use the Huawei audio libraries.

---------

For anyone wondering, I've pretty much given up on trying to make Huawei specific fixes, at least for now. It's too hard and I don't have the time right now, after spending more time that I think I should have.

Among the many versions I've posted, I hope there's at least one for each ROM that's a good compromise. I'll leave it to you phone owners to try and figure out which combination of version and settings is best for you and your ROM.

Given the above, if anyone has purchased the Unlocked app with the expectation of better support than I can give right now, I can cancel your order if you wish. Of course, that'd make me less likely to return to this device in future. And let me know if there is a specific version, or range of versions of the Unlocked app you want.

----

One note of interest is that I've determined the Casio G'zOne Commando C771 also has this Tavarua FM, in addition to the X5/X6 and Acer Liquid Metal.
[Huawei Ideos X5 U8800] Tcm9669:
I guess thanks for bearing with us and try to make it work.

Questions to users: anyone got this to work on oxygen? What settings? Thanks.
[Huawei Ideos X5 U8800] faekplastik3s:
I understand your position, it makes total sense. Seeing as Huawei devices are becoming a bit more frequent, maybe some day you'll figure it out for another device and make it work for ours somehow. Still, if you ever have a chance to return to us, seeing as it already mostly works, all it needs is perfecting and profiling for each ROM, it seems. Thanks for all your support, Mike.
[Huawei Ideos X5 U8800] Mach III:
It works for me with Oxygen with the default settings, I only choose my country and frequenzy.

Thank you very much for your effort Mike. I was really hoping for a volume fix too, but I also understand that this Huawei specific fix is getting to time consuption for you.
[Huawei Ideos X5 U8800] mikereidis:
:)

"Mostly works" is a trap a LOT of software development falls into. After 1 month of work a dev may estimate it's 90% done. One year later the dev isn't so sure anymore, LOL.

Dev: Volume is fixed.

User: Great, how about speaker ?

...

Phone call or notification while listening...

...

Japan band.

...

Alternate Frequency.

...

RDS...

This is exactly what I see with all devices. People are happy with the new fix/feature for a bit, then it's like the comedian's line about the wife asking "But what have you done for me lately ?"

Just human nature and completely understandable of course.

Here is what I think/hope. Even if I never do more tests specifically for this device, sooner or later I will stumble across the solution on another device. That's my guess and it's happened several times before.

Or perhaps someone else will figure it out and let us know. In the meantime, keep the earphones a bit away from your ears or find some with a resistive volume control. Someone handy with a soldering pencil could probably even just add two resistors of the right value.

Or perhaps just stuff something in the earphones. All at your own risk of course.
[Huawei Ideos X5 U8800] manuelpimenta:
understand your position, but please keep going your hard work. it is really good for the android community and for the U8800 users. thanks a lot
[Huawei Ideos X5 U8800] hmarques:
So, what ROM do you think best suits a new X5?

I'm on 2.3.5 stock, there's no way Spirit FM to work on mine, and I'm already having some random reboots and had 2 "freezes" on the last days, where the only option was removing the battery... :mad::mad:

They say Oxygen is working great with Spirit FM - I'm just waiting for the maybe-to-be-released-next-week-new-Huawei-update before giving the definite jump to customized ROMs...
[Huawei Ideos X5 U8800] Artpal:
Well, I'm on Oxigen, and the app works almost straight out of the box for me...

BUT:

- No call notification, or callers say phone was busy;

- I have to reboot to have any kind of sound on the phone again.

Really would like to have a workable solution for this...
[Huawei Ideos X5 U8800] mikereidis:
For FM ? The stock app (post 19) on the stock ROM.

After 158 downloads, has anyone even tried the stock app ?

Maybe it needs to be de-odexed, maybe not for stock ROMs.
[Huawei Ideos X5 U8800] hmarques:
thanks for trying to help! :D

I downloaded that file, extracted it, but when I try to install it, it says - application not installed - after I accept the permissions stuff :(

any other ideas?

I updated my build.prop to allow installation of Gameloft games - http://xdaforums.com/showthread.php?t=1110315, do you think it may be related?
[Huawei Ideos X5 U8800] dancer_69:
It needs to be de-odexed, but I get an error when trying to deodex it. Seems that have some dependencies on another file or files, and without the entire system, how to find them?

I haven' t any experience on backsmali use, but from what described here:

http://code.google.com/p/smali/wiki/DeodexInstructions

and the error I get:

Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Util.ExceptionWithContext: Cannot locate boot class path file core.odex
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClassPath(ClassPath.java:237)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:145)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)

I think that we need more files from /system
[Huawei Ideos X5 U8800] Tcm9669:
Are you running the latest one? Damn it. Why doesnt stuff work for me. Would love to have FM on it :)

I was excited when I read it had built in FM (before even buying it) then disappointed to see it had no app on it (like my old windows phone had a shipped FM app that worked straight out).. then I read this thread and got excited again.. NOW IT DOESNT WANNA FRIGGING WORK.
[Huawei Ideos X5 U8800] mikereidis:
I've only deodexed in order to reverse engineer..., but those are good instructions there.

Yes, you need the contents of /system/framework from the device the APK and ODEX file came from.

Was it just that one, lone person who had a device with a stock FM app ? Anyone send him a message ? Is the stock ROM RUU or whatever it is available anywhere ?
[Huawei Ideos X5 U8800] O_G:
Moved To Q&A​

We now have a Q&A section. Please post all questions there​
[Huawei Ideos X5 U8800] realnowanda:
in aurora ics , sprint fm works fine.

---------- Post added at 01:13 AM ---------- Previous post was at 01:11 AM ----------

but volume adjusment can not be done.
[Huawei Ideos X5 U8800] mikereidis:
How well ? No crashes or other bad behaviour ?

Perhaps ICS upgrades and/or the kernel from that ICS ROM, are the solution then. Reports so far seem to indicate ROM/kernel related stability problems, not a problem in my app. Except for known issues like volume...

I sent an email to HTC today and they will send me some old phones for testing. I think Samsung may do the same.

I sent the same email to Huawei and we will see. Tough to find any email even.
[Huawei Ideos X5 U8800] Parrad11:
In my opinion Spirit FM works on Aurora ICS about as well as what it worked when I was using Oxygen (at least on the 6th of Feb version). However testing the Feb 9th b version it would appear that the phone crashes on the second boot onwards after selecting qdsp5v2, but not on default CyanogenMod it loads after the first time without crashing.
[Huawei Ideos X5 U8800] Mach III:
The 9. Feb version was the best for me when I was on Oxygen, but both the marked version and 9. Feb gives me no sound and just chrashes the phone with ICS. Will try the 6. Feb version then...:)
[Huawei Ideos X5 U8800] honking:
https://www.codeaurora.org/gitweb/q...fd9589255d63dfb40;hb=refs/heads/ics_chocolate

Do you think this code can work on u8800?
[Huawei Ideos X5 U8800] Parrad11:
I did not try the 9th of Feb version on Oxygen, so I could not compare that version across Oxygen and Aurora ICS. With the 6th of Feb version to change the audio method to qdsp5v2 from CyanogenMod required first setting it to none, shutting down Spirit then starting it again and setting it to qdsp5v2. 6th of Feb version also didn't crash on or after the second start of Spirit with audio method set to qdsp5v2.
[Huawei Ideos X5 U8800] dancer_69:
I just extracted fmradio app from U8800-51 stock froyo rom.

I tried it to ICS dzo' s rom and fm doesn' t start.

Please, anyone with official rom try the app and post the results.

In zip file there is the fmradio.apk(was on /system/app but for me installed fine) and also the related library files which go to /system/lib directory.
[Huawei Ideos X5 U8800] ghb1098:
mikereidis have done this job

The radio is working, but it is not perfect.

You can view this page

http://xdaforums.com/showthread.php?t=1059296&page=53
[Huawei Ideos X5 U8800] mikereidis:
Yes. That's part of the framework code that's running on stock X5 and X6 ROMs.

The Huawei stock FM app is derived from the Qualcomm "Code Aurora" app.
[Huawei Ideos X5 U8800] mikereidis:
Thanks.

True AOSP ROMs won't have the framework code, including the object file from android_hardware_fm.cpp linked above.

If there was a single file for FM, or Huawei specific stuff, under /system/framework, I would move it to your ROM and try again. It's also possible to extract only the needed parts but that's more involved. MIUI is doing that for many of their ROMs that are dependent on proprietary code.

BTW, I've realized my app has a feature that will prevent startup, for cases where it might crash;

- At first startup, when you see the dialog for "Spirit FM Unlocked Intro", just press the Back key.

- To re-create this later, use Menu->Help->Introduction, then press the "Keep" button". As long as you don't select "Disable", it will pop up before completing power on every time you start it.
[Huawei Ideos X5 U8800] dancer_69:
Sorry, I cannot understand for what to search in framework folder, but I found only one file that seems to be from huawei: framework-res-hwext.apk.

I copied it to device's system/framework dir and reboot, but didn' t make any difference.

Here is the logcat code when app running:

22:46:40.550 Verbose AudioHardwareMSM7X30 237 open driver
22:46:40.550 Verbose AudioHardwareMSM7X30 237 get config
22:46:40.551 Verbose AudioHardwareMSM7X30 237 set config
22:46:40.551 Verbose AudioHardwareMSM7X30 237 buffer_size: 4800
22:46:40.551 Verbose AudioHardwareMSM7X30 237 buffer_count: 2
22:46:40.551 Verbose AudioHardwareMSM7X30 237 channel_count: 2
22:46:40.551 Verbose AudioHardwareMSM7X30 237 sample_rate: 44100
22:46:40.551 Verbose AudioHardwareMSM7X30 237 dec_id = 5
22:46:40.552 Verbose AudioHardwareMSM7X30 237 cur_rx for pcm playback = 4
22:46:40.554 Debug AudioHardwareMSM7X30 237 value of device and enable is 4 1 ALSA dev id:2
22:46:40.554 Debug FMService2 1717 what = com.huawei.android.FMRadio.openfm
22:46:40.554 Verbose FMRadio 1717 enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMRxStarting
22:46:40.554 Debug FmTransceiver 1717 Already Opened:44
22:46:40.554 Error FMRadio 1717 enable: Error while turning FM On
22:46:40.554 Error FMRadio 1717 enable: CURRENT-STATE : FMRxStarting ---> NEW-STATE : FMOff
22:46:40.554 Error FMService2 1717 mReceiver.enable fail
22:46:40.554 Error FMService2 1717 fmStart fail
22:46:40.570 Error NotificationService 250 Ignoring notification with icon==0: Notification(contentView=null vibrate=null,sound=null,defaults=0x0,flags=0x62)
22:46:40.570 Debug FMService2 1717 what = com.huawei.android.FMRadio.operationfail
22:46:40.588 Debug memalloc 104 /dev/pmem: Allocated buffer base:0x41cf5000 size:221184 offset:4362240 fd:51
22:46:40.588 Debug memalloc 1717 /dev/pmem: Mapped buffer base:0x52281000 size:4583424 offset:4362240 fd:54
22:46:40.588 Debug AudioHardwareMSM7X30 237 msm_route_stream(PCM_PLAY,5,2,1)
22:46:40.601 Error FMRadioMainActivity 1717 operation error
22:46:40.615 Debug memalloc 1717 /dev/pmem: Unmapping buffer base:0x52281000 size:4583424 offset:4362240
22:46:40.615 Verbose FMRadioMainActivity 1717 PORTSCAPE

maybe have some usefull info.