yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] Daneshm90:
Hmm k. Im guessing ur not on cyan right ? If its the same issue as with the keyboard, perhaps cyan users will have this working ? can a cyan user test this out plz.

Actually wait a sec, i found some libs it needs. Try pushing these to /system/lib and restart or just run app there and then. Plz b at a pc or have a backup plan ;)

Link

Considering this is from a different device i wud not expect it to work, but hey its worth a shot ;)
[Nexus One Android Development] bewA:
All i have to say is...

EPIC :D
[Nexus One Android Development] slekerz:
thanks cyanogen, good to hear that :)
[Nexus One Android Development] mtw4991:
EPICCCCC +10000000

Nice to see such cooperation among peoples of the world and to think Android is the little thing that brings it together...f'ing amazing!:)
[Nexus One Android Development] Rod3:
Absolutely can't wait for FM since the "I heart Radio" app is worthless!
[Nexus One Android Development] mgear356:
omfg BEST NEWS OF THE YR!

Been using MiUI and I MISS EVERYTHING ABOUT CYANOGEN MODE..

But I just cant bear to leave the FM radio..
[Nexus One Android Development] bewA:
this has been the only reason why i've been using the Sense ROM's tbh!
[Nexus One Android Development] r8zer:
Cool. I think we can all say "I can't wait" this will be awesome.
[Nexus One Android Development] cmstlist:
Mazel Tov!
[Nexus One Android Development] moskuito:
Awesome! CM 6.1 is going to be a milestone !!!
[Nexus One Android Development] imfloflo:
Simply thanks :)
[Nexus One Android Development] SiNJiN76:
I agree...
[Nexus One Android Development] wick12345:
My god it is finally time to root!!!! Thanks big C! Now we all have to make good on our promises to pay!! :-)
[Nexus One Android Development] mr.sweet:
Woiohooo... where can i get it? ????
[Nexus One Android Development] B3astofthe3ast:
Could it finally be time to put this thread to rest???
[Nexus One Android Development] DJGibbon:
Ditto. Finally I get away from having Sense bloat in the background just to use FM!

I used CM on my G1 for over a year, and I've missed it on the Desire. There's definitely a donation coming Cyanogen's way if a non-sense FM rom turns up . . .
[Nexus One Android Development] intersectRaven:
ROM makers are probably cooking this into their ROMs as we speak. I found that all of the necessary things for the kernel parts have already been implemented in my past kernel (minus the BT parts since those are what makes the Desire FM work) so I'm ready on my part. :)
[Nexus One Android Development] teh_lorax:
Not to take anything away from TeamDouche, but shouldn't that donation go to MIUI if the FM radio is what brings you over? :D
[Nexus One Android Development] :
this.

also i dont think its time to put the thread to rest. we still have fm transmit to work on :P
[Nexus One Android Development] intersectRaven:
I also think the donation should go to MIUI. They did adapt the framework to use CodeAurora's source as base so instead of using the Desire path which relies on heavy kernel and ROM modification to work, they transferred the bulk onto the ROM side while keeping kernel modifications to a minimum with no modifications to the bluetooth driver code and only the audio path. :)
[Nexus One Android Development] mtw4991:
IntersectRaven, have you adopted the source code so that your FM radio kernel works with CM #203 yet?
[Nexus One Android Development] intersectRaven:
Already done. I just needed to remove the Desire BT parts and it works. The audio path modifications are the same as the Desire's. :)
[Nexus One Android Development] danger-rat:
FM radio now working in CM nightly (203 onwards).
[Nexus One Android Development] mtw4991:
REALLY???;)
[Nexus One Android Development] intersectRaven:
Yup! Already completed my migration from Desire to CM and I can say that it works! :)
[Nexus One Android Development] cmstlist:
Sweeeeet!

Umm... how (un)stable are these nightlies? If there is any one particular night's build that you recommend as "stable enough" to jump on it for the purpose of FM radio, please let us know.

Otherwise I should probably just hold back and wait for an RC.
[Nexus One Android Development] :
Stable have been super stable for me, there is the occasional random reboot, and the phone has been hanging on me while bluetooth/music/internet/ just freezes the phone.

It's a rare occurrence though. The added code to the nightlies appear to be very cleanly added.
[Nexus One Android Development] pendo:
Mucho respect for the MIUI team for sharing their work. Hope they stop in to see all of the thanks being sent their way..
[Nexus One Android Development] te_quiero_forever_girl:
If you run into occasional random reboots, try lowering your max cpu frequency. This solved the problem perfectly for me
[Nexus One Android Development] :
It's like once every few days while it's on my desk not doing anything, I dont' really mind though. Comes with the experimental territory.

It's at 998 though.
[Nexus One Android Development] cmstlist:
Well, I'll be taking an 8-hours-each-way train trip next week in the US where I don't have unlimited data... so perhaps I should take a nandroid backup and then try a nightly ROM for my trip so that I can get some sweet Nexus Radio along the way :)
[Nexus One Android Development] str4vag:
nice. now for the final FM trick, transmitting :)
[Nexus One Android Development] totzkotz:
yes transmitting would be a nice feature even for my desire ;)
[Nexus One Android Development] omomo:
Thanks pendo. I saw it. :)

Enjoy!
[Nexus One Android Development] constellanation:
seriously that would be awesome!

not saying the fm receiver isn't, of course!
[Nexus One Android Development] vik4:
Any progress on transmission?

Has anyone got any closer to FM transmission?

Alternately, what was required to make FM reception work? i.e. where should I be looking to poke around?

Cheers,

vik
[Nexus One Android Development] lsxrx7:
not yet ........
[Nexus One Android Development] mr.sweet:
Any News On Transmission?
[Nexus One Android Development] Obsy:
I'm interested too... I miss that trick from my old Nokia N79 :(
[Nexus One Android Development] totzkotz:
Hey guys any news on Transmission using bcm4329 TX?

Sent using XDA App
[Nexus One Android Development] maxib123:
has this died?
[Nexus One Android Development] KoolPal:
Anyone exploring FM recording ? One of the LG Android phones has this .
[Nexus One Android Development] intersectRaven:
If it's recording, it should be easy. Just redirect the output to the recording device. :)
[Nexus One Android Development] bewA:
looks like something is stirring in AOSP Code Review...

https://review.source.android.com/#change,20507
[Nexus One Android Development] KoolPal:
Very encouraging! Will someone please take this up?? PLEASE??
[Nexus One Android Development] ykphuah:
Cool, was thinking of starting another think tank for getting fm radio on Nexus S and I saw that!
[Nexus One Android Development] rori~:
very cool!

Sent from my Nexus One
[Nexus One Android Development] maxib123:
can that be downloaded as an app yet?
[Nexus One Android Development] Jack_R1:
It won't ever be an app without kernel support. I believe this is a framework layer, running above the drivers - and if there are no drivers, no framework will run. So it'll only make the devs' work easier - given that there will be drivers that can work with a kind of phone in question or similar (which will take quite some time to move from AOSP to the actual ROMs - I'm talking months).
[Nexus One Android Development] maxib123:
Aww that sucks....thanks for the help though :)
[Nexus One Android Development] str4vag:
i like that i see FM radio transmit there too..
[Nexus One Android Development] dferreira:
FM receiver and transmitter sample apps available.

https://review.source.android.com/#change,21829
[Nexus One Android Development] maxib123:
you mean apk's we can put on our phones and use? no?
[Nexus One Android Development] RogerPodacter:
what it looks like is that so far the AOSP has not had any support for FM radio transmit or receive of any kind, meaning google themselves has not written for it yet. and this is just them proposing FM radio and associated APIs to add this into the main code repository (i.e. stock ROM).

but probably doesnt mean much for us nexus one users, as they likely won't be adding for that. this is likely high level, above the kernel, basically a template for any future phones to use fm radio API.
[Nexus One Android Development] numero53:
I don't know if it could help...

xdaforums.com/showthread.php?t=697983

I hope that it isn't true..... :(
[Nexus One Android Development] :
Will try right now.

Do I just try to install, or do I pushe the abc.apk to somewhere?
[Nexus One Android Development] Daneshm90:
U gotta install both.
[Nexus One Android Development] :
the fmradioservice and the radio app right?

Can you post the radio apk, my connection here is REALLY slow. Can't download the full dump.

edit: just found it.

edit2: I'm getting the following message:

"To use FM radio please plug in headset with round ground"
[Nexus One Android Development] Daneshm90:
Yo greyrc how'd u get it working ? did u also enounter this error ? cuz the way u described it sounded as if u got inside the app fine.
[Nexus One Android Development] MarcusMaximus04@gmail.com:
What headphones were you using?
[Nexus One Android Development] :
Only headphones I have at the moment are Sony MDR-V150's

Gonna dig around and see if I can find something else, my stock ones are at home. =/
[Nexus One Android Development] MarcusMaximus04@gmail.com:
Hmm I wonder if it might rely on that third ring from the stock headphones.... It sounds like it's either that or the board simply isn't hooked up to use the headphones as an antenna, meaning it has no antenna.
[Nexus One Android Development] :
Okay, I have a 2.5mm headset from an old nokia phone(that has FM). (has three rings, the sony's only has two)

If I stick in there at just the right angle I can get the FM app to run but I get a forceclose from the FMRADIOservice.
[Nexus One Android Development] greyrc51:
I downloaded the apparently and the service apparently but I could only install the apparently alone.I was able to open it And I get a message along the lines of "starting cm radio".I tried to install the service apparently that you gave me but again it said there was a problem parsing the package.by the way you do need headphones plug in to start the apparently.
[Nexus One Android Development] :
I'm gonna try push those lib files.
[Nexus One Android Development] Daneshm90:
K so we have progress. Now did u push the libs to ur phone ? also can u log n post plz :D

Also i think the fmradioservice apk u found was previous one. Try this one, it has both fmradio n fmradioservice

Link
[Nexus One Android Development] :
"log n post" ?

Phone has rebooted fine, testing out now.

Still getting a force close for FMRADIO service.

I didn't push either .apk, I just simply installed btw.
[Nexus One Android Development] Daneshm90:
Lol i meant post the log when u get the error. But im at the same stage as u guys, im getting it as well i see the app loaded but tht radio service error is on top. Time to debug, i wonder if i create a new shared uid for them to share if they'll allow to install, cuz i think through this shared uid they communicate with each other.
[Nexus One Android Development] :
New combination still force closing the FMservice, but now it's shutting down the FMRADIO app as well, it wasn't before
[Nexus One Android Development] :
That's all the activity from the time I get the headset situated, hit fm radio app, then hit force close and everything goes away.

FM in red stays in the notification bar as "ongoing" however.
[Nexus One Android Development] Daneshm90:
K heres the apks i pulled from my /data/app folder. Perhaps i was using something i didnt upload in the midst of all the changes i made to em. In meantime imma try creating a shared uid for em n see if tht works.

Best to uninstall ur current ones. Link
[Nexus One Android Development] rsm86:
Guys, sadly nothing interesting to add

Just glad to see some actual work going on with this! Best of luck to you guys!
[Nexus One Android Development] Chopes:
Indeed. Looks like some progress is to be made here.
[Nexus One Android Development] :
Pushed those, now after the force close the app stays open and says "FM Radio is Being Launched Please Wait"
[Nexus One Android Development] Daneshm90:
K now press back n u shud b able to navigate the app. Anything work though inside the app ?

Currently im running a script to disassemble all /system/apps from droidx dump using apktool.jar. Once done im run a program to search through em n find which ones share the uid android.uid.system. Hopefully tht'll tell us something :confused:
[Nexus One Android Development] :
I can scrub through dial, I can save presets. I cannot scroll the list of presets. Left/right buttons up top don't respond. Loudspeaker button doesn't do anything.

It's so awkward trying to this while holding the 2.5mm jack in place so that app doesn't close on me. lol I'm definately grabbing my stock headset for tomm.
[Nexus One Android Development] MarcusMaximus04@gmail.com:
Of note: that FMRadioService app is what was force closing on me, I was seeing the exact same behavior as above where after force closing that, it would sit saying searching for stations and I could press back to close that and navigate through some of the ui.
[Nexus One Android Development] Daneshm90:
Lol yea imma call it a night, will try stuff 2moro.

This is the list off apps tht use the shared uid.

Yea as the filename suggests, im guessin this provides the necessary service for the main app to function. Ugh neone with better understanding of this shared uid CRAP lol
[Nexus One Android Development] :
Think up some frankensteins to test out tomm. =P I'm game for experimentation.
[Nexus One Android Development] Daneshm90:
Btw, so more mods and trial/error can occur ill explain wht i do when an app refuses to install.

First do adb install tht app. Mostly itll tell u whts wrong, if incompatible then u gotta change sdk version to a lower number. if parsing something error, then u gotta resign that app, and if still it doesnt install check ur adb log while installing to make sure. If it says something about uid then u gotta remove the shared uid from its androidmanifest.xml.

To do all those u the script in my signature (apk manager). It uses Brut.all's amazing apktool.jar to make the xml's readable ;) You just put app in modding folder, run script select decompile, then make ur changes, n then compile/sign/install.
[Nexus One Android Development] Daneshm90:
Aight last try before i quit for the day. Heres some other apks that shared the same uid n i just changed the uid to android.fmradio so they all share the same uid. Just install all of em like regular apks. Then try running fm radio

Link
[Nexus One Android Development] :
No more force closing =D

Underneath the arrows there's a progress bar that I can get going, but it's not doing anything. Just filling up left to right.

Log cat says

"waiting for fmradio.stack"

I like the name of your .zip btw. lol

the other error catching my eye:

E/FMRadioService( 1936):onCreate() called***
[Nexus One Android Development] faizalmzain:
from my experience with nokia phones, you can insert any headset to act as antenna not necessarily stock or specific headset.
[Nexus One Android Development] :
In the case of android it appears to require a 3 ring headset. (tested and verified)
[Nexus One Android Development] pvillasuso:
Hope this helps , or somebody who knows :D please check this :

http://xdaforums.com/showthread.php?t=710097

look for the FM Radio posts ...
[Nexus One Android Development] SoleOfJohn:
Awesome!

Keep up the good work!
[Nexus One Android Development] :
So I've been thinking about this. The more I break it down, the more I realize we're gonna need some kernel builders to participate. The drivers have to tie into the OS before any kind of data is exchanged. Basically I think the driver from the samsung S/incredible/desire needs to be ported over.
[Nexus One Android Development] intersectRaven:
If ever you have an idea as to what files you need ported, I could help this weekend. :)
[Nexus One Android Development] :
I haven't dove too deep, but from this thread:

http://xdaforums.com/showthread.php?p=6895171#post6895171

The drivers from samsung were open sourced (unlike the HTC stuff).

edit: oops Just realized you participated in there. lol

edit 2: Another idea, why not log a desire/incredible/X/etc that uses the FM radio and trace back all the calls that it uses to properly fix on a signal?
[Nexus One Android Development] Kali-:
why u can't try to install windows apps on your phone :p

droid x have different fm radio chip !
[Nexus One Android Development] intersectRaven:
Yeah...if ever, the desire I believe is closest to ours... :)
[Nexus One Android Development] Daneshm90:
Ok so i got a couple of questions.

1.

If the radio app on desire was somehow ported, would it work out of the box or kernel changes HAVE to me made. (Im guessing they do :rolleyes:)

2.

Can we atleast use the interface of these radio apps when we do somehow get radio support into our kernels ?

Thnx
[Nexus One Android Development] intersectRaven:
1.) I'm not sure about this one. I think it will need to be.

2.) That I think can be done. The only thing those require are the HTC framework in order to work.

:)
[Nexus One Android Development] Kali-:
1) nexus kernel didn't have proper driver

2) no, htc fmradio app work only on with HTC Framework (most sense rom)

htcfmradio depend also on btld (broadcom bt stack?)
[Nexus One Android Development] Daneshm90:
Ok so no point trying to *somehow* port radio apps from droidx or desire ? Then u kernel folks do ur thing ;)
[Nexus One Android Development] :
We still need an app actually, seeing as the HTC FM app won't live outside the rosie framework.
[Nexus One Android Development] Ersdal:
There is one in the Acer Liquid Stream dump [link to thread]
[Nexus One Android Development] Daneshm90:
Would porting its radio app help in anyway ?
[Nexus One Android Development] bewA:
does the Desire Kernel source help in any way? or is it more in the Rosie framework on the Desire?
[Nexus One Android Development] :
HTC's code is so intertwined it's hard to pull what you want from it.

It may be easier with a 2.2 sense release, as the 2.2 code sets out to decouple those types of things.
[Nexus One Android Development] mlevin:
going the other direction?

Is anyone working on FM the other way (FM transmitter to play audio in your car)?
[Nexus One Android Development] :
I don't think anyone has managed to even communicate with the chipset on the nexus, once that happens that rest comes.

The chipset on board is both transmit and receive capable.
[Nexus One Android Development] knightnz:
A radio app so we can actually use the radio once it's been enabled would be useful so if you're able to port it then please do so.
[Nexus One Android Development] Daneshm90:
I dont think this one needs porting. It runs w/o modding, just install like regular apk. As for the other droidx radio apk, J said tht he experienced no more force closes n the app ran fine so thats as far as that will go as well. Now its up to the kernel folks :D
[Nexus One Android Development] r45k:
Did anyone consider there might be a reson why the FM radio hasnt been enabled on the nexus one yet?

The N1 was supposed to be THE phone for android showing off its muscle, and so that still begs the question why? We need to find an insider to find out why this wasnt an initially enabled...

Other than licensing issues for FM radio use, i can only assume hardware limitations are preventing this...

I'd like to see the schematics for the supposed chipset... to see if its even hardware enabled correctly to have an antannae (even if it is the headphones)
[Nexus One Android Development] rsm86:
If it finds the radio stations, doesn't that automatically mean it has an antennae?

And even if it's not wired to output audio through the headphones or phone's speaker, couldn't the FM transmitter (or it a more realistically useful scenario, BT) be used as a substitute?

(Genuine questions, not trying to sound like a smartass, I have very little knowledge but want to be enlightened!)
[Nexus One Android Development] Jack_R1:
Did you bother to read Paul's Desire ROM change log and functionality report, showing FM radio app working and detecting stations, and only failing to output audio? Does that answer your thoughts?

And I don't see the thread taking any useful direction. Porting apps from other phones might be useful, but only when the kernel is built to match / when app has direct HW access and is built for the same HW. There's no generic API for FM radio that I know of - so using an app from one phone and kernel from another isn't going anywhere, these apps won't run / do anything useful until they have the API in the kernel that they expect. Apps that run on other phones with other HW are even more useless, unless they depend solely on API and don't attempt any direct access operations.

I think assuming that Nexus and Desire have the same connectivity and trying to finish Paul's job on Desire ROM, making the audio work, is the best bet to have this thing started, unless anyone knows any other phone running exactly the same CPU and BT chips (mentioned in my post on the 1st page) and not running Sense. I'll try to contact Paul to persuade him to give his inputs and things he found when working on Desire ROM radio, in this thread.

Please read my post on 1st page. Shortly, the answer is NO.
[Nexus One Android Development] Jack_R1:
I wrote Paul O'Brien, I hope he responds.
[Nexus One Android Development] wick12345:
Thank you guys so much for working on this issue! It's really great to see such dedication to our phones issues! I really hate when people ask me about the FM radio thing I just lie and say it has one :( If I was smarter I would help but I am not a computer guy at least not like you guys! Thanks agian I just wanted to encourage you as what you are doing will be great for the community!
[Nexus One Android Development] :
The BCM4329 chipset has bluetooth/wifi/FM RxtX all wrapped up in one chipset. There's not question about that. (this chipset is in nearly all devices from droid/HD2/Iphone/nexus/galaxy/incredible/desire)

The galaxy for example uses an ADDITIONAL fm chip probably because they have FCC approval for that set already.

Seems no company has bothered to write a driver to use it(apparently due to not wanting to bother with proper FCC approval) HTC has done this, but due to their sense framework the driver is hard to track down properly.
[Nexus One Android Development] martin0285:
I think we need to have someone like chainsdd (done several wonderful things for Android community thus far and N1 community).... He wrote the driver for trackball color led, this sounds like something he should tackle!!
[Nexus One Android Development] maxisma:
Well, you should try to port the FM stuff from the Desire Kernel into the Nexus Kernel and then try to use a Desire ROM for FM Radio.

Just a thought.

Or do it the hard way and try to port the whole Desire Kernel to the Nexus.
[Nexus One Android Development] deanesn:
Guys no need to fight here. I've had many of the desire ports(versions) on my n1 and yes the htc radio app finds all three local stations by me but no sound. I really think it would be easier to make desire port work first since we don't have to try to make any apps work on stock andy. I just wish google would release a driver for the radio like they did for the wireless n. That would make things so much easier. :)
[Nexus One Android Development] GldRush98:
Except to transmit you'd need the power amplifier chips, which the Nexus One hardware does not have. The Nexus One will never transmit FM.
[Nexus One Android Development] GldRush98:
Google answered this a long time ago. Basically they are too busy working on other Android stuff to work on building a FM radio app. Any FM support will have to come from the community, they don't have time.