yashsingh1/xdaforums huggingface dataset:
[Spirit FM] vurp0:
So I downloaded the May 5 version(the unlocked apk you posted), after I switched ROM, and now I'm confused.(I have a Galaxy S with the WeUI ROM, 4.0.4) There are 3 audio methods called Galaxy S something, all of which work on my phone. There is also Galaxy S stock, but that one only outputs through speaker, and Samusung Broadcom, which works, but stutters and lags horribly. Which one is the safest to use?

About the issue I talked about a while ago(radio stops when outside app, a few days ago I decided to experiment a little. If I disable ALSA PCM Open and enable Silent Loop, I have to use the phone much more before the music stops. I hope this means something, and if you've already fixed the issue/this info means nothing, then please disregard.:D
[Spirit FM] mikereidis:
As of May 4 and up, the safe ones are:

Galaxy S ICS/ALSA def/new

Galaxy S new/safer

The first is automatically converted to the 2nd. The first is the default that I will try to change to be better, while still safe. But to protect against my future experiments to improve audio, the 2nd will remain as safe as it always was, until a better one is proved.

But... WeUI must be a stock derived ROM if the others work, like "Galaxy S stock". ??

On stock or stock derived ROMs the stock methods are usually absolutely the best and 99.9999999% safe I think.

Can you set "Galaxy S stock" and reboot and it still works ? That will confirm it REALLY works, and it's not misleading.

ALSA PCM Open doesn't work well. Don't use it. Silent Loop is already automatically enabled for the non stock Galaxy S settings, as long as you don't enable ALSA PCM Open.

I tried WeUI_v0.9.5_by_NightShack0.zip around April 10 but don't remember much, I'll try a more recent release.
[Spirit FM] vurp0:
WeUI is a MIUI based ROM, should've mentioned it. MIUI is based om CM, AFAIK. Don't know what this ICS version is based on, probably CM9. Almost sure it's not stock based though, there is no stock ICS for Galaxy S, I think.

(this is where I switched to Galaxy S stock and rebooted while typing)

Nope, after rebooting after setting Galaxy S stock it doesn't work.

I experimented with other methods and the Galaxy i9003 works, too, but only through headphones. Also works after reboot. Does this matter?
[Spirit FM] mikereidis:
Sorry, several emails and logs etc. have fallen through the cracks recently. :D

I'm still doing my best to support Free users on this thread.

Both of your logs unfortunately have very little information. Perhaps the ROM sets the debug log buffer very small. I hope to log my own messages separately to work around this issue at some point.

Are you starting the app with Bluetooth off ? If so, try starting it with Bluetooth manually set to on.

Recent CM9 ROMs have a nasty bug that has Bluetooth running all the time, and the ROM just "fools" Android into thinking it's off. This confuses my app.

If this doesn't fix the problem, please send me a new debug log. Hopefully I can get a better logging solution soon.

Thanks for your patience and sorry for my delay...
[Spirit FM] mikereidis:
Android 2.3 Gingerbread MIUI was generally based on CM7.

But for ICS the MIUI folk have generally been starting with stock ROMs. This way they avoid the common CM9 problems like no camera or FM etc.

But yeah, there is no stock (or stock derived) ICS for Galaxy S, and there won't be any, so they might have started with AOSP or AOKP or CM9, I don't know.

So my safe recommendations are, as for any Galaxy S ICS that doesn't work with other methods:

For the default that I will try to improve the audio on in future releases: "Galaxy S ICS/ALSA def/new"

For the same thing as of May 4, but that should remain immune to my future changes, (until the above is proven) and should thus remain safer: "Galaxy S new/safer"

Yes, "Galaxy i9003" should work, more or less, but it's intended for the Galaxy SL that has a very different audio chip and no speaker concerns.

For the most flawless audio, but a proven dangerous method: "Galaxy S old/danger".

I'm trying my best to name these methods to describe them the best I can in 25 letters or less.
[Spirit FM] artlov:
Yes, it was OFF, and when i tried to turn it ON after that, i got a endless message "Turning Bluetooth on ...". So, i restarted device, turned BT on and it looks much better - frequency scanning works and stations found. But no audio...

Yes, i will.

No problem :) Thanks.

br,

artlov
[Spirit FM] mikereidis:
Great !

Audio is a common issue. It either gets solved by selecting from the methods at Menu->Settings->Audio->Method, or not. From time to time I add a new method.

First be sure to listen for sound from the earphones and set volume about midway. Then try the "HTC" Audio->Method.

If that doesn't work, try each of the 4 "msm7x20 *" methods near the bottom of the list. You can stay in that config screen and try them. Hypothetically any method could work, but those are the 5 most likely.

If nothing works, we may just need to find out the "magic" numbers to send to the msm7x30 audio (device /dev/msm_snd).
[Spirit FM] artlov:
msm7x30 option works. Super!!!

I'll test it some amount of time and if all will be fine, I will keep my promise about Unlocked ;)

Thanks again, you're a genius :)

And inspired from your flag I wish good luck to the Canadian team in Helsinki on the icehockey WM.

br,

artlov
[Spirit FM] blacksn:
When bluetooth is off, I run Spirit FM, it's not working, and after exit, bluetooth is unusable (it can't be switched on or off, it becomes unavailable) until phone reboots.

For example, In Root Explorer I'm selecting file than Send->Bluetooth and Root Explorer without any problems switching bluetooth on and sending file...

So why Spirit FM can't switch bluetooth on?
[Spirit FM] mikereidis:
It does and it can turn BT on, or off if needed.

The bug is in CM9, and it isn't in CM7 or pretty much any other ROM not derived from CM9 (I think.)

Android says BT is off. So my app believes Android. Spirit has a special mode for Broadcom chips that communicates direct via UART when BT is off. This saves battery and prevents BT RF stuff.

But BT is already running (despite Android lying) and my app tries to use it direct and there's a conflict. After that, BT tends to be unusable due to the conflict.

At one time Spirit ignored Android and tried to detect if BT was on at low level. But I disabled that because it had it's own problems when BT couldn't be detected at low level.

I even tried to get some logic going that tried to determine based on low level and Android. But that didn't work reliably.

Often when I try to work around a bug with special code, it ends up breaking other devices that don't have the bug. So I'll try again to see about a workaround but it's not as easy as the average person might think.

Probably better would be an option to enable a CM9 workaround, or possibly some ROM detection code, but that never works on all ROMs.

BTW, I wouldn't bother reporting this bug to the CM9 folk. As soon as you mention FM or some non CM app they'll likely ignore it at best, or castigate the reporter at the not so best.

Funny though, now that reminds me of Microsoft and so many other big companies.... That said, they do a heck of a lot, and a lot of good, for relatively little money, as do so many ROM devs, and I tip my hat to them... :)
[Spirit FM] mikereidis:
Great !

Don't really follow hockey, unless Ottawa or Canada is in the Stanley Cup finals or semi-finals sometimes. Looking forward to the summer Olympics though, even without the winter sports... :D
[Spirit FM] blacksn:
mikereidis, but you can make detection of CM9 at the start of Spirit FM or option "CM9 bug". This is annoying when I forgot to switch on bluetooth and ran Spirit FM, after that I must reboot phone to listen radio or use bluetooth...
[Spirit FM] mikereidis:
I know it sounds so simple. You might have one phone and one favourite ROM.

But I have thousands of paid customers now with MANY different phones and different ROMs.

One seemingly simple change can break things for a lot of people. And every time something breaks a lot of people get upset and think and write less of the app.

The best and safest bet is a setting to enable working around this CM9 bug. And then hope it will still work OK when the many different CM9 official and unofficial ROMs stagger fixes in, so some are fixed and some broken.

Even now a year later, most rooted devices require setting an Audio->Method manually. It's very tricky doing this automatically & getting it right on the huge product/combination of over 1000 Android devices and many ROMs.

I wouldn't spend so much time writing explanations if a workaround for this CM9 problem was easy. This is probably the 5th time I've written this on this thread in the last few weeks.
[Spirit FM] mikereidis:
Just to note I've seen an occasional crashing bug with the Google license verification code.

It happens when the query is done (every 10 minutes) when the Settings screen is active. I often leave the app running with Settings on screen indefinitely, and that's when I see it.

If/when it happens, a reboot might be necessary. But restarting the app once or twice clears it up.

Part of the app may still be running after this happens, and the system may restart the service portion.
[Spirit FM] CR5N:
Mike, your app works with ICS and HWA on HD2 :D

http://xdaforums.com/showthread.php?p=21173918

Is a CM9 based build. If set audio to qsd8250 mode and BT enabled then jobs a good 'un!

I will email you regarding XML license.

Edit: Icke already posted this :rolleyes:
[Spirit FM] dboechat:
What if we backup the app+data with Titanium Backup? Would the license file still be necessary?
[Spirit FM] cba1986:
I still don't fully understand the new validation method. Could you elaborate a little more?

It seems that Spirit it's gonna work on the s3 after all according to supercurio that phone uses the sama fm chip as the s1 and s2:

Si4709 receiver, as in Galaxy S / Galaxy S II / Galaxy Note
[Spirit FM] halfvast:
Mike

If I buy light version, is it possible to get licence file? Or is it only for unlocked? Dont want use internet sync cos battery drain. I needed to get modded play store to get change to buy your app. Free version runs fine but I miss stereo :)
[Spirit FM] mikereidis:
That should work.

The info ends up in this file when using Unlocked: /data/data/com.mikersmicros.fm_unlock/shared_prefs/license.xml

That's the same directory that preferences and presets are saved to in this file: com.mikersmicros.fm_unlock_preferences.xml

If you're going to be re-installing the app, clearing it's data, trying the different packages (Free, Light, Unlocked), doing factory resets or trying different ROMs it might be easiest to just leave the file on the SDCard.

But if you're doing Titanium backups and restores anyway, I guess you don't need to leave it there.
[Spirit FM] mikereidis:
Yes, I'll do Light license files too, but they aren't really needed yet. The worst that the Unlocked app does now, other than possibly sending some data every 10 minutes, is revert to Light capabilities.

And by all means, try the Unlocked version here: http://www.mediafire.com/?d6h6v7xp1au3rq8 . After May 8 it reverts to Light if there is no license file or Google verification.

So if you want the license query packets to stop, send me an email and on verification I'll send you a file.

For everyone, note that sometimes the Google customer database does not contain normal email addresses. Some are anonymous remail addresses. In these cases I'll need other info like real name, date, country, partial address etc.
[Spirit FM] mikereidis:
Thanks for your report !

I see you are Paypal and I have your email address already.

The new scheme will be great for Paypal customers because it means I can post a Free app on Google Play that gets unlocked with the license file. So you'll be able to get automatic updates just like the other 99% of customers.

It was like this when Unlocked was called Unlocker, but that scheme was trivial to break (purposely, until I eventually had the time to do better.) I still get tons of debug Logs for Sept 17, one of the hacked versions.
[Spirit FM] mikereidis:
The absolutely best and simplest method is to email me for your personalized license file and place that file in the root of the SD Card. Leave it there if you want. When Spirit starts, it will import the file.

Then everything will work every time, unless you, or anyone, posts that personalized file on the Internet. No license requests are sent to Google.
[Spirit FM] mikereidis:
Thanks for your report. As I expected, based on the SGS1, SGS2, Note and Galaxy Player commonalities.

I guess the si4709 chip is considered high end for whatever reason.

But I would not be surprised to see a different/new audio chip, which is usually a pain on non-stock ROMs. Half my problems are audio enabling related.

I hope record is supported, as on the Note.

And as always, the AT&T and other US versions of the S3 probably won't support FM at all. Same for at least Rogers in Canada, maybe Bell too.
[Spirit FM] mhulsegge:
Hi Mike, as said before, absolutely brilliant work!

I've been using my unlocked version now for quite some time without any issues. Just read up on your licence changes.

What would you advise?

Keep the unlocked version as I have it through market, or go for the separate licence model you're rolling out?

Thanks!
[Spirit FM] CR5N:
Hi Mike,

'Installed' the license, downloaded the 505ul and all working.

Couldn't import settings from previous unlock but not a biggie just an fyi.

Will update on license/feature enable in a few days after the default app enable time elapses.

Still can't give your app a review on market/play though which is a shame.
[Spirit FM] mikereidis:
May 6 Unlocked: http://www.mediafire.com/?go2agz9kk0u7ipg

- Fixes a crashing bug that can happen at startup when no Google Play account is configured, or sometimes in the Settings screen or some dialog. I blame Google's example code. Some "assembly required" LOL.

- New option Settings->User Interface->Notification Text Color = Auto, White or Black.

- Temporary hack Settings->Debug->Silent Loop Off, which turns off the automatic Silent Loop setting for Galaxy S2/Note and the Galaxy S Audio->Methods.

This reduces CPU load and battery consumption in cases where you don't need the Silent Loop hack, or where you can live with the downsides, such as those original strange audio issues on S2/Note.

There's a much more elegant List selection for the Silent Loop and PCM Open settings, but I rushed this in, so the hack is all we have for now.

Also didn't have time to implement the "CM9 BT Bug" Debug" setting so it does nothing for now. Also better to have a list of selections for various BT behaviour and detection options.
[Spirit FM] mikereidis:
Both. :)

Get your Unlocked updates from the Market, unless I release a test version here only and you want to try it.

But also email me with enough info to validate your purchase and I'll send you a license file.

I highly recommend using a license file personalized for you, as it prevents any need for Google authentication or Internet access, and the likelihood of of authentication bugs or feature limitation is essentially zero.
[Spirit FM] mikereidis:
By "import settings" do you mean use the old license file ?

You should always be able to install a new version of a package (eg Unlocked) over the same package (Unlocked) and keep all of your config.

Occasionally some people report having to remove the previous Unlocked package, but that's usually because they were running a pirated and modified version, and they don't realize they are "outing" themselves as pirates, LOL.

But you're a confirmed customer so that doesn't apply to you of course.

Yeah, I scheduled the expiry for a weekday because I'm expecting some problem reports. I'd bet most pirates won't read anything and will be taken by surprise.

Let's see who gets the "prize" for being the first to report that RDS stops working after 20 minutes. Not quite as much fun though since I've been posting "legitimate" pirate copies... And the first could be a paid customer too.
[Spirit FM] mikereidis:
The May 6 release just posted on Play and above has a temporary debug option named "Silent Loop Off". Restart the app after enabling it.

It will restore the lower battery consumption, but will also bring back the original audio issues with the speaker etc.

Hacks are hacks. If I had a better solution, I wouldn't call them hacks. Hopefully I can fix that reasonably soon, but the issues and requests lists never get's smaller. :)
[Spirit FM] mhulsegge:
Will do when I have a bit more time (will forward my payment confirmation) so probably Tuesday or Wednesday as I have no hurry since working fine. Thanks dude
[Spirit FM] mhulsegge:
Thanks Mike, just received your email. Have put the file in sd root. When I go to work coming Tuesday, I'll check if it works.
[Spirit FM] CR5N:
I exported the settings to SD as was originally going to install the free version from market to try using market/play for updates so uninstalled the old unlock version before checking (lapse in brain function perhaps?) Didn't find the free version on market and then remembered you said you removed it (too late lol) so installed the updated unlock from this thread and tried to import settings from SD and tried renaming the settings xml file to no avail.

Anyway, RDS still works ;)
[Spirit FM] olliefares:
Just wanted to start by saying that this is amazing work. I use this app a lot more frequently than I ever imagined that I would, and the features are fabulous.

The only recommendation I could possibly make as an upgrade feature would be media lockscreen integration (a la DI Radio, e.g. on CM9) so that the channel favorite presets could be cycled from the lockscreen music controls. However, I am not discounting the fact that 3rd party locker apps (such as MiLocker or WidgetLocker) might offer this functionality as standard, but I have not tested them yet myself. Any recommendations on this?

Otherwise, your app continues to be phenomenal and I congratulate you on your development! :D
[Spirit FM] mikereidis:
Unlocked supports media buttons on headset cables and you can set Settings->User Interface->Media Buttons Prev + Next or Media Buttons Pause Play to "Preset" or "Preset Next" respectively.

I rarely run CM7 now but if I recall correctly, CM7 lockscreen controls mapped to the same media buttons. I'll look into what can be done on ICS ROMs.

At one point I was updating station info on the lockscreen, but I disabled that due to some problem on some devices. I'd like to add RDS info when I fix whatever the issues are, and/or add some settings options.
[Spirit FM] mikereidis:
Hmm, it should have been as simple as:

Old app: Menu->Test->Preferences->Export to SDCard spirit.xml

and

New app: Menu->Test->Preferences->Import from SDCard spirit.xml

I did a simple test just now, using the same app package and it seemed to work.

Previously, package specific config file names were used, but not any more.
[Spirit FM] CR5N:
I thought that too. The exported file from original was named "...spirit_unlocked..." or something like that but the new version hinted a file name like you stated. No matter, I remembered the settings and there is a good website for UK radio stations to quickly look up frequencies.

As a ref for UK folk:

http://www.frequencyfinder.org.uk/
[Spirit FM] mikereidis:
Wow, lots of cool info there, such as at http://www.frequencyfinder.org.uk/features.html

And info on some other countries, including USA: Introduction to radio in the United States of America http://www.frequencyfinder.org.uk/usa.html

LOL. And:
[Spirit FM] Nitemare_real:
After a ROM change last weekend, Spirit FM UL with xml file works great, as EVER!

Thankyou so much Mike.
[Spirit FM] mikereidis:
:D

May 7 is up. See next post.
[Spirit FM] mikereidis:
May 7 Free: http://www.mediafire.com/?fwu3pm4o83nit58

Google Play also updated for Light and Unlocked.

- Various adjustments and small fixes, especially for the anti-piracy protections.

As stated before, the protection only applies to the Unlocked feature set, especially RDS.

This protection will become active at 12:00 AM Wednesday May 9.

- Activated setting for Debug->CM9 BT Bug.

I haven't tested it too much yet, but it should assume that BT is always on, and that it can't be switched off.
[Spirit FM] mikereidis:
For Light and Unlocked I put an EMail button in the new Intro for people to request license files.

I went through 14 requests in 35 minutes with the requests spread over 2 hours.

So please excuse me if I'm a bit late with emails or posts.

Posts here have priority BTW, since they benefit us all, assuming they don't take more than 1-2 minutes of investigation to answer.

And my working day is over for another 7-8 hours. I imagine I'll have at least a 50 license request backlog at that point, LOL. :)

And please don't expect a license file within the 20 minute refund window. One guy cancelled then tried, LOL. :)

Yes, I always offers refunds pretty much at any time for unhappy customers, but I'm not going to waste space in the revoked licenses file for a quick refund pirate. At least forcing someone to ask me directly for a refund should weed out most of the tricksters. LOL. :D
[Spirit FM] tramp20:
Hi,

can someone verify that Spirit FM will definitely run on a LG-P970 Optimus black with Android 2.3.4?

I tried an older Spirit FM without success (tested almost all audio methods).

Error No FM accessible

SU:2 FM:BC Su:1 Bt:1 Ht:0 Mo:BCU
[Spirit FM] mikereidis:
I had at least one success report, but I don't recall the ROM. I seem to recall some LG device that didn't have a stock FM app, but my app worked, then on an updated ROM it couldn't work anymore, at least not with the OEM API.

Did you try the May 7 release above ?

"Error No FM accessible" can't be fixed with an Audio Method, but the LG3 or LG4 audio methods may work. Or the other LG methods.

If you normally have Bluetooth on, try starting with it off, or vice versa.

Also, if it's a stock or stock derived ROM, you may have better luck setting Debug->FM API to "OEM Proprietary".

I'll be away from the thread for a while, but if all else fails, send me a debug log with Menu->Test->EMail->Logs and put P970 in the email.
[Spirit FM] sjod8998:
Well, i purchase the Play Store version (light) about 4-6 weeks ago. So, ¿i need to send you that email?.¿My app is licensed actually, or in the future was not? Sorry again if my english is not teh best... ;)
[Spirit FM] mikereidis:
Just send me an email. That's usually enough. I'll let you know if I need more.
[Spirit FM] sjod8998:
Well, just send you email. Waiting for the license. Thank you for your work, i really love this app, and I understand your position about piracy. I wish you luck
[Spirit FM] mikereidis:
May 7b Unlocked and Light are on Google Play.

2 issues fixed:

- Startup won't power up FM while the EMail dialog is active.

- License file automatic import default is now /sdcard/Download/spiritfm_license.gif . The xml extension will also work, in the /sdcard/ Download folder or in the root as before.

The file is still "XML" but doing this means GMail or the standard EMail app gives you an easy "Save" button that should work.

If you have no /sdcard/ you can rename the and copy the spiritfm_license.gif file to /data/local/spiritfm_license.xml and use Menu->Test->Preferences->Import /data/local/spiritfm_license.xml .

No need for a free version update.

Note the new May 7 free version has a new package name. Your settings will need to be re-done, or I think you can do Menu->Test->Preferences->Import settings from free app.

You can remove the old free app if you don't need it.