yashsingh1/xdaforums huggingface dataset:
[Spirit FM] ^I'm_With_Stupid:
So I heard your the go to guy on fm radio info and I was wondering if you could help a kernel dev figure out how to get fm radio working on the Nexus 5 if it is even possible.

Hardware stuff is just above my head so I'll point you to the thread and the kernel dev is a really good guy :D

Here's the thread, hopefully you have time to have a look
[Spirit FM] hotaru2k3:
it sounds like you pirated the unlocked version. if you did, you're a terrible person and I hope no one even thinks about helping you.
[Spirit FM] mikereidis:
It does, LOL.

But you never know, and sometimes today's pirate could be tomorrow's customer/supporter, or at least spread good words.

Alcatel I just don't support; it's funny they have LOTS of devices on Google Play, that I've all disabled, but I hardly ever hear of someone having one. A bit more recently.

Anyway, the new a2d.fm ("Spirit2") has a way to deal with this, and the people who claim they didn't know, some of who truly don't know.

I've decided I will release just one package of the new app. Spirit1 has 4 packages: Free, Light, Unlocked and another one. That's a pain to maintain.

This 1 package will be the full version and the fully freely redistributable free version at the same time. To do that requires me to go back to "DRM", IE Google's Licensing Service. I have a policy that I think should be good:

- Initial license state is "Evaluation". Full features for 24 hours after installation (yeah you can reinstall, but every day ?). After 24 hours with no license validation, state permanently is set to "Free" with no more Google license queries.

- One "Licensed" response from Google in the first 24 hours advances to the "Purchased" state. This "Purchased" state lasts for 7 day at most, until it reverts to "Free" at 7 days, or until a 2nd "Licensed" response from Google comes 3+ days after purchase.

- That 2nd response 3+ days after purchase advances state to "Paid" which is permanent with no more license queries.

Yes, there are ways around this, but at a minimum they tend to prove you intended to pirate, and would likely never buy anyway, especially since you can always get full features for 24 hours by re-installing.

The last "Paid" state, after 3-7 days is needed for those who download and refund quickly, and helps with those who ask for a refund within a few days. It's pretty rare for anyone to ask for a refund after 3 days, except for upgrading from Light.

The Chinese guys, at least one of whom is likely reading this now, LOL, will hack the Smali to bypass and disable the data collection features. Those guys, and the people who use their warez, would likely never buy either.

I don't think the above should inconvenience paid (or free) users much. Most people now have Internet and Play installed, especially right after a purchase and especially app buyers.

There may eventually be a "secret code" to bypass this, but I'd prefer not; I'll see.

I'm not even sure yet what Free vs Paid features might be. Initially maybe/probably none. Technical support is a bigger issue; likely only "Paid" will be able to send me debug logs.
[Spirit FM] mikereidis:
Well, I've got a lot of unfortunate stuff going on now where I've had to move my whole office, in the middle of trying to get my new app released within the Christmas shopping and good cheer season...

There's some stuff on this thread about Nexus 5, just search recent posts the last 2-4 weeks with "Nexus" as the search term. Couldn't be simpler. :)

At least one person has verified getting Spirit "working" but with RSSI negative or at zero. So far, i appears that has ALWAYS meant the FM chip antenna pin(s) are grounded and useless.

Google almost always does this, quite purposely. Only exception was the very old Nexus One (aka HTC Desire) and I'd guess Google didn't have the time or the money to get HTC to create a special FM disabled version.

HTC actually has a history of mostly never releasing any phone with FM disabled in hardware. One of the reasons to appreciate them. Of course, HTC hasn't had a Nexus since then, right ?

Google 3+ years back gave a limp excuse about not having the resources (LOL, one of the richest corps) to do FM and said they left it up to "the community".

But that doesn't explain why they would consistently order Nexus manufacturers to disable FM (IMO with full intent and malice aforethought).

Free FM competes with Googles' music services, and perhaps worse, with their advertising (still their main business). Simple as that.

And their anti-FM bias is shared by the carriers who ALSO want to be the gate-keepers to content and not simple dumb pipes who must compete on price.
[Spirit FM] ^I'm_With_Stupid:
Thanks for the informative response, unfortunately I've tried everything and have gotten an rssi of either 0 or -16. Looks like there's no hope for the Nexus 5, but hey, you get what you paid for :D

Good luck with spirit FM 2 though :laugh:
[Spirit FM] LenAsh:
Interestingly, the EU Google/MOTO G has FM Radio... hopefully the Qualcomm implementation rather than the technically inferior Broadcom 4335 or equivalent. Could be Silabs Si47xx of course... which isn't bad (and easily programmable).

(My current LG G2 D802 has the BCM 4335 and the lower RF sensitivity combined with the RSSI vs Blend vs Top cut vs mono is no way as good as Sony's QCom versions in Z/ZL etc. Would love to hack it...)
[Spirit FM] betrayed666:
is any version of the spirit 2 fm out yet?
[Spirit FM] LenAsh:
No, not yet.
[Spirit FM] mikereidis:
Well, let's see what happens with Google Motorola's Phonebloks type Project Ara: https://phonebloks.com/ and http://motorola-blog.blogspot.ca/2013/10/goodbye-sticky-hello-ara.html

Hopefully, in an ideal future, we'll be able to just plug an FM module into a Google/Moto phone.
[Spirit FM] mikereidis:
I'd be interested to examine the app: https://play.google.com/store/apps/details?id=com.motorola.fmplayer&hl=en

But I can't get it with APK downloader; maybe if I learn the ro.product.device value for the phone.

Hmm, I can't say I've really tested much for RF sensitivity recently. A cheap phone I got 2 years ago with BCM20780 was the first I ever saw that could do RDS decently with no antenna, and I'm not sure I've seen better since then.

Broadcom is clearly the leader for FM/combo chips, despite the higher QCom chip integration with the most popular SOCs of 2013: Qualcomm's.

Price could be a reason for popularity; I have no insight to that. I can say the new Android Bluedroid stack was written by Broadcom, so the best early support for Bluedroid was for Broadcom; I'm not sure how much the other OEMs have caught up.
[Spirit FM] mikereidis:
Technically, alpha5 was out in February, but I don't recommend it and deleted it some time ago.

I was hoping tomorrow, but fate has kept me from coding since Wednesday. And I gotta deal with my email backlog since then too.

Maybe I'll still put it out in about 24 hours, with a bit less polish than I'd hoped.

It will initially only be intended for bug tolerant early adopters and supporters though.
[Spirit FM] harshitaneja:
tried spirit fm unlocked on my s3 i9300 with cm11 kitkat ..app works but no sound..
[Spirit FM] LenAsh:
Wait for CM11 to reach a state of greater completeness... all sorts of things are missing at the moment.
[Spirit FM] k-semler:
It worked on my phone no problem. You have to have a headset plugged into it for it to work. It relies on the headphone wire as an antenna.
[Spirit FM] cajunflavoredbob:
I've got an Xperia Z1 to try it out. Jus' sayin'. lol
[Spirit FM] aeroxdefocu:
Any info for support of LG g2?

Inviato da LG Optimus G2
[Spirit FM] mikereidis:
Send me an email.

Digital audio might work better.
[Spirit FM] mikereidis:
For some reason the new app isn't working on Qualcomm FM & audio chips at present, but it will.
[Spirit FM] mikereidis:
I'm not supporting LG G2 at present, because I don't know how to enable the FM audio, and more importantly I don't have one to do testing.

Going forward I am only officially supporting devices I own for testing, or that are very similar.

And I have serious doubts that I'll ever be able to justify buying a G2.
[Spirit FM] LenAsh:
Any apk/libs/drivers we could send that MIGHT help?
[Spirit FM] Lord Kalma:
Hey.

First of all: Your app is GREAT.

Second: on my device (HTC Explorer) [as I know not officialy supported by you], running on andoird CM 10.2, is it possible to run the app with BT on? When I try the whole phone breaks....

Thanks in advance
[Spirit FM] Aimbot91:
I really love the first Spirit FM but this version is awesome:D

I have one question:is this version going to support LG Optimus 4X HD?

Sent from LG 4X HD using Tapatalk 2
[Spirit FM] mikereidis:
Post #2 says "Explorer a310e / a310b" is supported.

It also says "No RDS unless rooted", which indicates some strange limitation of the OEM API that no other phone has

For BT on operation, try setting Debug-> HCI Access to "Bluedroid Shim" and reboot the phone. After a ROM update you'll have to start Spirit, then reboot again.
[Spirit FM] mikereidis:
If somebody can figure out how to enable and disable FM audio, to headset and speaker, that's the first step.

Once I have some sort of audio plugin mechanism, this FM audio enable/disable info could be used to write or configure a plugin.

But don't get your hopes up too much. It's HARD to find reliable ways to enable FM audio, and it's easy to get interference from phone calls etc.

There's 1 or 2 phones where somebody experimented and passed info to me, but the results aren't very good.

My GS3 works fine with digital audio. Note2 is supposed to be almost exactly the same. But people report they only get 1 channel. It takes time, effort, and a device in my hand to make it work well. And what works well on one ROM, AOSP or stock, may not work well on others.
[Spirit FM] mikereidis:
:)

It'll get figured out.

In the meantime I'm finding it can take many, MANY days of work just to get a single circular knob control to work well, and to look half decent. Hair ripping "fun".

I need an artist and a UI guy on my "team" but so far I've only got me, and I can only just barely pay myself.
[Spirit FM] mikereidis:
4x is one of the 2 with user/dev supplied audio config info. So it's only just barely supported in Spirit1, and not well.

So, no.
[Spirit FM] Lord Kalma:
I didn't knew my little pico was supported officially. Thanks for that.

Thanks for the quick reply, and thanks for this app, really.

Now I can turn BT on, and that's cool. But there is no option to route the sound to my bt headphones. [On any media player is automatic]
[Spirit FM] degsie:
I have a Galaxy S (i9000) rooted and with C-Rom V10 (4.3.1) loaded. I have experienced a serious problem when running the latest free version of Spirit FM in that my microphone and earpiece is muted for all calls (incoming/outgoing) just after using the app and unplugging headphones. The only way I can recover is to reboot the phone. Has anybody else experienced this?
[Spirit FM] collipo:
Same problem with a Galaxy SIII.
[Spirit FM] Lagkage:
FM audio is very different then other audio, such as media audio. Digital audio, which is required to route FM audio to bluetooth, is not supported on the Explorer.

---------- Post added at 03:01 PM ---------- Previous post was at 02:06 PM ----------

Go into settings->debug->power restart media and choose enable. You can also try to set Audio->Method to digital auto.
[Spirit FM] mikereidis:
Good...

On most phones, especially older and less expensive ones, FM audio is analog, not digital, and is injected very late in the audio processing chain.

The only stock devices that support FM over Bluetooth, or most digital audio features are Sony's.

Spirit has a unique digital audio mode for Sony's and some popular rooted devices as specified in post #1.

The new a2d.fm / Spirit2 is fully digital, but support is limited to those same devices.
[Spirit FM] mikereidis:
As Lagkage said "debug->power restart media" should work around this, but it's a brute force solution that resets the whole audio system.

Does this problem happen when a phone call interrupts FM ?

Have you run Spirit on different ROMs ? I've thankfully had very few reports of problems recently, so unless reports start pouring in, I think this is ROM specific or otherwise unusual.

If Menu-> Settings-> Audio-> Method is set to "Digital Auto", try setting it to "Automatic" or vice versa.
[Spirit FM] mikereidis:
Same C-ROM ?

See post above, and all my questions are the same.
[Spirit FM] mikereidis:
I've been searching for a way to unofficially support GT-I9000 without associating relatively rare speaker breakages with the new a2d.fm / Spirit2 app.

It sounds somewhat bizarre, but maybe I can occasionally produce a different package that is named "Speaker Breaker FM" or similar. Hopefully the name itself would indicate the risk and not tarnish the new apps' reputation.

It would be free, not sold, and completely unsupported. And the new a2d.fm would still refuse to run on the GT-I9000.

Otherwise, I just hate what is effectively a waste and an artificial limitation.
[Spirit FM] mikereidis:
HTC OneX LTE and similar now working again. :)

Apparently the driver didn't like 4 simultaneous calls to start when the first hadn't finished yet, LOL.

Maybe, hopefully, a2d.fm first release Thursday or Friday. First impressions are important, so I want to launch it in good condition.

And it's also VERY tiring to hear bug reports for known & documented issues from people trying to be helpful, but who haven't read a bug list and who many not even know a list exists.
[Spirit FM] xmguy:
How is spirit 2 looking for the commando 4g?

Sent from my (Verizon) Samsung Galaxy S4 using the XDA app!
[Spirit FM] dk147in:
[MENTION=3575078]mikereidis[/MENTION]

Is it possible to change the image of application screen, as in 4.4 kitkat android on lock screen the application icon image appears as background which is stretched, so if it is possible to put some other nice looking image that would be much better.

Thanks

---------- Post added at 11:40 AM ---------- Previous post was at 11:39 AM ----------

[/COLOR [MENTION=3575078]mikereidis[/MENTION]

Is it possible to change the image of application screen, as in 4.4 kitkat android on lock screen the application icon image appears as background which is stretched, so if it is possible to put some other nice looking image that would be much better.

Thanks
[Spirit FM] mooms:
Hello, just wanted to say hi and thanks for this great app. Do you plan to continue to update spirit 1 (for Android 4.4) ?
[Spirit FM] jeksquaxe:
thank you so much
[Spirit FM] dillerdaller:
a2d.fm , is it available?

I just can't find my way through the inferno of URLs in this thread :eek:

Is it or Is it not available, the a2d.fm beta version? I read your mentioning of 18 nov, and somewhere that we could see more on your post #1 as is if could be found there.

Maybe I am too dumb, I just can't find it anywhere...

:cyclops:
[Spirit FM] nicesoni_ash:
It's already working just fine on 4.4.

_____________

Sent from my GT-I9300 powered by Temasek Rom & Kernel

Fueled by 7000mAh ZeroLemon Battery
[Spirit FM] Lagkage:
There is no beta version of a2d.fm (Spirit 2) available yet.
[Spirit FM] mooms:
Thanks for the info, I wasn't sure.

I have a I9000 and I plan to upgrade to 4.4 once it is stable enough.
[Spirit FM] zaclimon:
Looks good for people (well for me at least), but would it be updated like a2d? I suppose that it will not be as updated as regularly but at least it will be updated sometime.
[Spirit FM] mikereidis:
I've seen this on my Nexus 7 2013. Looks nicer in landscape than portrait, but need a lot higher resolution to look good.

I'll consider changes that are important, but I'm not sure this qualifies. Right now all my focus is on the new a2d/Spirit2 app.
[Spirit FM] mikereidis:
I haven't seen or heard of a single case yet where Spirit worked on 4.3 or earlier and doesn't work on 4.4.

There is nothing inherent to 4.4 that I'm aware could cause a problem, other than the 4.4 lockscreen cosmetic issue mentioned above.

If there is, I'm sure someone will report it.

In the meantime, I'm personally avoiding most 4.4 releases until they are more stable. No use trying to fix "problems" that are actually in the BT stack, for example.
[Spirit FM] mikereidis:
No, not as often for a Galaxy S specific release, but let's "count our chickens AFTER they hatch".
[Spirit FM] mikereidis:
a2d.fm / Spirit2 has a new thread here and post #1 includes a download link: http://xdaforums.com/showthread.php?t=2537861

For the most part, all questions, discussions etc. about a2d.fm / Spirit2 should go in the new thread, including discussions about the differences.

This thread will now deal exclusively with Spirit1 issues only.

It's late; I promised to try and get it out today, and so it is, but I'll be limited in what I write for now.

Thanks and happy holidays ! :)

Mike.
[Spirit FM] egemet:
Same here. UI opens but no sound. 4.4 KitKat Temasek ROM V6..
[Spirit FM] nicesoni_ash:
Fine here, no problems.

_____________

Sent from my GT-I9300 powered by Temasek Rom & Kernel

Fueled by 7000mAh ZeroLemon Battery
[Spirit FM] mooms:
Thanks for the response mikereidis (and for this great app too).

Do you know if it also works with ART ?

I'm also avoiding 4.4 until it is stable enough, but I will surely try to enable ART, so I hope Spirit will work with it.

have a great day.
[Spirit FM] egemet:
Which kernel are you on? Tema-Wolfson or Boeffla?
[Spirit FM] nicesoni_ash:
Tema-wolfson

_____________

Sent from my GT-I9300 powered by Temasek Rom & Kernel

Fueled by 7000mAh ZeroLemon Battery
[Spirit FM] egemet:
FM Radio works after switching to Tema-Wolfson kernel. Thanks..
[Spirit FM] mikereidis:
I tried ART once and I saw some JNI related error.

ART is "not ready for prime time" yet.

I will make Spirit work with ART, assuming it's possible when using JNI libraries.
[Spirit FM] tito060275:
upgrade

Hello. Can i have the upgrade to the new spirit fm 2? I buy the Spirit fm unlocked 4-5 months and was work fine with samsung sg2 but now i buy a Htc one and i want to try the new version.
[Spirit FM] mikereidis:
Hi,

As you've seen, Spirit2 discussion should go in the new Spirit2 thread: http://xdaforums.com/showthread.php?p=47774572

I will try to focus on customer requests, as I have with Spirit1.

In the same vein I think I'll re-enable the Galaxy S GT-I9000 for the next release of Spirit2.
[Spirit FM] mikereidis:
Copied from Spirit2 thread: http://xdaforums.com/showthread.php?p=47787045#post47787045

The Moto G is now for sale here in Canada. I think it's the first Google-era-Motorola phone with official (or unofficial even) FM and is the closest thing to a Google phone with FM.

It's a $200 phone, so I'm hesitant to support it, but it has the potential to sell large quantities.

It appears the bootloader is easy to unlock and may not even void warranty.

I've looked at the FM app and system dump. It uses Qualcomm FM and I'd guess Qualcomm audio, so the OneXL/Qualcomm support in Spirit1 and Spirit2 should work or be close to working.

I think I'll get one and try it out...
[Spirit FM] 089man:
Hi Mike, I used spirit now a long time, every day I'm so happy with it. Works so well. Now I updated my s2 to pound rom Android 4.4 kitkat and your app works here also perfect... Thanks for this great spirit... Have the pay version....

I9100 Tapatalk 4, Rom1 Pound Rom 4.4 Kitkat
[Spirit FM] Joe Tony:
Hi all

I have a Galaxy Note N7000 with Paranoid Android 3.99, I'd like to use spirit for my radio FM (without internet) but it doesen't work using this guide

http://xdaforums.com/showpost.php?p=21232473&postcount=4254

Someone can help me?

Any ideas?

Thank you
[Spirit FM] mikereidis:
Ignore that post. It's almost 2 years old and for a very different phone.

The last best release of Spirit1 is dated Sept 18, 2013. Use that, or the latest Nov 24 Spirit2: http://d-h.st/J8p Questions/issues about Spirit2 should go in the new thread: http://xdaforums.com/showthread.php?p=47788387#post47788387

For Spirit1, either uninstall completely and reinstall, or clear the app data.

All default settings should work fine on such a widely used phone as GT-N7000. I have one.

The most common problems are lack of SU/root, and kernels that don't have an FM driver enabled.

For SU/root go into your SuperUser or SuperSU app and ensure Spirit is listed there as green/allowed.

If there is a config app for your kernel, there may be an FM driver selection that needs to be enabled.
[Spirit FM] JimDandy68:
Is there any chance of being able to get a hold of a version of Spirit FM that works on the Amaze 4G, free or paid? Seems that this old version may be the only hope for something to plug into JB ROMs. Much appreciated.
[Spirit FM] tigourubu:
BUG

Hi,

I need a help.

My Xperia ZL,it's CM 10.2, and i install Spirit.FIrst was no sound, i configured audio for digital auto and ok.Now,when I disconnect, and then try to listen again, the sound comes out very bad, as if without the phone, I need to solve resetting my smartphone.

Any idea how to solve this issue?

Excuse for my English.

Regards,

Thiago
[Spirit FM] mustasusi:
HTC One Max

Hello Mike,

I'm trying Spirit FM latest version (28 oct) on my new HTC max and this is what I get:

No scanning, no sound, no reception (negative value as you can see). Phone is stock unrooted and supports FM out of the box, though playback forces mono and I couldn't figure out how to change it

Anything I can do to make Spirit work?
[Spirit FM] pckloss:
Bug?

Hi Mike,

I use paid version for a few weeks on Samsung Galaxy S3 (Stock ROM, rooted with Boeffla Kernel). I keep a shortcut to Spirit on my dock and tooday accidently I tap it so app start to work (without headphones pluged in). Almost the same time when the app appeared on the screen I switched it off so I even hadn’t heard any sound from the app working. Some time after that I had a call and when I tried to answer it I heard no sound interlocutor in phone. When I restarted my phone everything worked fine so when my interlocutor called once again there was no problem with sound. This situation happend twice today and once a few days ago but then I was no sure what was happened (what could be a reason for strange behaviour of my phone). As I remember situation could be the same – I switched on the radio without headphones plugged in (or swith it off very quick (with headphones plugged in) so it was not able to produce the sound). Then I was no able to answer the call without restarting phone.

I run on Android 4.1.2 (stock).
[Spirit FM] Joe Tony:
Wow amazing, with Spirit 2 works perfectly, SuperSU garanted always ;)

I'll use the new thread of Spirit2 for anything else

Thank you so much :cool:
[Spirit FM] mikereidis:
I think you quoted a rather old post. I'm not sure because thread search isn't working.

Amaze worked at one time. I'm not sure or don't remember if something broke on Spirit or the ROMs.

Here's some old versions of Spirit, from Feb 7 - March 3, 2013: http://d-h.st/TuR

I still have every released version of Spirit if you can narrow down a date range of Spirit versions that worked.
[Spirit FM] mikereidis:
The HTC OneS/X LTE ALSA setting may work. Or "Sony Z...".

Send me an email.
[Spirit FM] mikereidis:
I'm interested to know more details. It appears the Max is using Qualcomm, unlike the Broadcom on the HTC One.

Please send me a debug log. Tap the frequency button, enter 7 and OK, then press send on your email client after 20-30 seconds or so.
[Spirit FM] mikereidis:
If you're rooted, try Spirit2: http://d-h.st/TuR I'll be putting out a better version later tonight though.

Spirit1 often has problems if you switch away while it's starting.

That's a long-standing known defect, due to the development pace. Fixing it would require months to make it run smoothly on most phones, since it's been part of the bad architecture forever.

The proper, designed solution is Spirit2. With S2 you can switch away immediately, and you don't even need a UI to start it or control it.