yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
I didn't even mind so much the rampant piracy in China, and some other countries, as they likely have no way to buy from there, nor the income to do so.

And the occasional out of date leaked file that was hard to find wasn't so bad either.

But it was put into at least one ROM, and the guy posting on one site had a blurb that said "please don't copy or mirror" because he makes income that way.

THAT got me ANGRY. He steals it, then effectively resells it, and asks that people not "steal" it from him. That was the last straw, and yeah I got angry on that website and haven't bothered to go back since. Better to spend time protecting and preventing.

Or at least making it a lot harder. No protection can ever be foolproof, but at least my reverse engineering skills are put to good use trying to hide the protection tricks.
[Spirit FM] Souf0:
I'm in the same case, i have a google play version (updated today).

This key isn't automatic? (from versions from Google Play)
[Spirit FM] coloxim:
In the light version can use s2 speaker?

I have chose to buy light version...

Inviato dal mio GT-I9100 con Tapatalk 2
[Spirit FM] mikereidis:
No. If it was automatic, then it would continue to be super easy to pirate.

I hope everyone understands that this license file thing is a "bonus", more or less. And it's part of my "apology" for adding protection.

Many apps with copy protection just won't work without Internet access and a working & configured Play app on the device.

I'm providing a secure workaround that minimizes hassles & problems.

My customers are still mostly running custom rooted ROMs like CM9, and many of those ROMs won't have a working Play, so I feel I really needed to provide this.

AND many bought the app when it had no such protection, so I want to make sure the experience is as trouble free as possible, even on devices with no Internet access at all, for whatever reason.

Email count is 96 now, time to tackle them, one by one. :)
[Spirit FM] mikereidis:
Yes.

The "trick" to enable speaker is to remove the headset plug by about 3 mm or 1/8".

Audio should switch to speaker and the connection is good enough for an antenna connection. This is easiest when the phone is not moving of course.

This problem doesn't happen on stock ICS ROMs for S2 or Note. I'll find a solution as soon as I can.
[Spirit FM] mikereidis:
PM:

To summarize, this person has a Pantech Burst and has had unusual audio troubles since installing Spirit April 24b Free.

I occasionally get a report like this and recommend pulling the battery for 5-10 minutes, or even overnight to try and clear anything weird.

I believe that some audio controls on the secret "baseband" or cellular radio side of some devices can get stuck sometimes, and sometimes not even a full ROM re-install will fix it, since that only touches the apps processor side.

Seriously, some of this sort of thing is a result of "Big Brothers" desire to listen to anything said near our devices, for that 1 in 100,000 people that he's watching closely. (See Richard Stallmans' thoughts and refusal to carry a smartphone, BTW. And NY court records from over a decade ago for an organized crime bust.)

He needs to be able to hijack the microphone(s) which is why the baseband side often has audio controls. And this affects FM audio sometimes too; one more reason why Android FM (and general) audio can be such a pain.

OK, so you understand the electronics side of things, great... My background is also in electronics.

My app does nothing on purpose that should be permanent or that won't go away after un-installing. (Other than creating a log file on the SDCard.)

As I said up top there, some audio functions are handled by the secret baseband side of phones, and sometimes even a full apps processor ROM re-install won't change something audio related on the baseband side.

In theory, some sort of full reset should fix things. assuming a FULL reset is possible.

Email me at mikereidis@gmail.com and I can send you the same 424bfr.apk file and you can try re-tracing your steps backwards or whatever.

Or you can try the latest: http://www.mediafire.com/?fwu3pm4o83nit58
[Spirit FM] pepemosca:
@Mike, I have a SGS2 running CM9 (update-cm-9-20120507-NIGHTLY-galaxys2-signed.zip) and SiyahKernel (v3.2b8) and your 6 May free version.

Does the Samsung Galaxy S II (GT-I9100) could have the problem with the speaker? (http://xdaforums.com/showpost.php?p=13380066&postcount=3) Is there any safe mode for my phone?

Thanks!
[Spirit FM] tariq2kn:
I'm in India. I get to hear 100.7 Mhz FM without earphone but not 91.1, 93.5 & 98.3 Mhz FM

Sent from my GT-I9100 (S2)

Rooted & on Stock ICS.
[Spirit FM] mikereidis:
Absolutely no problem with the SGS2.

It has a very different audio chip.

Problem is ONLY with Galaxy S or very similar devices (like Galaxy Player) with the WM8994 audio chip and only when using the ALSA modes needed on pretty much all non-stock derived ICS ROMs.

And I'm reasonably convinced now that the modes that don't have "danger" in their name are safe based on 3 weeks with no reports using the safer modes. This is versus 1 damage report every 6 days with the danger mode. Only problem is audio is a bit funky sometimes, but that's the current sacrifice for safety.

SGS3 remains to be seen. Apparently it has a WM1811 that is similar to the 8994.
[Spirit FM] mikereidis:
OK.

If you get them with the earphone in then I'd presume 91.1, 93.5 & 98.3 have weaker signals.
[Spirit FM] halfvast:
Anyone able to buy unlimited from play store with galagy s2 hydrog3nics rom? It says that my phone is incompatible. Test versions from here however work fine :(

Ed. Found a bug from MAY6, if I change volume with hardware keys. Program changes sound from earphones to speaker. This worked with earlier version. Something to do with new loop setting for galagy s2?

Mike I really want to purchase this app, but Play Store wont let me.
[Spirit FM] Nitemare_real:
Only two tests but:

Galaxy S (GT-I9000) with iMM76K based on ANDROID 4.0.4 AOSP Gooble Nexus STOCK ROM and default kernel (Skorpion_s2)

Audio Method: Galaxy I9003

Spirit FM works ok, and

audio is OK on second and next calls after switching off Spirit FM radio
[Spirit FM] mikereidis:
And I want you as a customer, Paypal or otherwise. :)

Google Play issue is because your build.prop file identifies the phone as one of those nasty AT&T variants with the FM ripped out.

If I allow those phones access, I get a lot of angry downloaders who post bad reviews because it won't work on their phone.

See my previous post on this: http://xdaforums.com/showthread.php?p=25639089&highlight=build+prop#post25639089

Is that a stock derived ROM ? If you don't give SU/root to Spirit (or you configure Debug->FM API) it will try to use the Samsung OEM Proprietary FM API.

That can result in Debug->Silent Loop not being automatically & silently enabled. Try enabling Debug->Silent Loop and restart the app.
[Spirit FM] mikereidis:
Yeah, a few people have been trying the Galaxy i9003 (Galaxy SL) method. I THINK it's safer than the "danger" method but I'm not entirely sure.

If I make that the new "Galaxy S ICS/ALSA def" Audio->Method, and if no damage reports come in for 2 weeks, I'd say it's a good bet.

I think it takes thousands of users to generate 1 speaker damage report per week. Such are the odds it seems, and since I'm unable to damage my own speaker, despite lots of trying, experimentation on a large population of users is the only reasonable way I can think of to find out.
[Spirit FM] mikereidis:
I had NO idea I would get so many license file requests. Or perhaps I just forgot to calculate the total time requirements.

Over 130 done so far, another 20 to go, and more coming in every hour, LOL.

I suspect many must be thinking the file is required now.

That'll teach me for putting an easy EMail button in without an automated solution, LOL. My fingers hurt. :)

But nice to have contact with so many, and I'm pretty sure there were several purchases and upgrades today that wouldn't have happened otherwise.

Two have reported slow startup times, at least one even after removing the file. Anyone else ? It could be due to cryptographic operations on slower devices.
[Spirit FM] halfvast:
No this is not stock, its aokp based rom 4.04. I changed to this because its smoother than samsung roms. I have dualbooting setup so tried to download with samsung rom also with no luck.

Im from Finland and all SGS2 here comes with fm-radio support. In aokp rom fm does not work however without your app.

Ed.

Maybe I get Paypall account after work. Might be easier than try all kind of witchcraft to make purchase from Play Store :D
[Spirit FM] ambar_hitman:
Will try this for sure.
[Spirit FM] TurboLed:
I might have it wrong, but I tried all 3 methods and none of them have working notifications while FM radio is playing. Which one of the 3 is most likely to work ?
[Spirit FM] mikereidis:
As bad luck would have it, the dangerous to speakers method works the best.

Except for that "pesky" speaker issue, which BTW can/will happen even if you never switch audio to speakers.

When I was trying to get notifications at least partly working on the Desire HD, I switched to longer running sounds, and I could hear the tail end of them. Not sure if that's help here.

It's the end of my very long working day now.
[Spirit FM] mikereidis:
It doesn't make sense that a stock Samsung ROM would have such a problem, unless it was made for a model without FM.

Some ROM devs have been happy to fix the prop.build file when asked.
[Spirit FM] halfvast:
Sorry I mixed things. My other rom is Samsung based Ome Ics, not stock. I either make paybal and email to you or flash stock samsung as temporary solution make purchase. If i back up spirit with titanium backup and install it to current setup, it will be ok I think. But was thinking will I be able to update app this way from Play Store?
[Spirit FM] TurboLed:
If this may help: Notification plays, but when it's done, the radio doesn't come back, all I have is a kind of "white noise" coming from the Spirit app.

BTW the latest nightly from CM9 now has Voodoo sound support. I don't know if this can have an impact on your app...
[Spirit FM] egoal:
Some input about notifications.

On Galaxy S GT-I9000 running CM9 7-may nightly, notifications just pause radio and resumes when sound ends. I'm using 2-May test version. That's using (1) Galaxy S ICS/ALSA def/old method. So all seems working as intended.

Tried (2) Galaxy S new/safer too but I had worst overall quality. And I'm not sure about notification behaviour.

The only problem I found is the excessive battery use. After check the battery utilization I can see the Multimedia Server coming up as first source of power consumption. Not sure yet is it's related to the Google Servers pulling for licence or not. I tried the 507fr Spirit FM Test version but it request non-stop root permissions to Superuser app. So is mostly unusable on my configuration, will wait for another release and will come with more input.

Keep the good work, once I see normal CPU consumption levels I'll gladly buy this awesome application.
[Spirit FM] sjod8998:
Hi all. Has anyone noticed a definite decrease in sound quality after upgrading to version 7May-b?. Continuing with the same settings yesterday,

and the quality has dropped drastically

. Regarding the license-file, I have received and downloaded. All right.

Sent from my Galaxy S ROM Slim ICS 3.5 with kernel semaphore 1.1.1s
[Spirit FM] halfvast:
I tried that tutorial, and changed those values. Now Play Store sees my phone as Galasy S but I still cannot download app. i registered paypall account so maybe that is only way to install, dont know what is wrong.

I made a backup of build.prob so no harm done.
[Spirit FM] dboechat:
I have noticed no sound quality decrease at a all...
[Spirit FM] guigonyts:
Like i said in the email to mikereidis i could help him improve the UI of the app.

This way he can focus his time improving the program itself while I focus on the appearance.

Im not a pro, but I belive I can be very useful for this project.

If he accept my proposition , I'm open to suggestions from everyone here.
[Spirit FM] egoal:
Solved, was a Superuser application problem, become corrupted and I had to reinstall it. Sorry :(
[Spirit FM] paaaulo:
Samsung I-9100 running AOKP ICS rom & Spirit FM Lite.

Works great but I can't use speaker if headphone is plugged. When I disconnect headphone a bit, just to touch mini jack socket with headphone plug, I can use speaker.
[Spirit FM] mikereidis:
THANK you, thank you !

Details please ?

One or 2 other people reported this issue and I'd really like to tell them how to fix it.

Dealing with multiple technical issues while getting 8 emails an hour is pretty stressful.
[Spirit FM] mikereidis:
Unless your ROM dev changes build.prop, or you change it yourself, updates are likely to be a hassle.

BUT, I have a good Paypal update solution now. EMail me for details.
[Spirit FM] mikereidis:
The safer, but less audio friendly method may require a manual mute/unmute after a phone call or notification.

I'll fix it the best I can, when I can, but for now that's the price for speaker safety.
[Spirit FM] mikereidis:
You may have to wait until CM9 supports FM.

Or at least until I, or someone, adds better FM support to the audio libraries.

And I have more than enough work to do on the app, without getting involved in ROM/libraries development.

The issue is there because the only good way I have at present to keep the audio chip from shutting off, is to constantly play a "Silent Loop" audio file.

I tried the "PCM Open" method the audio library uses, but an app shouldn't be doing that, only the library/mediaserver.

If you enable Debug->Silent Loop Off you'll see what happens when the source of battery consumption is turned off.
[Spirit FM] mikereidis:
I DO appreciate ideas and offers of help.

I had help to get the ICS look and a LOT of people liked it, and I do too.

But that help turned into a lot of work for me. There's nothing anyone can help with usually that doesn't turn into a lot of work for me. Just the way it is.

If you have ideas, please just post them.

I'm not sure what you mean by accepting your proposition. I can't share my source code if that's what you have in mind.
[Spirit FM] mikereidis:
That's the only/best workaround at this time.

I tried sending the "Headset Unolugged" broadcast Intent a few days back but it didn't seem to help as I thought it might.
[Spirit FM] alspecial2007:
I look forward to a solution

tenks
[Spirit FM] mikereidis:
Thanks, It appears you have a /dev/voodoo_sound device that likely controls audio routing.

On the market there are Voodoo Control (& Plus) apps: https://market.android.com/search?q=Voodoo+Control&so=1&c=apps

I don't know it those will help but I saw at least one option related to FM. I've read the Galaxy (S?) FM driver has known longstanding issues with stereo support, so there is a good thread with info about this.

There is also some CyanogenMod support for Galaxy devices with this sound system; The answer might be found there. But code for FM might be more for the Galaxy S architecture where a Silicon Labs FM chip is used instead of the Broadcom chip. And there is a bunch of source code here too: https://github.com/project-voodoo

I'll take a look at this later and see if we can find a simple solution.

A new thought: It's possible your HCD file doesn't support the FM radio well. If we continue to have difficulty, we could try HCD files from other devices with known working Broadcom FM radios.
[Spirit FM] idkidk:
Hi,

project voodoo is an enhancement for audio (the app check if kernel have the voodoo driver, if not load the driver for better audio, so is possible change the gain of headphone amplifier, audio jitter, DAC and many other audio improovement).

Hcd sound interesting, could give me more info?

aaarg samsung! is so diffucult put fmradio into tab? :mad::mad:

Tia

Idk
[Spirit FM] CR5N:
Mike, you are a legend! V17 works a treat on HD2 now, no more manual ssd commands in terminal :D

After a power cycle within app when changing speaker/headset option, system sounds don't kill fm audio and auto mutes during a call. Excellent!

Edit: RDS (or my usual station signals) not so good, will try again later.
[Spirit FM] Victorino86:
Desire Z, PyroMod 2.0 (based on CM7), downloaded the new .17 working everything (installed just the .apk).

On/off/on and sound is working. RDS and all the stuff.

didn't try the mute option
[Spirit FM] thierryb:
Does it work with the xperia arc?
[Spirit FM] mikereidis:
The HCD file contains firmware and a few commands for the Broadcom combo chip. I'm just speculating the firmware for your device might not contain what is needed for FM since Samsung didn't make it a feature.

But usually there is a universal firmware, so this is just a "stab in the dark".

My firmware file starts with BCM4325 instead of BCM4329 like yours does, so I'm hesitant to send you mine. Here is a 4329 version from the HTC Buzz/Wildfire that someone recently reported works with my app: http://gitorious.org/replicant/andr...9edc4ceb4142daf07dddc692/firmware/bcm4329.hcd

In the next version I'll re-enable the log messages that show RSSI. It's usually a number from about 0 to about 50 or so, and will give us a better idea how well the FM is working than 0-4 bars.

I'm continuing to look into how we might enable FM audio. Googling your HCD filename I came upon this thread: http://xdaforums.com/showthread.php?p=12446949

That thread seem to indicate there was another version of the Galaxy Tab "wi-fi only" with no BCM4329 chip, but instead a Texas Instruments chip. Very strange.

This voodoo sound system seems to be mostly exclusive to Samsung devices. The Samsung world is also different as they seem to use Silicon Labs FM chips. The positive is that I understand Samsung is pretty open with their code and info.
[Spirit FM] mikereidis:
One person reported no on a stock Arc with v2.0.9.

I think it should be able to work on most devices with a Broadcom FM/BT/WiFi combo chip with the new UART mode on v2.0.17.

Do you know if the arc has the Broadcom chip ? I presume there is a stock radio app, is there ?
[Spirit FM] mikereidis:
Great ! :) I especially enjoy the success reports, particularly on new phone/device and ROM combinations.

Thanks much to everyone for their reports, positive or negative.

To all: I'm still targeting a pay version by the end of the month, so I hope the gratitude for my free app will translate into the sales I need to continue this project.
[Spirit FM] mikereidis:
Great !

AFAICT so far only one person has reported loss of FM audio during and after an audio notification so I guess/hope that is a rare circumstance. Normally the FM audio and system audio are hardware mixed.

If anyone has seen or still sees this audio notification issue please let me know. I have an idea for a hopeful solution.

Watching "adb logcat" can give an idea about how many RDS errors are occuring. But I get a lot of errors on reasonably strong stations, and I wonder if sometimes their RDS encoder is a bit wacky.

That said, signal strength alone is not enough for good RDS reception. The best tends to be when the antenna is situated for highest quality audio. Again, watching logcat can help determine best antenna positions.

Sometimes it's become impossible to properly test RDS from 1 AM to 5 AM or so when many transmitters reduce power. CBC is always OK and RDS error free but doesn't update things like music stations.
[Spirit FM] James62370:
Hello and thank you taking on this daunting task :)

I have a Motorola Atrix (AT&T Version). Not rooted, running latest stock firmware of 4.1.83 Android Version 2.2.2

I've tried both versions of your app 2016 & 2017. Received the following error "FM Operation failed. If problem persists, please turn off FM and turn it back on." App also doesn't seem to exit/close when hitting the power icon next to the volume control icon.

I apologize for the lack of additional information. Have not used an Android OS until recently. Not sure what the prerequisites are besides having the proper TI/Broadcom chip to get this working.

In any case, best of luck and success in your developement.
[Spirit FM] david-olivier:
in which folder do you put ssd and sprt folder after having installed FMRadio_v2017.apk ?

(NexusHD2-Gingerbread V2.7 on HD2)

Thanks
[Spirit FM] alspecial2007:
if it helps place the wiring diagrams of the Samsung P1000
[Spirit FM] CR5N:
I have put ssd in /system/bin/ and sprt folder on root of sd card. Can confirm it works as I am using the same rom as you :)
[Spirit FM] idkidk:
Perfect! another info!

Tia

Idk
[Spirit FM] idkidk:
Hi Mike,

with info from user alspecial2007, in the service manual seems that some fm pins are connected (i'm not sure) i'm looking.

in attach, the schematic of BCM4932.

I think that the FM block can use wifi antenna for signal, and the FM antenna connection is not strictly neccessary.... mmmm

Idk
[Spirit FM] djsolidsnake86:
hd2 and italy frequences: won't work
[Spirit FM] VibrantOwnr:
Results

Mark,

sorry for the late reply, yesterday was long day.

I ran all the commands you described in your reply. I attached all of the results for your review

Like you described, when i ran the "adb shell snd_set_device 11" for FM Speaker or "adb shell snd_set_device 9" for FM headset, i got -1 for the ioctl.

Also, when i ran the killmediaserver, the only thing that happened was music from my sdcard started playing (through the miui music app)

I could not attach the dmesg file as the file exceeds XDA's size limits for txt files so it can be found here: DMESG

Also i tried a new experiments of my own:

I Pushed both the MediaProvider.apk and mediaserver of CM7: no media app would open (including Spirit and Stock Music Player)

The stock media app works fine

I pushed only the mediaserverfrom CM7 with original mediaprovider: Spirit opened, station information showed up as emergency test with this message :1234567890123456789!
[Spirit FM] david-olivier:
Thanks it works !!!
[Spirit FM] mikereidis:
Hi James62370.

If you are running a stock, unrooted ROM then my app is unlikely to work, although there are a few devices that will still work.

I have no definite reports of success on the Atrix, but it seems to have a supported BCM4329 FM/BT/WiFi chip, and at least one person reported having a working hcitool.

In a future version I will make it easier to see if a device will work and provide trouble-shooting info, but for now it's hit and miss.
[Spirit FM] mikereidis:
It's difficult to imagine what might cause this.

The audio is analog and just travels through the circuit paths. The app doesn't process the audio in any way, and can't, generally.

Was the ROM or kernel updated about the same time ?

Can you go back to a previous version of Spirit and the problem stops ?
[Spirit FM] Souf0:
Ok, you have now 97 emails... xD
[Spirit FM] mikereidis:
:)

No, I was down to 0 emails 11 hours ago. Now back up to 68.
[Spirit FM] guigonyts:
I think i wasn't clear enough with the word 'proposition' (english is not my first language). What I meant is that "if you accept my suggestion" then I could help. But that doenst mean I want you entire code, just the interface. But its not a problem if you dont fell confortable this way.

Your app works great the way it is, and I thank you for that. I use radio a LOT.
[Spirit FM] mikereidis:
I don't want to raise any undue alarm...

But I had one email report today of problems on both the back ringer speaker AND the front earpiece speaker used for calls.

I've had around 20 back speaker reports and 1 claim of a headset issue around 2 months ago, but this is the first I've heard of any possible front speaker issue.

But in software almost anything can happen sometimes. A small change in my code or the code in the latest CM9 could potentially cause some unexpected timing issue that could make almost anything happen.
[Spirit FM] mikereidis:
Yes it's not feasible at this time. Thanks for your offer.

I've considered an API that others could write apps to, but most people just want a usable app, not an API or toolkit to build their own.