yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Has anyone ever seen a popup message saying anything about piracy or having to buy the app ?

I'm not talking about the new Intro that starts with "Note May 7 !!: License validation is now required".

My app does not contain any form of the word piracy, although the Google Play description and "What's New" do.

The "Have to buy the app" issue was reported by a "very funny person" who was sent an old copy of Unlocked a month ago but never bought, but I think another person or 2 may have reported something similar. And I think that can happen right after purchase before the order is fully validated.

Thanks ! :)
[Spirit FM] mikereidis:
SuperUser app problems:

EDIT: Just tried CM9 nightly May 8 for Galaxy S and this is what worked.

Go to SuperUser app and select Menu, Preferences.

Then select "Su binary whatver, Tap to check for updates".

It will say "Current version already installed".

Ignore that and select "Update anyway".

That should fix it. I rebooted the phone after to make sure.

---------------------

I've been hearing some people are having problems with endless SuperUser app popups.

This seems to be a general SuperUser app problem that happens with any app.

Apparently it only happens with newly installed apps, old installs are OK. And I imagine this is only happening on recent ROM releases such as for CM9, otherwise it would be old news.

Apparently "Clearing" the SuperUser data fixes this. I'm not sure if this is under System Settings->Apps->SuperUser->Clear Data.

Or perhaps you can just open SuperUser app, select Spirit, then hit the trashcan icon and start over or some such.

Also, mrxd on a CM9 thread says to fix an SU not remembered problem, "You need to update SU Binary under settings in the SU App, even if it says it's up to date, do it then reboot."

Another alternative is to install SuperSU, a different app, but then it takes over from SuperUser.
[Spirit FM] ruifung:
X10 mini pro, it works, using Sony Ericsson, but after a few seconds the audio cuts.

RSSI around 30.
[Spirit FM] mikereidis:
I'm happy to hear you got that far.

I modified the "Sony Ericsson" and "Sony Ericsson2" methods recently and you are the first to report any success with the X10 mini pro. :) The plain X10 mini has worked for a long time, although without speaker.

And I recently had an X8 success report.

Can you try enabling Menu->Settings->Debug->Silent Loop and restart the app ?

You can also try "Sony Ericsson2" and/or trying the speaker mode.

Thanks !
[Spirit FM] tyr696:
Hope it will be compatible for SGY, thank you.
[Spirit FM] eliashadow:
Nice work mister.

Better sound quality than previous version.

In first time the station stopped playing after few minutes.I closed app and restarted it.After that no problem about 30 minutes now.

Galaxy Note owner.

Sent from my mind
[Spirit FM] mikereidis:
I hope so too. :)
[Spirit FM] mikereidis:
Which ROM ?

My Note is on Liquid ICS v1.35 right now. I try new ROMs that get popular or that problems are reported on.
[Spirit FM] eliashadow:
Im on cyanofree mister.

I'm listening radio about 2 hours now without any problem...

Sent from my mind
[Spirit FM] egoal:
I can confirm that. Nightly 2012-05-07 had the problem too. But is easily solved by cleaning Superuser application data and doing the forced update as suggested above. I found this solution by the hard way... trying stuff for 1 hour... :(

---------- Post added at 10:56 AM ---------- Previous post was at 10:39 AM ----------

Thanks for the fast reply.

Sad to read that but hey! my SGS GT-I9000 is like 2 years old so I haven't high hopes in keep him dealing with the ultimate software accounting that Samsung did totally drop ICS support for this model :mad:

But I'm happy enough having CM9 working almost flawless on my phone. The only thing that was keeping me away from ICS was the lack of FM Radio support but even with this high battery consumption of the Mediaserver while using Spirit FM, at least I can keep hearing FM radio.

I'll try both "Silent Loop Off" and "PCM Open" on debug options today. What should I expect from "Silent Loop Off"? Sound will suddently stop at some random moment when chip shuts down? And "PCM Open" should consume less power even if it's not then "right" way?
[Spirit FM] mikereidis:
:)

Well one BIG plus is that the Galaxy S and Nexus S are very similar and Nexus get's official ICS (I think?). OTOH, many ROM devs have moved on to S2, Note and now S3.

The S is still very popular so I'll do everything I can to get it working much better and safer. It was my best phone before I got an S2 and Note very recently.

But if you haven't heard I'm one dev trying to do what Google said they didn't have the resources to do. It's very challenging prioritizing all the tasks that need doing.

Silent Loop off will stop the audio about 3 seconds after it starts. That's because the driver doesn't think the chip is doing anything, and the driver doesn't support an API that says "I'm using FM, don't shut off."

And unfortunately, any driver code that comes from Google doesn't support FM. Did I mention Google, and US carriers, seem to hate FM ?

PCM Open does what the Samsung GB or CM7 audio driver does for FM. It opens the sound device and keeps it open. That prevents the chip from shutting down. But no audio is sent, which eats CPU and battery.

But if an app opens the PCM device, the mediaserver can't get at it to play notification sounds, and you'll see error messages in the log.

Basically, as far as I see, on pretty much every ROM for the more modern devices, with very sophisticated audio systems, the only proper place for low level code to enable FM audio paths is directly in the audio drivers.

Any other solution, such as in my app, is a HACK.

It's like the audio drivers (multiple components it appears now in ICS) are a conductor conducting a large orchestra in a very complex piece of music.

And my app is trying to sneak a player and instrument in the back door and hope it all works together. Not easy.
[Spirit FM] SaltSpork:
Hi Mike,

First of all I'd like to mention that Spirit's been working a treat with my i9100 running CM9 as far as audio's been concerned.

Since updating to May 7b, whenever I open the app it just waits on a plain view for about 5 seconds. I have the license file you sent me in the appropriate location and I (obviously) updated via Google Play.

This is a bit of an inconvenience, I don't mind a one-off license file but a 5 second delay every time I start the app shouldn't be needed.

Cheers.
[Spirit FM] sjod8998:
Ok guys, i'm so sorry for to raise the sound alarm for yesterday. But today, the quality sound is completely normal. Sorry Mike :( . No other problem using the new method / safer for Galaxy S, even the annoying "silent loop"has gone :p .
[Spirit FM] zenosteam:
why in some aokp rom radio dont' work and to fix that please ?
[Spirit FM] mikereidis:
No problem. I WANT to hear about any potential problem as soon as I can.

Do you have any idea what happened ? Or perhaps it just mysteriously went away ?

Even issues outside my app are good to know about, like the SuperUser problem.

I had an email about the SuperUser problem from one person who was VERY angry because he was convinced my license file caused the problem.

And,... I've been detecting anger in some of my new customers.

I think that some of them think, somewhere in the back of their mind that:

(1) I'm forcing them to run a custom ICS ROM.

(2) I'm responsible for there being no free or other FM app to run on that ROM.

(3) I'm forcing them to listen to FM.

(4) I'm forcing them to pay because the new protections prevent running a pirated copy.

Seriously, I've seen comments months ago that my app somehow sucked because there was no alternative on ICS.

And too many seem to think free and fully functioning apps are a human right that I shouldn't keep from the poor starving people of the world.

And the "fair" price for a non-free app should always be a dollar or two, and that I can make it up on volume, or that I should use ads.

These people have never written a non-trivial app in their life. And if they did they would never settle for the pitiful income I would get from their pricing or ad based suggestions, unless perhaps they lived in a very low income country.
[Spirit FM] mikereidis:
OK. I've had at least one other report of 20 second startup times. It doesn't happen on my phones, but I'll try to see what the problem is. Crypto operations take time but it shouldn't be more than 1 second at absolute most I think, even on the slowest CPUs.

You can remove the license file in /sdcard/Download or /sdcard . Then you can uninstall and reinstall, or clear the app data (which removes settings and presets). Or you can just remove the license.xml file from:

/data/data/com.mikersmicros.fm_unlock/shared_prefs

or

/data/data/com.mikersmicros.fm_li/shared_prefs

---------------

The biggest "secret" is that you don't mostly need the license file right now.

If Google Play authenticates you purchase at least once every 2 weeks, then nothing changes.

If Play doesn't authenticate, the worst that happens is that you lose RDS after 20 minutes. But I think leaving the app and returning restores it. Same with turning screen off then back on or many other things.

I made the impact very little so that the bugs can be worked out first. Every dev who has written about it has encountered bugs and problems when first using Google app license verification.
[Spirit FM] mikereidis:
It would be EXTREMELY helpful if you could give more details.

Like what phone ?

Like what ROM ?

Like what settings have you set and what exactly happens when you try to run the app ?

Yes, I can see what posts you've made on other threads and figure out some of those answers.

But if you're asking for my help, and you're not a customer, then I think you should provide some useful information such as the above.

-------------------

And no offense intended to you, or your intentions, but to everyone: please don't say "I would be a customer if...". That is a very much over-used phrase and I think too many people who say it are just saying it. I help people even if they don't say it. It has almost no bearing on my decision to help or determine how much time I can spend on something.

A MUCH more useful phrase is "I am a customer". Customers alway have priority. And anyone can ask for and get an order cancellation at any time for any/no reason, just by asking. I don't care if the purchase was months ago. Better to lose a customer than have an angry one, IMO.
[Spirit FM] zenosteam:
no,no i am only a simple noob user :o

so i have an sgs2 and i am using this rom :

[ROM](AOKP 4.0.4 - IMM76I) Dragon ICS V2.4 [1080p-MP4-SENSE](03/05)

i try to ask the dev of this rom but i dont know why i have no answer !!!!?

when i have installed spirt radio i have a message that the fm is not accessible after that i have tried many setting in the apk but without success

fo testing i have flashed three other aokp roms and the radio work without any problem directly in the first lunch without applying any setting this my history

i don't want to change rom this why i am asking who to make it work in this rom

thanks in advance and sorry for my critical English

ok, I have successfully enabled radio so,problem solved good night
[Spirit FM] sjod8998:
Mike Thanks for your understanding. Well, the truth is that I have no idea what could have happened. I listen to the radio first thing in the morning, way to work, and different stations. Noting that the sound quality had declined watch the Configuration of the application, and everything was as usual. I continued testing with the same result. Probe for Galaxy S different methods without success. And now, magically, the sound came back to have their usual quality. Things of technology, I guess ... :-) and sorry for the Google Translation... :-P
[Spirit FM] zenosteam:
ok, I have successfully enabled radio so,problem solved good night
[Spirit FM] SaltSpork:
It seems to be fixed now with a clean install and adding the license file again seems to be fine. Odd seeing as I've already tried this, but oh well.
[Spirit FM] Chosen_on184:
Ok good afternoon gents and gals,

Found this thread by accident and i am curious if i can run this on my GS2 for tmobile. I tried searching the forum but with over 300 pages the search function was not providing the answers i was looking for.

My questions:

Can this run on a leaked stock ICS build for Samsung Galaxy S2 for Tmobile

If it can, do i download apk from market or is there a modified version floating around here.

Thanks for answers in advance
[Spirit FM] mikereidis:
OK, Thanks for reporting back, but when you ask a question, and find an answer. it would be super nice if you could share the answer with everyone reading this thread.

I presume you had to load the FM driver somehow ? With an app or setting ?

I added code recently that does this:

insmod /system/lib/modules/Si4709_driver.ko

and

insmod /system/lib/modules/radio-si4709-i2c.ko

but it's possible some ROMs use different driver file names.
[Spirit FM] mikereidis:
Yes. :D

One single wrong bit in Gigabytes of data can make almost any bug happen.
[Spirit FM] mikereidis:
The absolute top of the text of post # 1 of this thread says:

Perhaps I should put that in huge, bold, flashing crazy colors ? :D

And I could put it in the subject title too I guess.

The T-Mobile/Telus SGH-T989 is one of the many US variants that are FM "castrated".

If you have an International GT-i9100 that is known to physically support FM with an si4709 FM chip, then you are likely in luck.

You might have to load an FM driver somehow and set Audio->Method, but again, you need the hardware or the software driver won't load or work.

On stock or stock derived ROMs supporting the Samsung FM app, Spirit can work without SU by using the Samsung FM proprietary API. That has pluses and minuses versus the low level support.
[Spirit FM] Chosen_on184:
Yea totally read over that link ..

Thanks for the answer though .... That sucks really missed the FM from my days with CM7 on the Nexus.
[Spirit FM] copperdawgnc:
pricing

I tried to search and failed to get a good post to quote tldr

You seem to have 3 FM apps

Free

Lite $2.49

Unlocked $9.99

Not exactly sure how you came up with your pricing structure but I am pretty certain you would sell more with a cheaper unlocked and licenses are just a pain in the ass.

While I realize you have put a lot of effort into this app most users will not pay $10.

I have been promoting that this works on CM9 which does not support FM radio yet you might want to take advantage of that market.

IMHO
[Spirit FM] moocow1452:
Really hate to be the thread hop newb, but I'm using the CM9 Beta for Evo Shift/Speedy, and when I try and run this puppy, it gives root permission twice, and then sort of stalls until I manually FC. Advice?

Also, if it can receive signal, could it broadcast signal and work as it's own car adapter or is that just not how it works?
[Spirit FM] mikereidis:
>I tried to search and failed to get a good post to quote tldr

Searching on "pricing" works pretty good.

>Not exactly sure how you came up with your pricing structure but I am pretty certain you would sell more with a cheaper unlocked and licenses are just a pain in the ass.

>While I realize you have put a lot of effort into this app most users will not pay $10.

>IMHO

I'm happy to hear any opinions, including opposing ones, especially when they are as nice and diplomatically stated as yours is. :D

>I have been promoting that this works on CM9 which does not support FM radio yet you might want to take advantage of that market.

Thank you, I appreciate the exposure. I AM currently taking advantage of that market. But I'm not actively promoting much because if I had a much bigger rush of new customers I wouldn't have time to do more development and good technical support. There are critical issues, like Galaxy S speaker damage risk, that are VERY important and need more time for me to address beyond the 200 hours I've probably spent on it so far.

I'm quite positive that the lack of CM FM in CM9 thus far is a major boon to me, and in the end to my customers and free users both.

And I'm also happy to say, that I am finally earning a livable income that will allow me to continue development indefinitely, without worrying about feeding & housing my family. That livable income,

BTW, is roughly 25-30% of what I can and have made working in private industry for much of the last 15 years.

The above financial achievement was only made about 1 month ago, after a solid year of 80+ hour weeks of work, backed by 15 years of embedded linux experience, and a "lifetime" of computing & electronics experience dating to the birth of microprocessors.

The first year I made next to nothing, a fraction of minimum wage and poverty levels both.

If you think my technical replies can be a bit long, then brace yourself for all the thoughts, and facts and figures and proofs I have for the pricing issue.

The quick story is that providing too many features in a free app is a quick route to the "poorhouse". And, like any good engineer or scientist, I conducted pricing experiments, after concluding that ad strategies for Spirit were worthless.

Do you sell apps ? What kind and perhaps you can give a link ?

I'm really tempted to turn this into a very long post, and I will post one later, with LOTS of links, but right now I have a 16 hour backlog of customer license requests to handle.

The customers come first. I listen when enough of them ask for certain features or support for new phones. I offer lifetime technical support for as many phones as you own. Most customers are on custom ROMs which tends to mean they need support. Just yesterday I had to document a SuperUser app problem on the latest CM9 nightly builds.

A HUGE number of grateful Galaxy S2 & Note users bought my apps after I finally figured out the FM audio enable for ICS. I responded by re-investing over $1000 of income into buying a new Note and a used S2.

Anyway, expect to see my pricing mega-post in the next 4-8 hours. :)

Regards,

Mike.
[Spirit FM] mikereidis:
That's OK. You're just in time to prove my point about the value of the technical support I provide. :D

It sounds like you MIGHT have the recent SuperUser problem. Before going any further, try the steps in this post from yesterday: http://xdaforums.com/showpost.php?p=25859011&postcount=3401

If you're a customer and are using a license file, I've had two reports of slow startup times, and at least one was resolved with a de-install and re-install.

I don't believe there is a confirmed case of anyone getting FM transmit to work on an Android device available outside of China or Japan. Sharp has a Japan domestic model or 2 that can transmit.

It's sad IMO, because HTC uses only TI and Broadcom FM/combo chips and both chips have FM transmit designed into them.

IF ONLY they would connect the antenna, power and audio pins on the chips somewhere useful, we could have FM. Why does nobody do it ? I don't know. Sometimes we're lucky just to get FM receive, especially on North American models contracted by US/Canadian carriers from Samsung and Motorola.

My best theory is that sales would increase only a little, and would not be offset sufficiently by the increase in costs, and product delays, to get FCC, or similar agency approvals.
[Spirit FM] ruifung:
The sonyericsson2 worked initially, but then it just... stopped working i guess. But when it did, it also cut off after a few seconds. And I have not bought it, I tested using the free version APK as I cant download from Play Store. ( Not compatible ) Will try with your suggested instructions.
[Spirit FM] egoal:
Some more input.

Phone: SGS GT-I9000

ROM: CM9 Nightly 2012-05-08

Spirit FM Build: May 7 and May 2 Test Versions

When you enable "ALSA PCM Open", stop the application and start it again. There's no sound anymore until you deactivate the "ALSA PCM Open" again and restart the app. I guess that this option only applies on application start, right? Is working as intended? I figured after read your explanation that enable this option only makes you being unable of ear any notification's sounds while Spirit FM is keeping open PCM. But not that Spirit doesn't sound again until you disable it :)

I'm just trying to figure how to reduce the battery drain as much as I can because I listen FM Radio for 6+ hours per day and my battery goes from 48h-50h duration with CM7 and stock radio to <24h with CM9 + Spirit.
[Spirit FM] rdejager:
Awesome app. :D It works great on my Sensation. Even better then the stock FM app. :D Now I can use CM9 and FM so I am not bored at work anylonger :D

Took a while till I found out how I can lower the minimum volume but this app I so want to buy, but I cant, stupid creditcard needed :(
[Spirit FM] DevilTH:
You do not need a creditcard. Ask Mike he accept also PAYPAL. I have bought the app on this way and Mike have a better profit than google-play :)
[Spirit FM] mikereidis:
Hmm. Sony Ericsson devices have been a pain, and I don't have any to test with, and they are low volume enough and for other reasons I don't think I can justify buying any.

So, if SE devices can be made to work without too much hassle, I'll be happy to see it, but I can't spend much time on it... :( I did add the code though, and I'm at least partly, and happily surprised to hear it works even a little bit.

For the cutoff you can try enabling Menu->Settings->Debug->Silent Loop and restart the app. Perhaps even a phone reboot would work.
[Spirit FM] mikereidis:
Yes, the "Silent Loop" and "ALSA PCM Open" options require a restart (power off, then on) of the app.

If problems happen it can be useful sometime to reboot the phone to see if the problem goes away.

I'll check again to see if PCM Open can be used, even without notifications, perhaps "tomorrow" as it's the end of my long, long working day now.

At one time I tested a bunch of different audio file formats to try and minimize the impact of Silent Loop. It's an uncompressed WAV file now and that seemed to be the best that worked on every device.
[Spirit FM] mikereidis:
Yes, thanks DevilTH.

About 1% of my customers (20 now ?) are Paypal.

I now have a super easy update method for non Play customers.

Send me an email at mikereidis@gmail.com for details.

But I won't be back to email for likely 8 hours since my working day is ending.
[Spirit FM] zenosteam:
sorry mike for the incomplete feedback,well the only thing that i
[Spirit FM] moocow1452:
Okay, Mike was right on the super user, and I'm able to seek to local stations and recognise a couple frequencies. But no audio, at all. Even volume tones are disabled when using the app.
[Spirit FM] mikereidis:
You likely have to set Audio -> Method to HTC or one of the 4 "msm7x30" options or qsd8250 or perhaps most likely qdsp5v2 Plus/ICS.

Sorry it's late and my long day is over. After a few emails.

Send me a debug log. Menu->Test->EMail Logs->Logs and press Send after 5-20 seconds.
[Spirit FM] moocow1452:
Thanks for everything you do, and sound is up. I got to clear data on the app to not make it crash after on startup, but I can work around that until a fix is found. Thanks, again.
[Spirit FM] mikereidis:
EDIT: It would be great if we could figure out which setting may trigger the crash.

Hmmm... I'd like to find out why and what I'd need to change.

But getting a log, from Spirit at least, when it crashes can be hard.

Are you using the new license file ? If so, delete it from /sdcard/ and/or /sdcard/Download and clear the app data again.

Otherwise the only thing different on second start should be the Intro flag, a first start flag, and whatever settings you do.

Now that I think about it, some people were getting the same second start crash issue on a very different phone at one point.

Can you do this: ?

- Let it crash.

- Clear app data.

- Restart.

- Send logs: Use Menu->EMail Logs, or on the free version: Menu->Test->Loogs EMail->Logs.

- Configure as needed.

- Send logs again.

Thanks !