yashsingh1/xdaforums huggingface dataset:
[Spirit FM] cajunflavoredbob:
Hey Mike, what are the chances of getting the app to work on the Motorola Defy XT557? It's the Republic Wireless CDMA phone that I'm using as my second line right now. The basic FM radio app works ok, but I miss using Spirit like I did on my Touch Pro 2 as I did years ago. I know it won't work on the Note as the hardware is crippled, but the Defy has FM support and is rooted if that helps. When starting Spirit free for the first time, I hear audio, but then there is no audio coming from the FM radio once it starts. The signal meter indicates decent signal, just no audio from headset or loudspeaker.

All in all, it would be awesome to have this working again for old times sake, but it's no big deal if it can't be done or you simply don't want to. :p If it can be done, I know an entire cellular community that would eagerly pay for the market version over the crappy stock app.
[Spirit FM] mikereidis:
You said "When starting Spirit free for the first time, I hear audio..."

Do you mean you hear a brief burst of FM audio ?

The Audio-> Method setting of Motorola (which should be automatic) seems to work on almost every Motorola device with FM, custom ROM or stock. If it doesn't work, I'm not sure why.

There's trouble-shooting info here you can try: http://xdaforums.com/showpost.php?p=31983151&postcount=4465

You can also try running both Spirit and Motorola app at the same time, with Motorola first, or with Motorola started second.

Beyond that, try enabling Debug-> Silent Loop. If that doesn't work, try disabling Silent Loop and enabling Debug->Play Audiotrack.

Changing Debug-> Audio Focus may also help. Or Debug-> FM API.
[Spirit FM] cajunflavoredbob:
I'm testing all this on the free version as both Play versions show incompatible. I'd happily pay full price and sideload if we could get it worked out, but like I said, I understand if you'd rather not add another device.

Sorry, I reread my comment. Yea, that was a bit vague. What I meant was that there appeared to be some sort of sound coming from the speaker during the first time the Spirit FM app runs. It fades in, lasts for a second, and fades back out. I thought it was built into the app to test the speaker or something. This only seems happens on the first time the app is run or after clearing cache for Spirit. Beyond that, Spirit does not make a peep.

It didn't work when setting it to Motorola. Restarted the app and everything.

I'll have a look after posting this reply, and report back anything I might find.

With the FM app running, but not playing anything, I get no audio from Spirit.

Something curious to note is that Spirit is granted SU rights when the stock FM app opens up.

I also tried it the other way by starting the stock FM app after Spirit, but I heard nothing but crickets.

Silent Loop gave an error stating "No FM radio found" after closing and restarting the app. Play audiotrack caused a reboot when I closed the app and tried to reopen it. The reboot happened after tapping on the option to "Keep" when the pop up dialog box showed up. After that, it showed the "Please wait..." dialogue box and rebooted. After it finished rebooting, the app opened without the same issue, but still no audio.

Changed Audio Focus to Enable, closed the app, and reopened it. No audio.

Changed FM API to OEM Proprietary, closed app, and reopened it. No audio.

Changed FM API to Low Level, closed app, and reopened it. No audio.

One other weird thing is that Spirit will randomly close when the stock FM app opens up, but it only closes when I hit the power button on the stock app. That may or may not be important that there is a power button in the stock app for the FM radio.

---------- Post added at 09:46 PM ---------- Previous post was at 09:03 PM ----------

I will respond to the troubleshooting steps I believe are relevant. Let me know if I missed any.

This device is not in the compatibility list.

Motorola Defy XT557

No change, but I did hear some sound when enabling different device methods. Nothing special, but they all sounded like someone tapping on a microphone once or twice.

HTC

HTC One X/X+ Int

Sony Ericsson

ZTE SanFran2/Blade2

msm7x30 HTC

msm7x30 Samsung

msm7x30 Huawei

E-mail logs sent.
[Spirit FM] mikereidis:
Media apps, like Spirit, are supposed to close when they "lose permanent audio focus". This will happen if you open another media app. I think the same can happen if you open Spirit, or most FM apps, when another music player is open. The previous music player is closed.

This can sometimes prevent 2 FM apps from running at the same time. Disabling Debug-> Audio focus can disable this, but there can still be problems. The default automatic setting generally means it's disabled when using OEM Proprietary FM APIs (mostly on stock, un-rooted ROMs), since there is stuff in the API to handle it automatically. And it automatically gets enabled when using low level APIs, because Spirit has to deal with it then.

Well thanks for trying, but I'll just have to continue to call this device un-supported. EDIT: Guess not, we got it ! :)

There are some UI modified Motorola FM apps posted here: http://xdaforums.com/showthread.php?t=1942120 and some older ones here: http://xdaforums.com/showthread.php?t=903103

It is now, under "These devices with TI chips do not work well:".

EDIT: Guess we can change that for the better now. :)
[Spirit FM] cajunflavoredbob:
I tried out some of the suggestions in the first thread. The best I managed to do was get that clicking noise when it starts up and when I switch to a new station. No other audio, although stock FM app works fine.

Oh well, thanks for trying. Maybe I'll dig my Touch Pro 2 out for nostalgia's sake...

---------- Post added at 11:31 PM ---------- Previous post was at 11:14 PM ----------

Steps in the e-mail worked perfectly. Information responded via e-mail.
[Spirit FM] mikereidis:
I updated post 5001 with some good news today: http://xdaforums.com/showpost.php?p=35658184&postcount=5001

Briefly:

- Rumours of the death of Spirit1 are much exaggerated.

- ST-Ericsson proposed Android FM API is updated December 19.

- Nexus 4 may have usable FM; we are close to an answer it seems, thanks to new XDA member craggy_island. (EDIT: Bad news: no FM.)

And post 5000 was reserved for some developer humour & the not necessarily so humorous relationship to the god-awful mess the Spirit1 code has become, and why it needs to go the way of 2012, and welcome 2013: http://xdaforums.com/showpost.php?p=35658172&postcount=5000
[Spirit FM] cajunflavoredbob:
Once the Defy is made compatible in the market, I'll advertise for you in the Republic Wireless forum. Basically, it's 100,000+ users with only a Defy XT in their hands. But for $19/month unlimited everything, you can't really complain much about that, I guess. Thanks again for working it out tonight.
[Spirit FM] mikereidis:
December 20 Free: http://d-h.st/3Rf

- Audio-> Method = "msm7x30 Mot XT557/Hua GS300" for Motorola Defy XT557, Huawei GS300 & other newer lower end devices using /dev/msm_snd.

- Audio-> Method = "msm7x30 Custom" for future devices. Set Debug->msm_snd speaker & msm_snd headset.

- Unlocked User Interface-> "Freq Btns = Media" changes seek up, down & frequency buttons to functions of media buttons.
[Spirit FM] mikereidis:
Let's make sure it works well first, without too many problems.

The new Dec 20 Free version here should work automatically, and feel free to post this link elsewhere: http://d-h.st/3Rf

So this is a stock ROM you have right ? Is there a stock FM app ?

If you deny SU/root to Spirit, then do a full cold reboot of the phone, does it still work ? Anything different ? Please send a debug log in this state with Dec 20 Unlocked I've emailed.
[Spirit FM] cajunflavoredbob:
Alright. I'll test it tomorrow evening. Nyquil is kicking in. Bedtime.
[Spirit FM] k00pie:
Motorola Defy XT557, Huawei GS300 are actually msm7x27a devices and not msm7x30 :)

While we are at it, its Huawei Ascend G300 instead of gs300!

Thanks & Keep up the great work!
[Spirit FM] mikereidis:
Thanks, I've updated the texts to G300.

I'm aware the audio method names of msm7x30, qsd8250 and qdsp5v2 aren't necessarily automatically accurate. They were set over a year ago and taken from names in the kernel (?) code I found that related to them.

And it bothered me a bit but I didn't want to take the time to ensure they were more accurate, just for a name most people have never heard of. And now I'm hesitant to change them so as not to confuse anybody, particularly when someone comes upon an old post with an Audio-> Method setting specified. If I redid it now, I might use msm_snd to denote the use of /dev/msm_snd .

So it's legacy and sort of backwards compatibility stuff. If it ain't too broke, I don't wanna "fix" it, and break it more.

Spirit2 is the answer, and I hope to ensure very few people will ever have to know what an audio method is or what to change it to; it will just be automatic (more-so); same with just about all the Debug options.
[Spirit FM] k00pie:
I can surely understand that, i just thought it was a "new" method you added in the latest version. Automatic detection is working anyway, at least for the Ascend G300. Kudos for the explanation and looking forward to Spirit2
[Spirit FM] mikereidis:
Good news is we have an answer for FM on Nexus 4. Bad news is the RSSI is always 0 and the FM receive antenna pin is likely grounded. :(

There were 2 new "msm7x30..." audio methods, but this common msm7x30 prefix applies to 5 other methods also.

The first audio method for custom ROMs was #2: "msm7x30 direct HTC" for my first device the HTC Legend. It was preceded only by #1: "HTC" which was/is the method for the stock ROM.
[Spirit FM] antonio89drop:
Thank you very much for your kind and accurate response.

TI wish you a good job with Spirit FM 2 that is more than good as I imagine I will wait with impatience.

You want to test are available I have a Xperia Active, Galaxy Player, the next I would like so soon.

Thank you again!
[Spirit FM] CR5N:
Hi Mike. Just to say I still use SpiritFM regularly on my HD2. I am using an old unlocked version even though you did send me the license file for your newer versions as it just works without any issues with the gingerbread build I use. I don't need any eye candy as radio is ear candy! I will keep tabs on this thread and news on Spirit2 - btw will you start a new thread or continue on this one? Happy holidays to all :)
[Spirit FM] Metallico:
Hi Mike, how are you?

I need some help here...

I'm using the light version of your amazing app and now I'm facing an issue.

This issue its that when I starts the app just work for a short time and then stops.

The radio was working great a time ago but I didn't use it for one month more or less.

If you can help me I will be happy:)

Best regards from Uruguay
[Spirit FM] mikereidis:
If it ain't broke, don't fix it ? :)

Feel free to send an email if you want to try the latest. I keep every released version if you ever need to go back to older.

I'll start a new thread, perhaps over the holidays, because the features, settings and tips will be different, and this will avoid confusion. Better to start fresh, and this thread will eventually get slow and quiet, perhaps in a year or 2.
[Spirit FM] mikereidis:
Fine thanks. :)

Well, apps aren't like cars that may act a little strange if not used for a few months. But if the environment/ROM has changed...

Which phone and ROM ?

The app stops ? Or crashes ?

Or does RSSI and tuning etc. stop working ?

Or does the audio stop ?

Can you restart Spirit and it works for a while more, or do you have to reboot ?

Please send me two debug logs; one right after it starts and is working, and a 2nd when it stops working.

As always use Menu-> Email Logs and press Send after 20 seconds. Thanks !
[Spirit FM] Metallico:
Ohhh sorry!

I didn't give you any details of my phone or rom.

I'm using an I9100G and the rom is the Cm10.1

Maybe it's because the last time I use the radio was on Cm10 but I don't remember.

Later I will try to send you a mail log

Thanks man.

---------- Post added at 08:40 PM ---------- Previous post was at 08:39 PM ----------

Btw: the app doesn't crash, only the sound stop
[Spirit FM] mikereidis:
Enabling Debug-> Suppress System Sounds and restarting Spirit may help.

Any short beeps or clicks may stop the sound, including button, volume control and camera click sounds.
[Spirit FM] cajunflavoredbob:
Sent you and e-mail response with screenshots.
[Spirit FM] mikereidis:
12/21, 2012 :) : http://d-h.st/pnT

Pretty much the same as December 20. Also updated on Play.

---

Holiday greetings and/or Merry Christmas and new Mayan epoch to all. :)

Today we get our first real snow-storm in the Ottawa/Gatineau capital region of Canada. Could be 30-40 cm and the winds are currently gusting to 36 kmh. Thats 12-16 inches and 22 mph. Nice to work from home...

Hours will be reduced until the New Year.

Drive safe and don't drive and text etc.
[Spirit FM] felipevsw:
What should I do to make it work on the ST25?

And only this free build of Dec 4th work, or, as I already have the paid version, the paid version incorporates these changes?
[Spirit FM] dwellexity:
I am trying to modify my phone's fm radio app to make it work without headset plugged in?

I have no idea what to change?

can u help, please

I can send you my radio.apk and fmrxservice.apk

btw, my phone in sony live with walkman (WT19i)
[Spirit FM] mikereidis:
All versions have this support since Dec 4. It works fine and automatically on my stock Xperia P and Sola, and I'm sure works on U and Go as well.

On custom ROMs, if the cg2900 FM driver is loaded, the Spirit V4L support for Qualcomm will work a bit, but no audio.

With a little work, I could make it work well, with RDS, but again without audio.

As for audio, I will likely eventually find a working audio method that can work on custom ROMs, but I have other priorities right now.

As it is now, there are so few people with these phones, and so few with a few minutes to help me out, that it's very difficult to find people to test the FM transmit capability that, in general, so many Android users would find exciting.

There is irony in doing Spirit2 API development on phones that don't meet the criteria I've selected for Spirit2 official support.
[Spirit FM] mikereidis:
Sorry, but I can't help you too much, other than what I will write here.

The easiest way is not by code, it's by using a headset plug with no cable attached.

Via software, I'd guess that the kernel driver that deals with headset events could be modified to always report headset as plugged in.

I've experimented before with sending the same system Intents that signal headset plugged in, but it didn't work.

The FM app code that imposes this restriction is usually not in the FM app itself (radio.apk), but in the System FM service (fmrxservice.apk I'd guess).

So I'd guess you could decompile / baksmali fmrxservice.apk, find the location, do a smali mod and rebuild the APK. I think for a system service you would need the signing key for the ROM, unless maybe you just change the code; I don't recall if the code is signed.

I don't know your device, but if it's a 2011 device with a TI chip, the code has been open sourced and you could look through that. The TI part is pretty big and IMO much too layered to make easy sense of. There may also be parts of the TI FM service in native SO libraries.

That's about all the info and help I can offer on the subject. If it was easy, especially on highly popular phones, somebody would have done it already.
[Spirit FM] dwellexity:
does this work on Sony live with walkman WT19i ?
[Spirit FM] mikereidis:
I don't think so.

Only takes a few minutes to download the free version near top of post 1 and see.

If it works, it works, but that's very doubtful. I've never been able to support much more than 1 Sony device, until recent work for some stock Sony 2012 devices. I don't have the time to do any fixes for them.
[Spirit FM] Metallico:
It works Mike! :)

Thanks a lot.

Merry Christmas for you and your people and happy new year ;)
[Spirit FM] acikspingebu:
can i know what is the function of that enable suppress volume?
[Spirit FM] RMRG:
And the s3 LTE ? :(
[Spirit FM] mikereidis:
Great ! It will be automatic next release. I think I intended this but forgot.

Merry Christmas...
[Spirit FM] mikereidis:
No.

The "global-ish" GT-I9305 might have a chance, with custom kernel, if anyone can prove there is an si4705 FM chip in it.
[Spirit FM] mikereidis:
Sorry, I can't understand your question.
[Spirit FM] acikspingebu:
nevermind ... my problem solved when i enabled the suppress sound ... ^^ .. thank you...
[Spirit FM] antonio89drop:
For

mikereidis

You want to inform a discussion on the news in recent days on recording from FM radio.

The news is that yesterday I had the opportunity to use the Mini Galaxy S3 Stock and tried the FM radio mounted on it from samsung and unlike Note/Note2/S3/S2 (jelly beans) that record sound with Mono FM Radio Stock the Galaxy S3 Mini Stereo happily records of the precise characteristics of the file are

format. m4a to 44.1 KHz stereo 128Kbps

I also saw that this phone has a S3 Mini Hardware (CG2900) very similar to the Galaxy Ace 2, Galaxy Beam, Galaxy Advance

NovaThor U8500 processor and the same Xperia P / U / Go / Sola.

I wanted to ask a curiosity already present Spirit Fm you can record Xperia P?

if the answer is YES what is the procedure to register on Xperia P can you tell me?

Thank you for everything you want to inform about this new Mini Galaxy S3 and ask this curiosity on the method of recording Xperia P.

I await your response

Thank you!
[Spirit FM] mikereidis:
Yes, Spirit can record on stock Xperia P using Menu-> Test-> Record. Even the free version of Spirit can record (because it's so far are rarely used test function for stock ROMs only) and there's a bunch of settings under Menu-> Settings-> Record .

Spirit does the same thing for recording on Galaxy S2/S3/Note/Note2 : MediaRecorder.start() using the number 8 as an input source. Ignore the API telling you 7 is the maximum.

This only works on stock ROMs, for custom ROMs on Spirit2 I'm recording directly from the PCM devices, such as /dev/snd/pcmC0D0c .

But I have doubts I will officially support any cg2900 device with Spirit1 or 2. They are budget devices, ST-Ericssons' future is questionable, and I'm going to concentrate on higher end devices running custom ROMs.
[Spirit FM] antonio89drop:
In the translation I did not understand what should I select to record on Xperia P ie

- What should I select Menu-> Settings-> Record -> Go -> (MediaRecorder or AudiorRecord or Auto)

- What should I select Menu-> Settings-> Record -> Source -> (0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12)

- What do I select when I go to Test-> Record -> (Start o Start 10 o Start 9 o Start 8 o Start 7 o Start 6 o Start 5 o Start 4 o Start 3 o Start 2 o Start 1 o Start 0)

I await your clarification on this.

Again thank you very much.
[Spirit FM] mikereidis:
No settings are needed.

Just do Menu-> Test-> Record-> Start.

It's the same as "Start 8..." since 8 is the default setting for Source.

Some time later, do Menu-> Test-> Record-> Stop.

Recordings go in /sdcard/Music .
[Spirit FM] spannernick:
I tried adding the free version (Sprint UL) to a rom but it say" sorry the app has stopped working" but if I install it over the top of it it works...any ideas..?

Oh and is the a way of change the name of the app to FM Radio..?

I love it was listening to LBC 97.3 yesterday...;)
[Spirit FM] mikereidis:
You want to take my app and change it's name ? That's not allowed. I've worked hard to establish the name and making it look like some generic app is not cool. Modifying my app is not allowed either.

UL usually refers to Unlocked which is my commercial paid app. Redistributing that is a BIG "not allowed".

My apps' name is SPIRIT, not what you wrote, which is the name of a US carrier or a word meaning a fast run.

Redistributing the free version, from links in post 1 of this thread only is "tolerated" but not encouraged. Most attempts don't work because the library is missing or hard-coded paths are an issue. I've only seen one ROM do this right, which is to install it in the same place it would be installed using adb install etc.

If it doesn't work, please don't leave it in the ROM; doing that makes my app look bad.
[Spirit FM] luexi:
Which mean totally no way to work on nexus 4?:rolleyes::rolleyes:
[Spirit FM] D_Angelos:
Does this work now for p990?

Στάλθηκε από το LG-P990 μου χρησιμοποιώντας Tapatalk 2
[Spirit FM] spannernick:
Sorry if I offended you,I didn't mean too,I get my words mixed up sometimes and thing I see it spelt that way(Well I am disabled),I men't the free version not the UL one..Spirit meaning ghost or alcohol..? so sorry if I got the name wrong..And all I was asking if there was a was a way to change the name in the phone not in the custom rom anyway Spirit Free version not working if put into a custom rom.. Thanks..I will remove it from the rom.

Oh works on Galaxy W BTW..(And is your name Mike Reid...We had a actor of the same name who was in EastEnders but he is dead now..RIP. http://en.wikipedia.org/wiki/Mike_Reid_(entertainer) I went to the same school as him)..
[Spirit FM] mikereidis:
Correct.

Assuming "totally" means between about 99.99% and 100% likely.

Never say never, but my remote investigation is complete.
[Spirit FM] mikereidis:
No. Should still work as always though on stock and CM7 based ROMs.
[Spirit FM] mikereidis:
:)

Yes, last I checked I have 53 customers with Galaxy W.

I met a couple of UK gals in the 1980's who sang me a Radio 1 jingle, for I presume this person... "... live on Radio 1". LOL at the radio connection.

I hope to eventually bridge the gap between my US genealogy near Boston and what I presume is the UK origin of my surname.
[Spirit FM] xXdRaGoNrIdDeRXx:
Samsung Galaxy SII NA Version

do you think there will be support for the north american model of the samsung galaxy s3 specifically the canadian virgin one as that is what i have as i would purchase this if it works for my phone
[Spirit FM] mikereidis:
And I'd love to have more customers, but...

US & Canadian GS3's just can't work without the needed hardware. Software can't fix a missing hardware problem, especially a "problem" that was fully intentional by the carriers.

If software could create hardware from nothing but the design of a developer, we'd all have tiny chips turned into super-computers. I don't think even Santa / St. Nick is capable of that.

Merry Christmas to you and all. :)
[Spirit FM] hoss_n2:
Can anyone post apk here i cant inistall it from market please
[Spirit FM] minidou-77:
There is the free version available on the OP (1st post)
[Spirit FM] spannernick:
There is a DJ with the same name who worked of Radio 1 but his surname is spelt differently "Mike Read".. http://en.wikipedia.org/wiki/Mike_Read

so maybe somewhere a long the line your family comes from the UK..:)

Merry Xmas too you to and all,now don't get to merry..;)