yashsingh1/xdaforums huggingface dataset:
[Click Android Development] cn.fyodor:
Great! Keep up the excellent work, man. :D

As for the volume issue, currently we just can control it by the hcitool commands, as Kalim mentioned above. Sorry I didn't change the comments by mike in that line. 0x5000 refers to 30% of maximum volume. I hope havok will implement volume adjustment into your UI app. Put it into your TODO list please.
[Click Android Development] mikereidis:
So THIS is where you Tattoo users have been coming from. :) LOL.

For those who don't know, I'll take credit for being the dev "spear-heading" the current effort to enable FM radios on Android devices. I'm just tackling the TI chips for now, as my phone is an HTC Legend, but I'd like to hit the broadcom based devices at some point, as the MIUI app does.

I don't stand alone, of course. I have decades of electronics and embedded Linux experience, but I'm pretty new to Android so I'm happy to give credit to all assisting me. There are many huge threads I've read detailing past attempts to enable FM.

So I guess your Tattoo's have a TI chip. I'll add it to my list.

FYI to everyone: what I released is just a first iteration of a test tool. I'm hoping to find out what devices will work, and what might need tweaking for each device.

And I guess Fyodor modified my script a bit, perhaps to better suit the Tattoo ? Perfectly cool of course, I encourage anyone to do whatever they wish with any scripts, code, info etc. although it's nice if you can give credit as Fyodor has done.

But I can't spend too much time communicating right now, or I might never get too much farther ahead... I'll try to answer some questions in my next post.
[Click Android Development] mikereidis:
Q & A, and attempts to clarify:

francians: will this guide allow us to manage fm with miui/cyanogen fmapp?

I've been analyzing and documenting the TI FM chips and how they interface in devices. I believe "ali ba" will be using that info to add TI chip support to the MIUI derived FM app in CM.

That app currently only supports 2 HTC devices, I believe, with the broadcom chips. Hopefully, the MIUI FM app will support many more devices in the near future, including the Tattoo. But at this point, I don't think I will be getting directly involved in that project, other than assisting with information in whatever way I can.

KalimochoAz: Now the problem is that this do not create /dev/radio0 that is how the FM app works.

The MIUI app does not use any V4L /dev/radio devices. Yes, the string is in the code, and I presume MIUI has intended to use that eventually, but AFAIK, there is not a single case of an Android phone that supports a V4L driver for FM.

That said, I like V4L. I read early drafts of the spec some 5-6 years ago when I began realistically hoping for an "all in one device" like modern smartphones etc have become. AFAIK, V4L is the only viable spec out there for radio devices, particularly on Linux and derivatives. So hopefully, one day, we will have V4L support, or a slight derivative, in Android.

cn.fyodor: .....

I think I pretty much agree with what you say, so I don't think I need to clarify anything to you.

Gee, there must be SOME way to enable you to try App Inventor. The problem is that it's a web based application right ? I guess that's a downside to Google's web centric nature.

And yes, I'm hoping to cobble together an App Inventor app this weekend. I'll be interested to see what sort of apps we can all bang together in the next few weeks/months.

Although I am very much behind open source and free, I've been strongly considering creating some sort of paid or semi-paid app for this. But my major strengths are in low level details, so perhaps I might concentrate on creating libraries, scripts etc. to be called by GUI apps or whatever.
[Click Android Development] cn.fyodor:
We've dragged you here from Legend forum. lol

Several weeks ago, some devs had ported the miui app for Tattoo and run it successfully(GUI part). But due to missing of /dev/radio0, this project just stopped at that time. I haven't read the miui codes yet. That would be a bit difficult for me to read java codes, so I don't know what role /dev/radio0 takes of at all.

Currently, to be honest, I think the hcitool commands you used will keep GUI app devs from forwarding since we don't know what they are. Of course you can help us a lot if you have time and are willing to. :)

I haven't considered whether paid or semi-paid app for FM radio function because that would be nothing with me. I can't and also have no time to write android apps right now. :P But I totally agree with you if you wanna do. What a huge low-level knowledge and searching work to make TI FM radio work even though your released codes were not so much! So just go as you wish.

PS, Our Tattoo forum is always the one of most active forums in xda-dev. Haha.
[Click Android Development] KalimochoAz:
For sure it uses /dev/radio0 but we can bypass this:

Take a look at FmTransceiver.java line 137: sFd = FmReceiverJNI.acquireFdNative(device);

And in FMRadioService.java line mReceiver = new FmReceiver(FMRADIO_DEVICE_FD_STRING, null);

And for sure is used. Here you have the FC of the app after starting on tattoo:

E/AndroidRuntime( 750): FATAL EXCEPTION: main

E/AndroidRuntime( 750): java.lang.UnsatisfiedLinkError: acquireFdNative

E/AndroidRuntime( 750):	at android.hardware.fmradio.FmReceiverJNI.acquireFdNative(Native Method)

E/AndroidRuntime( 750):	at android.hardware.fmradio.FmTransceiver.acquire(FmTransceiver.java:137)

E/AndroidRuntime( 750):	at android.hardware.fmradio.FmReceiver.<init>(FmReceiver.java:285)

But of course we can manage to solve it. This comes to this point because missing base code.

On the other hand we are creating an app with eclipse to use your discover since no muiu app is working, at the end if this app is good for user it will be no sense to move to muiu app. But this is talk for talk. Lets first create this app.
[Click Android Development] pts2grimm:
how can i make those files executable: snd_set_device and fm
[Click Android Development] francians:
I'm sure cyanogenmod and miui teams care about your work.. Adding the TI "interface" could fix the missing fm support to many devices that doesn't have Sense no more. I just asked because is a waste of time total rewriting an app, maybe the devs could start with a dirt hack to manage your files through the fm app and the final goal a library like kalim's job with camera.
[Click Android Development] nikson346:
chmod them
[Click Android Development] KalimochoAz:
Is not going to take long time to have miui working on CyanogenMod supported devices
[Click Android Development] francians:
are they going to release the sources? or just adding ldpi/mdpi support?
[Click Android Development] havok123:
https://github.com/Havok123/Hradio

source is there, Havradio folder is straight from my eclipse workspace.

code is pretty heavy, and i'm sure Ive made rookie mistakes

app is capable to enabling radio, stopping radio, and changing freq

install as a normal application apk (not system).

Requires scripts to be installed with permissions

you might need to press start twice, first for BT second for FM
[Click Android Development] KalimochoAz:
FM is not going to need big changes for ldpi, but at least the best expert on that topics of layouts is my friend arco69 who is always ready and looking for better layouts on our devices ( click / buzz ) :)
[Click Android Development] dancer_69:
Thanks for the app!

Unfortunately doesn't work well on my device.

I can start the radio but the tuning doesn't find any station. I only hear a white sound no matter which frequency I input. With command line I can tune stations fine. But same stations on havradio don't work.
[Click Android Development] havok123:
EDIT: needs a couple more changes, sorry i manged to mess it up just before uploading

i think the apk was broken for freq under 100mhz , ive fixed that in my first revision.

i fixed straight after i uploaded xD

new version uploaded on this post
[Click Android Development] dancer_69:
Still no tuning.

Radio starts, I can hear a station(no well) and no matter which frequency I input, the station doesn't change.
[Click Android Development] havok123:
sorry i accidentally set it to not accept freq below 875 mhz instead of 87.5, so you get tuned to 105.4 constantly, im going to test this whilst i walk to the shop.

I will uploaded a fix after, then it should work fine.

sorry :S
[Click Android Development] nljelmer:
Can't wait if i can switch FM's! It would be verry easy!
[Click Android Development] havok123:
should be all fixed. sorry, i cant connect to any stations below 100mhz when im inside.
[Click Android Development] nljelmer:
Thank you! Its working!

I had to wait 5sec before he switch.

And Maybe we lose some Quality!

But Thanks man!

EDIT:

And Choose volume sound, would be nice ;)
[Click Android Development] havok123:
volume will be easy to patch in, should be able to provide a release tomorrow with a speed boost and volume control
[Click Android Development] acmebg:
I can start fm, but cannot tune to another station and cannot turn off fm. I am not sure if app is problem or I didnt install script files ok.

I did this:

Push both files in /system/xbin/

and run chmod 766 on both files

Did I do something wrong?

Update: Running fm script from terminal works ok (tuning, turning off).
[Click Android Development] arco68:
Good job guys! :)

I see there's some code added on Gerrit for making radio on TI1271 chips work with MIUI FM app, so I guess getting our TI1251 chip to work with it is possible also.
[Click Android Development] sucks666:
Am I missing something?

The app starts but nothing happens, not even statics, no matter the freq.

I clicked start fm

Choosed freq

Pressed tune.
[Click Android Development] mikereidis:
I've posted my App Inventor app: http://xdaforums.com/showpost.php?p=11856239&postcount=83

It's more functional than pretty at this time. It tunes, scans, sets volume, sets output and has 2 presets.
[Click Android Development] vantoman:
Thanx mikereidis , tested and working fine :)
[Click Android Development] kirpeace:
appinventor does not install in my htc tattoo
[Click Android Development] pts2grimm:
for some reason i can't
[Click Android Development] nikson346:
did you get admin rights ("su")
[Click Android Development] KalimochoAz:
Today you will have miui working on Cyanogenmod ansd on arco's ROM. miui is working ok on click now. I have fully already tested
[Click Android Development] feversanj:
i m not able to listen any station.when i run the script it only shows some processing but no station output.

any thing i m doing wrong????
[Click Android Development] francians:
It's not clear.. are you talking about fm app or rom?
[Click Android Development] thacen:
This is really a good news for Tattoo users. One thing I would like to request is.. please allow the fm play even without headset.

I had used such an app in my Motorola E6 that was great, I can listen to fm even I left my headset home.. if the signal was not strong enough I did used a paper clip or a pin as antenna.

I like such functionality on our tattoo.

thanking you for the great job.
[Click Android Development] francians:
headset are the antenna.. without integrated antenna is impossible.
[Click Android Development] KalimochoAz:
miui is the FM app used in CyanogenMod.

I already have a ROM with fully FM implementation into system, I will release at the same time than arco69. I don't want people changes ROM becouse of this. This is not a competition

So yes, new will have CyanogenMod radio implemented

About antena: You need headset, it doen't matter if is the original HTC or other, but you need it one, any stereo headset is valid. if not headset, no antena, so no sound enable on FM app.
[Click Android Development] maxi2000:
When will the new version be released?
[Click Android Development] KalimochoAz:
I have to agree with arco the time. He is no online, so as soon as I talk to him we will decide. meanwhile I'm working on a new wifi modification to see if I can implememt all at the same time
[Click Android Development] maxi2000:
And full camera implementation means preview too ?
[Click Android Development] pts2grimm:
thank you but now how can i run fm... because when i try to run it it says to me that i have to switch to root
[Click Android Development] francians:
So next step is the new kernel :D
[Click Android Development] KalimochoAz:
I'm so sorry, my fault. I wanted to say FM, not Camera!!!

This happends for being in many places at a time
[Click Android Development] cn.fyodor:
FYI

just for all Tattoo devs' information, I've adjusted the layout of FM app got from Cyanogen. Here is the commit.

Thanks to mike and Alexander Hofbauer for excellent work.
[Click Android Development] KalimochoAz:
Hi Fyodor,

Arco jus commitit into gerrit, but I will taka a look at yours so we should find the best visibility.

I won't say that your script is not more usefull, the port affects only to gingerbread, no Froyo, and since you are working in Froyo and also working in AOSP I think is a very good script, also to help people to understand what has been implemented.

Fyodor I have pushed your overlay there: http://review.cyanogenmod.com/#change,3672

Already tested and looks great, Thanks
[Click Android Development] cn.fyodor:
Ok, my pleasure, dude. :)
[Click Android Development] dancer_69:
Who is the developer of miui fm app?

I made a translation of ui and I want to send the translated files.
[Click Android Development] KalimochoAz:
Miui is part of the CM ROM originaly ported from miui ROM. You can sent into cyanogenmod gerrit or send me in private and I will push into gerrit.
[Click Android Development] nljelmer:
Maybe an idea for Making fm-radio widget? Is this possible? It should be awesome! ;)
[Click Android Development] grof1985:
well also maybe any1 could add automatic scan, recording or something like that :)

i`d do that if i knew how :)
[Click Android Development] cn.fyodor:
Scanning is very simple if written in shell script. Here is my script to control FM Radio, including scanning, search backward/forward, and other common neccessary functions. But as for C/C++ implementation, I think the main problem is how to get the current frequency from command 'hcitool'. Not like shell script, system() call in C++ just returns status of command not CONTENTS of command. If you did implement this, you should patch the HAL in framework/base project and FM app as well.
[Click Android Development] cn.fyodor:
patch for scaning

I wrote a test patch for FM scanning(one step), which had not been tested yet 'cause FM app was not implemented to search stations. Here it is. Hope someone continue to add a patch to enable scanning function in MIUI app and report bugs if any issues.
[Click Android Development] grof1985:
ure doing great job fyodor...

THANKS!

but i don`t know anything about linux or programming at all :)

offtopic: can u tell me where i could learn that?
[Click Android Development] mikereidis:
So how is the formerly "MIUI" FM app working ? I think it should likely be called the "CM FM app" now, since it's a fork with some mods, AFAICT.

I've released version 1 of my App Inventor app: http://xdaforums.com/showpost.php?p=12533947&postcount=93

I'd be interested in hearing of success or failure/bugs.

I'm considering getting involved with the CM FM app effort, or a MIUI or Code Aurora fork or some other open source project. Just wish I could think of a way to actually earn a meager income doing same...
[Click Android Development] mikereidis:
I've posted a new Java based app derived from the latest CodeAurora code (from which MIUI and CM app are also derived).

Details and download:

http://xdaforums.com/showpost.php?p=12664128&postcount=109
[Click Android Development] simmonsstummer:
maybe this is the right place!!!

how can i increase the volume of the tattoo?? (CM 7) i can barely hear the voice of people i talk to....

i tried every app and setting but nothing..

i need a manual mod in the code..
[Click Android Development] dom_b:
1. this is the wrong thread, nothing to do with volume

2. do a search

3. start a new thread about it if you can't find anything

4. there's nothing wrong with the volume of the tattoo. there's either a hardware problem with your phone, or a problem with your ear
[Click Android Development] kaleun:
MIUI is such a nice, clean, fast and userfriendly UI.

I have been trying it on my DHD. Still loads of minor bugs though.

If this could be ported to the tattoo I'd use it definitely
[Legend Android Development] abhishek_turbo911:
My legend is on rooted 2.2 , I have set cpu and rom manager installed ...i wanted to overclock so I have download the version 3.5 from a guide posted under this section. Ive run into problem with rom manager. I've downloaded clock work recovery mod after installing the latest version of rom. When I try to instal the kernel , after out shows the pre installation menu, I check backup rom and uncheck wipe data and cache and then its supposed to boot into the recovery menu but out doesn't and shows the screen with the red exclamation mark and nothing else happens. How must I proceed here ?
[Legend Android Development] bjohv052:
This will sound rude, but the solution is to not overclock. You lack experience and knowledge. Lurk around the forums for at least a few weeks, then you may be ready to try again.
[Legend Android Development] Rapier:
If you've decided to go further, at the triangle with exclamation mark, press (and keep pressed) vol-up then press power till a blue menu appear. Select the second option (the one containing "flash update.zip from sdcard") and you'll end at a green menu. That's CWM recovery 2.5.x...if it is an orange/yellow one it's CWM 3. You can flash a rom or kernel from there using "flash zip from sdcard" option.

Tip: Next time you can better use search, this question has been answered already several times by now in various threads...
[Legend Android Development] abhishek_turbo911:
This is the correct version of kernel I must flash , right ? What about the 4.0 version ?
[G Tablet Themes and Apps] xmr405o:
Has anyone tried the N64oid on the gtablet yet? Any impressions from gtab users? It's in the market now.
[G Tablet Themes and Apps] sixvoltsystem:
I'm gonna buy it today so I can play some Conkers Bad Fur Day. I'll let you know!

I got it, will test it during lunch, I tried running it on my Droid 1, choppy but playable. Lets hope it flys on the Gtab when I get home.
[G Tablet Themes and Apps] xmr405o:
Hey thanks six. I've been following it in the market looks like they fixed a few of the sound problems and other things....I might just jump on it too, this weekend. But ill wait for u haha. :p

Can you please let me know if it supports any other input methods,like wii mote. I would think it would be a ***** to play with the on screen keyboard.
[G Tablet Themes and Apps] the3dman:
The program is great!!!

The only issue I have is that the framerate is way to fast (didn't expect that), so the game play (at least for mario 64) is like mario on crack. I hope I can figure out a way to slow the framerate.

It does support the wiimote!
[G Tablet Themes and Apps] sixvoltsystem:
Sorry guys! Yes it's awesome!!! Especially on the G-tab, my 2 yr old and I have been playing Mario 64 and Mario Cart 64 like crazy! Well worth the money! Great in combo with "rom gripper ++"! It does run a bit fast on some games, but I am very pleased with this considering I bought all the *oid emulation apps for me and the kids, well mainly me. The on screen controller took a bit getting used to but wasn't so bad after a while. Yep wii remote will work.
[G Tablet Themes and Apps] Pazzu510:
any idea if a xbox wired controller works???
[G Tablet Themes and Apps] xmr405o:
I doubt that would work. But the wiimote works. Too bad two player games can't be played on one screen, at least not that I know of.
[G Tablet Themes and Apps] degree210:
I can't find it. . . I search n64oid and it doesn't come up. . . :confused:
[G Tablet Themes and Apps] xmr405o:
:)

Super Mario 64 ,Mario mart, and pokemon stadium 2 no issues.

Starfox sound goes away during gameplay but the game plays great besides that.

Pokemon stadium intro plays but that's it. Excite bike 64 is a no go. That's all I tested.

Not bad for an early release.
[G Tablet Themes and Apps] Mantara:
Hell yes! Was actually trolling online recently for an n64. Mine got stollen my Meth heads a few years back and I miss it and my perfect collection of classics. If I can play Tetrisphere and conkers bad fur day with the wii mote I will be in heaven, and be able to keep a little more cash in my pocket. Those systems can be expensive now. Apparently all the stoners up here in the Northwest have a death grip on their n64s and wont give them up for cheap.
[G Tablet Themes and Apps] xmr405o:
I still have my n64 somewhere in a box. I never did get rid of it and I wouldn't either. Maybe those stoners aren't that stoned after all. :p
[G Tablet Themes and Apps] rushless:
I have been using an N64 emu on PC & laptop for quite a few years now and have at least "a few" roms. Result is I have roms that are verified to work.

Seems not many games work well with this emu yet, but some that do:

Super Mario

Bust a Move 99 / 3DX, 2

Diddy Kong Racing

Mario Kart

That is about it so far that I tested. All others tried either play slower, strobe off and on or backgrounds go black. If you like the games above, the app is good right now.

I have tried several dozen roms so far and the ones above are the best.

BTW, The games play half the speed on Incredible, so even slower.

This seems a beta release and $7 is a bit steep.

Update:

Sadly, the dev is following the same trend as with his PSX emu and each update makes the app WORSE.

Some games that worked do not now and games are a lot slower with the update from today. A lot now crash before even playing. BAD update.
[G Tablet Themes and Apps] RideZeLitenin:
I only wish there was a free version so I could test it out.

Anyone knows if it would run well overclocked at 768 MHz?
[G Tablet Themes and Apps] RideZeLitenin:
Yikes. This is exactly why I'm not so sure about paying $7 on something that might not even run on my Ally. And the 15 minute refund window probably isn't enough time to judge, either.
[G Tablet Themes and Apps] adam.porter77:
Works pretty good for me so far, tried Mario 64, Zelda Ocarina, and Goldeneye, all worked at normal speed with good sound. Donkey Kong 64 starts but controls won't work, assuming a bad ROM.
[G Tablet Themes and Apps] manfly9884:
As I type, my Son is playing Mario 64 with the latest update. No issues whats so ever. Thanks for the heads up guys!!!!
[G Tablet Themes and Apps] tgpqaz:
THIS IS WHAT IVE BEEN WAITING FOR!!! (well this and full version of firefox) It seems to run great on my gtab, super mario 64 is so fast its funny, on the other hand Golden eye 007 runs at just about the right speed.
[G Tablet Themes and Apps] iTablet:
Just checked the description. G-sensor as analog. I might try this.
[G Tablet Themes and Apps] xmr405o:
Mario 64 runs fine on my gtab but I can't get golden eye to run lol. Wanna trade??? Jk
[G Tablet Themes and Apps] rushless:
The newest version of the app is slower, compared to the previous version, so not sure what version you folks are using. Same trend as with his PSX efforts.

Trust me, in the previous versions performed much better. it seems he got rid of the auto frame-skip and the current frames skip method does a bad job.

You really notice it on the Snapdragon (Incredible). Slower version.

Update:

I see what he has done now with the newest update. He has adjusted compatibility to be better for some games, but the net impact is slower performance. Hope he finds a balance :)
[G Tablet Themes and Apps] xmr405o:
Updated version fixed all the issues I had for some of the games. Now all the games I care about work perfectly, IMO. Yay!
[G Tablet Themes and Apps] dmm5157:
Was anyone able to get their G sensor to work as the analog stick? Didn't seem to workfor me and playing Mario Kart with only 2 multi touch capability is rough.