yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Thanks for your report welard.

As Victorino86 responded, wired headset is required as an antenna.

But I'm not sure if that is directly related to your problem.

Have you found any way to work around this problem ? Do you have to reboot to make it work again or something easier ? Does powering off the FM/app make this work OK ?

I'll try to test some FM and BT phone call co-existence cases this weekend and see what I can find.
[Spirit FM] mikereidis:
I've never tried this before myself so I can't offer any guidance. I'll give it a shot eventually though. Have you done this before and are you using any specific web tutorial or similar ?

I don't believe I've done anything to prevent this. There are no special protections.
[Spirit FM] mikereidis:
I think the white noise issue is likely solved in v2.0.19, at least when you power FM off. If you or anyone still has it when Mute is enabled, I'll add some code for that. As in many previous releases, the app now uses the ROM FM audio support functions to disable the headset and speaker paths when powered off.
[Spirit FM] scoppyxda:
Hi Mike,

I'm just trying your 2.17 version on my Desire with Reflex rom (2.12), and it works! Rds too is working and I'm very happy for that cause i dont like listening radio without the name of the station, and i was discouraged from the market version not working at all.

I just cannot understand why HTC did not provide this feature on its phones....

Thanks for your great work!

If you need some test on this device, just ask...

BTW, what are the other files provided in zip for?
[Spirit FM] mikereidis:
Great ! Thanks for your report.

The ssd file is a workaround for some devices with the "no audio" problem.

The sprtd file is a background service (Linux daemon) that is most useful for reducing CPU usage (and thus power) when using the Bluetooth On modes, particularly when RDS is active. It can be manually placed in the /system/bin directory and will then be used.

It uses the BT HCI API directly, instead of via constantly starting the hcitool utility. To a programmer, this is vastly superior, but it has the downside of requiring root access.

Re: "why HTC did not provide this feature":

I presume you mean RDS data support since the stock HTC Desire ROM has the HTC FM app.

There actually IS some RDS support in the HTC app, but it doesn't seem to display the data. It stores some data as station info though.

On a similar note, I've seen that the HTC app has internal support for a transmitter mode. Yet AFAIK HTC has never supported FM transmit.

Based on my decades of experience working for companies trying to make profits, I'd surmise that:

One or more enthusiastic programmers added some RDS support, but before completion their manager(s) said, "Just ship it". If it had too many bugs they might also have disabled some features. Disabling is usually faster/cheaper than fixing.

And now the HTC FM app is feature frozen, and gets only maintenance updates if anything. Google and Apple and the carriers and many customers feel that old fashioned radio waves are dead anyway, so why spend any more money on an FM app ?

And yes, at almost every company I've ever worked for (at least 20, salary or contract), several of my "wonderful ideas" were rejected in favor of just shipping the product quickly. I understand that, it's the profit motive, and any company competing with other companies must profit or die.

But as an engineer hoping to create useful, elegant and "proper" code, it's frustrating.
[Spirit FM] magnus48:
http://code.google.com/p/android-apktool/

Install the program as writed in the above link.

Usage:

Copy a framework-res.apk and the FM.apk into the foler of apktool, go to terminal

apktool if framework.res

apktool d FM2017.apk

this will decode the apk. You can edit the drawable item's or traduce the app into another language

Normally to rebuild the apk you should write

apktool b FM2017 FM.apk

The result is FM.apk it's about 50 kb's little then the original and it don't wants to be installed¿?
[Spirit FM] cos68:
Thank you for this update. I just want to let you know that it is working perfect on both my LG GT540 and my Desire with Oxygen ROM. I can now switch between headset and speaker without any problem.
[Spirit FM] ghiki:
You need to resign it for install
[Spirit FM] mikereidis:
Q: Why does Spirit show "Error: No FM accessible" at startup ?

A1: On most custom ROMs, Spirit requires SU or "root". If this is the problem, the debug line should be similar to this:

SU:1 Fm:BC2 Su:0 Bt:1 Ht:0 Mo:BCU

SU:1 with both letters of "SU" capitalized means that SU is disabled. (As does "Su:0", which I know is confusing.)

Values higher than 1 for "SU:" indicate one of the different SU types.

On some custom ROMs, an SU app or system setting may need to be set to enable apps to request SU. When the SU app prompts for SU permission, it needs to be given.

On stock or stock derived ROMs, or on certain devices/ROMs, SU may not be needed, but it results in more detailed debug logs.
[Spirit FM] Spectator_0o:
Thanks! It's working now. I actually didn't do anything different, except I enabled then disabled automatic SuperUser permissions, then it asked whether I wanted to give permission the next time I started SpiritFM. Annoyingly it simply wasn't doing this before.

I was simply testing this for my brother who's on a Samsung Galaxy S I9000, but he got it working straight away. Since he'll actually use it I'll push him to buy the app from the play store, for you're hard earned work.

Cheers!
[Spirit FM] mikereidis:
Thanks for the log. As I emailed, and this is good general advice for many phones, especially HTCs using Broadcom chips and those using one of the "qdsp5v2" audio methods ( /dev/msm_audio_dev_ctrl ), as specifically set or as set automatically:

Can you try setting Audio-> Method to "qdsp5v2" (the plain one, near the bottom) ?

If Audio works, try that. If not, try setting Debug-> Mute kill mediaserver to "Disable" and restart.

Another possibility is to set Audio-> Method to "qdsp5v2 new".

BTW, for some reason the UART mode didn't seem to work for you. Most likely due to the changes that run BT all the time on most ICS+ ROMs, but not sure.

If Bluetooth doesn't turn on automatically and you see Spirit is not working, turn Bluetooth on manually. Or you can try to force it by setting Debug-> HCI Access to "BT Socket".
[Spirit FM] Joel5121:
Tried this using Xperia Arc CM9 in Malaysia. First time launch rebooted my device. After that launching the app is fine but can't get any radio stations. Can anyone help? Really missed FM radio from stock rom :(
[Spirit FM] Aliapaydin:
I have got a problem. When I listen to radio and then close spirit fm app, I cannot hear incoming call ringtones and even the call voices when I answer it. I open speaker mode but I cannot get sound anyway.. But I can listen to music with apollo. Can you help me about this??
[Spirit FM] 0kti:
+1

Wysyłane z mojego GT-I9001 za pomocą Tapatalk 2
[Spirit FM] Scofield81:
Hi,

I'm using "qdsp5v2 Altern" and the audio works well.

I tried change Mute kill mediaserver to "Disable", ''Enabled '', ''Automatic'' and when I receive a call the device did a reboot.

I bought the unlock apk. If you want I can provide some logs to help you solve this issue.
[Spirit FM] mikereidis:
Hi, I'm out of town and can't respond well for a few days.

Sony's are not well supported and new ones have an ST-Ericsson chip I don't support.
[Spirit FM] mikereidis:
Yes send a log with menu> email logs.

Reboot no matter what the setting ?
[Spirit FM] LLStarks:
There was no radio-iris.ko built like you had, just a radio-iris-transport.ko.

Could that be the reason the symbols aren't found? I've seen no reference to them outside of the Aurora repo.
[Spirit FM] mikereidis:
Oh yeah, those 3 symbols are in radio-iris: https://www.codeaurora.org/gitweb/q...ff;h=4a8a4b1f27ccf01758c00e63451f1a69b32f2b36

I`m away from my development PC this week, but I recall that one of the drivers was normally built into the kernel and the other was a module, perhaps so that different transports could be used.

But I`d suspect you should be able to build radio-iris as a radio-iris.ko module.

But then I suspect we`ll run into the other issues with no SMD or Qualcomm BT/HCI support in the kernel.
[Spirit FM] mikereidis:
What device and ROM ?

The brute force fix may be to enable Debug-» Mute kill mediaserver and restart the app.

But this will likely silence or delay phone call ringing and audio notifications.
[Spirit FM] LLStarks:
Hmm. Now I'm getting this with an AOSP kernel with Iris compiled into it:

<3>[ 1183.537219] [0: modprobe: 4464] iris_radio: Cannot open the command channel

But fmconfig isn't present on the device and Spirit Free reboots the phone when I load it.
[Spirit FM] Scofield81:
Hi,

I'm using the ICS CyanogenMod 9 ALPHA (Build 5) from ARCO.

Samsung galaxy W GT-I8150.

I sent a log to your email. I hope it will be useful. You need more debug?
[Spirit FM] IvanKurnia:
I'm using CyanogenMod 9 for SAMSUNG Galaxy Wonder (GT-I8150)..

works great in Indonesia..

but system freezes after click Shut Down Radio.. need to unplug battery and restart
[Spirit FM] maxfu:
I just started adding Chinese xml files. I will put the files here when I am done.
[Spirit FM] weihan1102:
hello , i am using samsung galaxy w with cm9

it is working but if i have a incommig call , accept the call , when I stop the call. the phone crashed and did a reboot.

(if i reject the call , it will crashed too)

sorry for my english
[Spirit FM] MarteloBR:
Hi Mike,

Please, i want to know if is possible to use this app in a system folder.

I'm using a LG-GW620/KH5200 with CM7.2. Finally i can use the radio without bluetooth turned on. Thanks! (cm fm.apk sucks! lol)

Note: I'm using LG P500 audio config.

Note2: Backuped app with file expert, changed permission and copy to system/app. When i reboot apk force close, so i install like a normal app in system/app. Spirit run, but when i reboot apk force close again. Yes, already cleaned dalvik cache.

I'm waiting your reply.

Best regards!
[Spirit FM] Scofield81:
Hi,

I have the same behaviour.. I hope Mike help us :)
[Spirit FM] Valwit:
HTC Desire S, running a CM9 based system - works good :)
[Spirit FM] Scofield81:
Hi Mike,

I'm thinking...

Do you want this apk translated to Portuguese?

If you want I can help you :D
[Spirit FM] Valwit:
Same from me for Polish and German

(no idea if you have them already as I use English as default language in my phone ;)
[Spirit FM] yokes:
I'm using the AOKP (4.0.4) Milestone #6 ROM on LG P500. It displays the Station Name etc... But No Sound. Used the LG settings but that also didn't help. Any help on this please.
[Spirit FM] mikereidis:
For anyone who doesn`t know, I`ve been visiting relatives the last several days. I haven`t gotten to emails in 48 hours.

I`ll be back to my dev PC this weekend, but August will be a low activity month for Spirit.

And I`m having some fun and in a much better mood now. :)
[Spirit FM] Rebel2k:
Enjoy your rest ! :)

Envoyé depuis mon GT-I9000 avec Tapatalk
[Spirit FM] mikereidis:
Posts or emails are much preferred to PMs. And I answer posts in this thread before emails to encourage public information sharing.

Would this cause a problem doing updates via Play ?

I think the main problem is that the location of the app is hardcoded (more or less) in many places, most notably for access to the files subdir with binaries like ssd.

I could potentially change this I guess but haven`t looked too closely. And I have yet to hear a good argument for why this is needed. Only one other person asked for this I think (in this thread) and there was no response to this question.
[Spirit FM] mikereidis:
I think this is the SMD problem I spoke of. Kernel needs to be configured to enable certain SMD options for the "command channel(s)". I'm not exactly sure which of the many SMD_* named options, or how they might interact, or interfere with external Broadcom Bluetooth etc.

SMD (Shared memory device I think) is Qualcomms API for communications between components, within the SOC or perhaps also outside the SOC. Like most low level Android details I think there is no public documentation, but I imagine seasoned Qualcomm SOC kernel hackers have some clues.
[Spirit FM] mikereidis:
Unplug battery ? That's rare.

Unfortunately I'm not sure how well I'll be able to support devices such as the Galaxy W. I've had some limited success stories in the past, but not sure if this was on stock ROMs etc.

As Android matures (v4.1 now) and becomes more complex, and as the hardware of devices becomes more complex, I find more and more that I need to have a physical device to test it properly, especially on custom ROMs.

It used to be, in the times of Android 2.x and simpler devices like the HTC Desire, that I could send one simple command to the audio driver to enable FM over headset or speaker, or turn it off.

This simplistic approach now tends to cause a LOT of problems with other audio, including phone calls and notifications.

Stock ROMs, or CM7 or other ROMs with audio library support for FM are not so bad because they still tend to have those simple functions that Spirit can call. But ICS/JB custom ROMs tend not to have those functions, and I have to set 3-10-20 different ALSA controls, and that can really mess things up when the audio library has no idea what my app is doing.

I'm hoping that CM9/10 etc. will support FM again and this will make things much better/easier. On modern devices, only the audio libraries should be accessing the audio hardware at low level, not apps.

If someone has the time and ability to tell me the "magic steps" for these 3 functions, I'll be happy to support those steps in a new audio method:

- Mute / Disable FM audio.

- Enable FM over Headset.

- Enable FM over Speaker.

And there are only so many phones I can maintain (15 now) and afford to buy...
[Spirit FM] mikereidis:
Thanks for your success report. :)

Nice to see among the sea of issues.
[Spirit FM] mikereidis:
For this, or for any translations:

There are a LOT of dead strings in the XML files that have not yet been removed.

I hate to see anyone wasting their time on unused strings.

I was hoping to get to translations back in May. (Pick a year, it doesn't matter, LOL.)

But I'm drastically re-assessing what I am capable of as a single developer who is sorely in need of some normal 40 hour weeks.

A while back I made efforts to reduce the use of strings, as a precursor to translations, but had to get back to supporting the latest popular phones and ROMs.

So I don't know what to say about translations now. I'll give it more thought though, and invite opinions or ideas.

Translations will create a problem when I try to support someone who doesn't speak English well. I've done semi-automated email translations for some people, but ensure that I always say "Menu-> About" (for example) in English.

There has been a Greek translation in Spirit from very early on. But as time has gone on, I'm sure it's looking worse as new strings are not translated. No matter what, there is always work required from me to maintain languages, assuming I care about the result (and I do.)
[Spirit FM] mikereidis:
Usually setting Audio-> Method to "msm7x30 LGp500" should work.

If not, perhaps I can try this ROM around Sunday on my p500 and see.
[Spirit FM] mikereidis:
Well it's almost 4:00 AM and I'm here answering posts, and about to consider tackling emails, so "no rest for the wicked." :)

I see 84 emails now, but usually 75% of them are quickly deleted as order cancels, and license requests, logs and support requests from pirates. LOL.

Tip for pirates asking for email support: at least make an effort to try and pretend you're trying to get the free version working. Won't work for paid features of course.

That said, I'm busy enough I may have to stop email support for Free users. Otherwise 40 hour weeks will mean no new features and few bug fixes, and I can't let that happen.
[Spirit FM] Quinny899:
Weird issue on CM10 on my Desire HD: Radio starts and works fine,but then audio randomly cuts off until pause and unpause the radio. I can't test with a station right now because I'm on holiday in a radio blackspot, but I'll try with static and email logs

Edit: logs emailed
[Spirit FM] mikereidis:
JB has some audio system changes to improve latency.

The cut-out you describe sounds like the "Silent Loop" hack having some kind of "hiccup". If the CPU is not available to restart the loop for 10 seconds, this can happen.

I'll try to retry CM10 on my DHD around Sunday.
[Spirit FM] mikereidis:
Email:

(With my apologies to this unidentified person if my logic is incorrect. But the log he sent clearly showed he was not licenced when he sent it.)

(And this is on a GT-I9300, the most expensive mass market phone this year.)

Pirated copy ?

The old version of Spirit you were running was "broken" by the latest CM9/10 releases. There is a "hack" in the newer versions that works, but causes other audio issues.

I checked and couldn't and still can't see any purchase under your names or email. Sometimes there are legitimate reasons, so I try my best not to accuse. The last thing I want is to anger legitimate paid customers and potential customers.

I cancel any order at any time on request.

The free version is sufficient for compatibility testing.

On the day you sent the log (July 31), the newer July 27 version on Play was 4 days old.

So you purchased and cancelled before July 27, but were still running the paid version ?

No matter how it's explained, that is still running an unlicensed copy.

And I gladly send copies of the paid apps to people for testing. But that's my prerogative of course.

I get over 20 emails every day from pirates, with at least 2 asking for support.

This steals my time and is not fair to my legitimate paid customers. More so because it forces me to spend several minutes trying to figure out if this person is a customer (email, last name, first name, etc. ) and/or if the log shows evidence of piracy.
[Spirit FM] MarteloBR:
Thanks for answer me.

The reason is: we cant do a hard reset without losing Spirit UL.

Note: If you answer the request we can reflash without problems and use apk as default!

I have the same problem with the File Expert, but i can install in system/app a older version and upgrade via google play.

You only need to build one version that works in system. Doing this you ill fix the problem about the Spirit upgrade via google play for rooted system folder. (it wont recognize the apk like a installed app).

I know this request isnt priority, but ill be very appreciated if you do this!

Thanks!
[Spirit FM] deepakbshetty:
Hi Mike,

Having Issues with Galaxy S2 where calls have no audio after listening to Spirit FM .

Running on latest CM9. Tried on CM10 also.Need a restart to get the audio back.

Can you please look into this urgently.

Thanks!
[Spirit FM] Frankfor85:
Hi Mike, before of all thanks for your great app. I'm unable to open radio fm with your "spirit free" app on my ot 908 (tct alcatel move). It shows this message:

error: no fm accessible; SU:2 Fm:BC2 Su:1 Bt:0 Ht:0 Mo:BCU

Please note that my device has a bluetooth issue (maybe an hardware damage) and i'm unable to activate it. Can i use your app to listen radio? Thanks in advance!
[Spirit FM] mikereidis:
Yes.

I just got back from my family trip late last night. I have a 2.5 day email backlog now.

I took a quick look at my sales stats the last few months and it appears that the Galaxy S2 is the clear leader. So S2 is very high priority.

The usual hack/workaround I offer is to enable Debug-> Mute kill mediaserver and restart the app.

This is a "brute force" fix, and usually results in no audible ringing or audio notifications, other than a muting of the FM. But at least the phone functions are still semi-usable.
[Spirit FM] mikereidis:
Probably not, but you can try setting Debug-> FM API to "OEM Proprietary" and restart the app.

Yours is the first query about an Alcatel device on this thread. I've disabled every Alcatel device I could on Play, and don't expect to ever re-enable any.
[Spirit FM] MarteloBR:
Hi Mike,

I been thinking about one good reason to motivate you to build a Spirit system apk.

You just need to talk to the guys from Cyanogen Mod, probably your apk will be the official fm for them.

So you can do a free limited version and the user just need to buy a licence to full version...

What do you think about it?

Thanks!
[Spirit FM] mikereidis:
:)

I need solution(s) that will free up more time for development, and ideally at least a bit of design/redesign.

Strangely, I was thinking last night that I need to collaborate/co-ordinate with CM devs. Among other things, the GT-i9300 CM move to open source audio libraries will likely happen on other devices like S2/Note/etc. And suddenly I'm faced with fighting the audio libraries, or better yet getting audio support built in where it belongs.

Stranger, I got an email 2 days ago from a CM dev about devices like Galaxy S3 GT-i9300 and GT-I9100G. :)

AFAICT, with a few exceptions, Spirit is the defacto FM app for ICS/JB custom ROMs. I'm not sure it would be used too much more if included in ROMs. But I'd hope it didn't increase my support workload.
[Spirit FM] mikereidis:
August 5 Free: http://d-h.st/muL

- ONLY: Restores "Galaxy S3/Note/S2_ICS" Audio-> Method of the June 15 release.

This means speaker won't work, unless you pull the earphone plug out enough to switch to speaker.

But hopefully it will resolve the various audio issues with phone calls and other audio apps.

- I will try again to provide a more stable speaker selection.

However testing of July 27 on my GT-i9100m showed no problems with phone calls or other audio, except when using the wrong headset (for Galaxy S).

This will be difficult to deal with if I can't reproduce the problems. I'm not sure how many people haven't had problems. I presume I would hear from some of those people if I put this new version on Play, and they complained their speaker mode stopped working (and had no recent audio problems).
[Spirit FM] mikereidis:
Email re Galaxy S speaker damage risk:

AFAIK, the ROM has nothing to do with this problem. But CM7 and stock or stock derived ROMs have safe options.

24 days ago I released the July 12 version. It reverted the Galaxy S audio method to one that seemed to be safe. It had a history of 4.5 weeks during which no speaker damage reports were received. Previously, I received about 1 new damage report every 6 days.

During the most recent 24 days with this apparently safe method, I received only 1 damage report. It was a few days after July 12, but I tend to be suspicious of single reports so close to the previous version.

So the current method gives the impression of being reasonably safe, or at least safer.

This method is known to suffer from audio glitches from time to time. There is no evidence these are harmful, even if they might create an ominous clicking noise or two. Restarting Spirit once or twice seems to fix these glitches.

The speaker damage problems returned several times when I attempted to fix the glitches. Due to this I'm not in any hurry to try and fix them again soon.
[Spirit FM] Spaqin:
Hey, can I use this app to listen to frequencies under 70MHz? I found an old weird FM transmitter (that transmits under 70MHz freq.) that I want to check if it still works.
[Spirit FM] ZRong223:
Go Mike!

Spirit FM still doesn't work on latest CM9 of i9100G.

Hope either you or CM dev can fix this.
[Spirit FM] mikereidis:
Spirit is limited by the FM chips, and sometimes their APIs.

Some chips can go as low as 65 MHz or so, to support old Eastern Europe frequencies still in use. But among 15 phones I don't think I have one with such a chip. I think some newer Broadcom or TI chips might support this.
[Spirit FM] mikereidis:
Hopefully.

Did you notice my mention of contact from a CM dev for i9100G above ? :)
[Spirit FM] wcoast:
How do I get this to work on galaxy S3