yashsingh1/xdaforums huggingface dataset:
[LG Optimus 3D] ilie321:
nop i was unable to make it show in apps list and i kinda started another project atm. i try to do a smali to java converter :D but idk if i will be able to do it :D.

If someone can get me the source from that app i can try to see what is about

I got the fm app from p700 lg and it starts and route fm correctly but it cant find the ti chip even if it has the logic inside
[LG Optimus 3D] SL_NUWAN:
Thanks for the reply and the new modified app and for your hard works on this...

I installed it and now it is working but there are few errors

* When Analog Audio is on volume control icon is not working. but sound can be changed using the volume +- (see the attached screen shot)

* The app always request Superuser permission. Superuser log have around 100 logs per min. Is this a bug?

sorry if my English is wrong.
[LG Optimus 3D] ilie321:
* i know that sound bar is not working for analog but i think this is not a big issue because the stream for digital is paused and the analog is forced to route out of the android sound manager knowledge

* if analog sound is on, app is interrogating audio routing each 5secs so yes it request su permissions each time and in log of su you will have this things
[LG Optimus 3D] SL_NUWAN:
Thanks for your comments. yes those issues are not big issues to use this app.
[LG Optimus 3D] fadhli7:
Can't install

Hi I the fm radio says it cant enable. So I tried installing the patch but it says failed. Any solution?
[LG Optimus 3D] SL_NUWAN:
Use this guide;

http://xdaforums.com/showthread.php?t=2291587

in 1 -step is to flash version 2.2

In 2 -step use ES file manager to paste three files (version 2.3) manually in relevant places and reboot and fix permission in recovery under advanced menu

in 3 -step install latest FmRxApp321.apk
[LG Optimus 3D] fadhli7:
Help

Thanks for replying me but I've already flash FM-ICS-JBv1.1.zip file. How do I delete it? I'm currently using stock rooted V28b
[LG Optimus 3D] SL_NUWAN:
I think you have flashed Gingerbread version of the FM app !

Now you have two options

01. you can flash (or install o factory reset) V28b and proceed with the guide

http://xdaforums.com/showthread.php?t=2291587

02. delete files you flashed with ES file manager and reboot and proceed with the guide

http://xdaforums.com/showthread.php?t=2291587

don't forget to backup your system...

Files to be deleted are;

\system\app

service.apk

FmRxApp2.1.apk

\system\bin

tinymix

system\etc\firmware

fm_rx_init_1273.2.bts

fm_tx_init_1273.2.bts

fmc_init_1273.2.bts

fm_rx_ch8_1273.2.bts

fm_tx_ch8_1273.2.bts

fmc_ch8_1273.2.bts

\system\etc\firmware\ti-connectivity

wl128x-fw-4-mr

wl128x-fw-4-sr

wl128x-fw-4-plt

\system\etc\permissions

com.ti.fm.fmradioif

\system\framework

fmradioif

\system\lib

libfmradio.so
[LG Optimus 3D] fadhli7:
Help

I tried deleting everything that u asked me and then installing the app. But After opening the app, its just blank screen and it keep popping up SU grant access....
[LG Optimus 3D] SL_NUWAN:
For me it works for V30A & V30C (I do not know about V28).

You may have done a mistake in installation process.

read the guide again and try to figureout where it goes wrong.

01. check supper user log to see permission allow or Denay.it should be allow

or

02. you may re flash( here you may wipe cache and wipe dalvik cache after flash in TWRP) MOD_FM_Radio_2.2_ICS_P920_es_en_de_it_sk after deleting FM app and Service app in system/app folder. and then manually paste files in 2-step (guide) and reboot to recovery wipe cache and wipe dalvik cache and then fix permissions in recovery under advanced menu and reboot into system and after that try FM radio with ear phone(give supper user permission).

if this works you can proceed with later versions,

If you have any problem you can ask from ilie321 for help and advanced advices. and don't forget to press his thank button for his great work.

':good:
[LG Optimus 3D] fadhli7:
ok

ok, I will try to install Team Acid rom 7.2 first b4 proceeding to install the fm, Thanks for ur help:good:
[LG Optimus 3D] mic3d:
it's strange but with latest test app I have better reception of stations ,some random system restart when I start the app,the headset button don't work with screen of for me .thanks for your hard work
[LG Optimus 3D] ilie321:
better reception is not coming from fm app if is true is strange. it may be a different usage of hardware which is near the radio chipset and provoke less noise that other versions but don't think so. headset button work for me and no reset so idk what is provoking this to your phone

I start to believe that android SO is very strange :D but I'm a beginner here
[LG Optimus 3D] mic3d:
You make big change in apk? i tried every version of app what you make and with this I have bigger signal level and the sound quality is good

I make every day the same route to the work and the signal level is higher with this version :good:

I have darkroom v4 xxl with next level v4 kernel...
[LG Optimus 3D] ilie321:
quality of sound yes must be better in last 2 apks
[LG Optimus 3D] Vaimaster:
have you manage to do anything with the p700 apk?if yes,when can we see the results?i think many of us are waiting....:fingers-crossed: :D
[LG Optimus 3D] ilie321:
No i was unable to do anything so i quit sorry
[LG Optimus 3D] defcomg:
It Will never Work on kernel 3.0+ so thats that

It's all good We Have working FM
[LG Optimus 3D] drfareed:
Dear ilie321 Could you plz reupload the link for for V2.3.The link given in the previous post is not working for me and can you plz tell me the best working FM radio version becouse I am confused which version is with less errors.Thanks
[LG Optimus 3D] ilie321:
normally the last version should be the best

check this for links and help

http://xdaforums.com/showthread.php?t=2291587
[LG Optimus 3D] ilie321:
for ppls that are interested this is the entire project i made for fm app
[LG Optimus 3D] drfareed:
I am trying to flash V 2.2 over V2.1 but after flashing 2.2 zip it still shows V 2.1.Please explain how to flash 2.2 over 2.1.Thanks
[LG Optimus 3D] ilie321:
i think i forgot to change inside app the version so it say also 2.1
[LG Optimus 3D] ktan.us:
Just a quick question, has anyone applied this to his thrill ics stock ROM?

thanks
[LG Optimus 3D] dreccon:
[MENTION=3613923]ilie321[/MENTION]

Thanks once more for your work. If you don't mind, I have made a flashable zip that installs 3.1 radio straight into a secondary CM10 (dual boot) ROM. Users should flash it after every nightly upgrade. It can be found in my Dual Boot thread (see signature) and proper credits are given. THIS IS ONLY FOR DUAL BOOT USERS!
[LG Optimus 3D] ilie321:
no problemo if it works use it
[LG Optimus 3D] dreccon:
Thanks man. I'm just a little confused because in the thread there are many test versions. Which is the latest stable one? 3.1 or 3.2.1?

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
Was strange some ppls had problems with 31 and i just changed small things for 321 for them . On my phone both work well . Reading audio buffer is only diference. Test on your rom to see which is better. There is also a guide much easier around. Goodluck. I use clearaudio+ to manage headset button and acid + fx for better sound and equalizer.
[LG Optimus 3D] ilie321:
ok i added 20 station save and i work to add wheel and new icons backgrounds

it will take few days to finish the new look
[LG Optimus 3D] krija:
My little mod of the UI.
[LG Optimus 3D] Vaimaster:
http://xdaforums.com/show....php?t=2427492

if you can't do it exactly like that,can you make it to look as much as possible to the one in the link?:D:D:D
[LG Optimus 3D] ilie321:
link not found

if anyone want can mod it and post it here i told you im not good at it

i will post source also when i finish so you can do what you want with it

tho will take some time to end it because i have little time for it
[LG Optimus 3D] @aliumujib:
Somebody mentioned [MENTION=4947573]OptimusRs[/MENTION] being a greater themer

and I totally agree with the person, you could sublet the project to him..... He has always been helpful..
[LG Optimus 3D] Vaimaster:
http://xdaforums.com/showthread.php?t=2427492..this is the link..
[LG Optimus 3D] ilie321:
i did it now
[LG Optimus 3D] ilie321:
i start to change some things not done yet but close

what do you think?

20 station to save on main screen

wheel but is not working in real time you move to a frequency and when stop it tunes

new UI
[LG Optimus 3D] Vaimaster:
It is not perfect,but it has better looking from the previous one..But,i would rather wait OptimusRS work to see what he can do with the theme..By the way,nice try ilie!keep it up!
[LG Optimus 3D] krija:
Hi, ilie. If you move top menu buttons to the help/about menu you'll have more place on the main menu to create nice ui.
[LG Optimus 3D] ilie321:
hmm he dont know much java so he cant help now --- maybe after i finish he can mod the apk

---------- Post added at 12:56 PM ---------- Previous post was at 12:55 PM ----------

i think they very used buttons so need to be on main ui
[LG Optimus 3D] ilie321:
is taking a bit longer than expected because i tried to solve some bugs

and didn't had time to do it last week

and I'm nub at java so it takes time :D

this will be the last version i think

estimating 3-4days for release
[LG Optimus 3D] Vaimaster:
what bugs? :D
[LG Optimus 3D] ilie321:
:D

- added new UI and wheel - done

- added 20 ch in main UI - done

- adding wheel made the mode of typing frequency to give force close - solved

- starting app is long i try to make it a bit smaller - gained ~1 sec :D

- headset key not working with screen closed - in work

- maybe i add a loading screen at start if possible- to do

- notification not show app at click on it - solved

- rds data scroll better - ~solved

- seek is muting audio but can be noisy - to do

- buffer overflow sometimes - increase buffer size provoke sound delays at change channels

- some other things that i forgot for the moment :eek:
[LG Optimus 3D] ilie321:
ok since i dont have time to make more this it is:

v3.2.3

to install from 0 use the guide from here http://xdaforums.com/showthread.php?t=2291587 for v3.2.1

and at last install apk from here

if you on 3.2.1 install this apk over

report bugs
[LG Optimus 3D] krija:
Hi ilie. Can you add ContextMenu to strings and name it to something like "Edit Station" or similar please? See the attachment for what i mean.
[LG Optimus 3D] ilie321:
i dont understand

what strings?
[LG Optimus 3D] krija:
The ContextMenu phrase can be find only in one of the smali file. If i want translate your radio app i need do it through this smali file and i dont know how can i add this phrase to strings.xml file in res/values directory (state when apk is decompiled).
[LG Optimus 3D] ilie321:
this ones?

<string name="set_station">Set Station</string>

<string name="unset_station">Unset Station</string>

<string name="rename_station">Rename Station</string>
[LG Optimus 3D] krija:
These three are in the strings.xml. I mean the title phrase for this context menu which you can see in attachment sended from me few post back.
[LG Optimus 3D] ilie321:
oh finally i understood your request

see attachment
[LG Optimus 3D] defcomg:
looking nice man:good::good:
[LG Optimus 3D] krija:
ilie, i think that the rds line is little bit low. See the attachment please :)
[LG Optimus 3D] ilie321:
strange for me is ok
[LG Optimus 3D] troopii:
Looks like he incrased the dpi of fonts.
[LG Optimus 3D] krija:
No, I did some mods only today :)
[LG Optimus 3D] dreccon:
Have you modified your build.prop to run at 200dpi instead of 240?

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
i just checked is 240dpi

i use shazo's kernel and v28B with extended system part

also i got a good sound with viper4android http://xdaforums.com/showthread.php?t=2408542 is uber for me

i tweaked my phone with this http://xdaforums.com/showthread.php?t=2412435 :d

i use minimum frequency with screen on at 800Mhz to be smooth and max 1300

and it change with cpumaster to min possible with screen off (if you apply this take care to have same governor on all profiles or lag )

i use systempanel app to monitor apps that eat cpu and ram :d
[LG Optimus 3D] ilie321:
if anyone has mods he can post them here

also if someone need the source files just ask (eclipse project)
[LG Optimus 3D] mic3d:
only with this version i have working headset button controler with screen off:confused:
[LG Optimus 3D] krija:
My little mod of the latest apk:

http://xdaforums.com/showpost.php?p=45799710&postcount=494

* Added slovak language

* Changed some colors of the texts

* Resized and centered some texts

* Changed backgrounds

* Changed and removed buttons (back to oldest versions)

* Drastically resized apk file

[MENTION=3613923]ilie321[/MENTION], defcomg thank you very much :)
[LG Optimus 3D] FixB:
Hi,

I installed the FM Radio, following this tutorial : http://xdaforums.com/showthread.php?t=2291587

The radio app seems to work fine (well some times, I have to reboot the device to make it work).

But my main issue is that the bluetooth is not working well anymore: when I try to activate it, it tries to (and keeps trying), but to no effect.

Anyone know how to get the bluetooth back, while keeping the FM radio ?

Thanks !!
[LG Optimus 3D] ilie321:
hey you can try force close when you have problems with fm app with a task manager etc. Seams from rom to rom or from phone to phone some delays or something make it not working. On my phone is ok i cant see what is wrong on others.

for me bluetooth starts ok and no problem is your rom i think

did you flashed MOD_FM_Radio_2.2_ICS_P920_es_en_de_it_sk.zip first?

---------- Post added at 08:16 AM ---------- Previous post was at 07:49 AM ----------

what version?
[LG Optimus 3D] ilie321:
any chance to know from what LG phone rom is this app
[LG Optimus 3D] krija:
I think that it is from LG Optimus L7 (P700). L7 has radio which look like this one.
[LG Optimus 3D] ilie321:
yea i was thinking at P700 what is strange is that has ti chip management and it search for an fmradioif.jar different from my fmrxapp maybe someone can find it and i think the app may work on our phone
[LG Optimus 3D] Vaimaster:
Is there any chance to make your apk look like this??:D
[LG Optimus 3D] ilie321:
no sry no time but anyone can have the source files if he wants to try
[LG Optimus 3D] krija:
the fmradioif.jar does not exist in L7 rom (i have ics v10k). There are other files for fm radio, but they are related to qualcomm chipset.
[LG Optimus 3D] ilie321:
Oh there are more versions of p700 maybe? Or the file was not released after all.
[LG Optimus 3D] krija:
There is L7 for the chinese market - P705.
[LG Optimus 3D] FixB:
Even force closing the app does not help the bluetooth :(

How should I proceed to uninstall the FM radio app & services: I prefer having blutooth working, than listening to radio...

Thanks!
[LG Optimus 3D] ilie321:
uninstall as normal app or if is in sistem apps just delete it
[LG Optimus 3D] ilie321:
Hey all just for fun i tried to make working old gingerbread fm apk and after few days made some progress

Radio starts but no sound at all audit route not working at all so dead end and rds not implemented in that app :( even if interface is so nice
[LG Optimus 3D] dreccon:
Off topic: Here is an interesting project if you're out of ideas! It's a 3D interlace library for the EVO 3D. It makes the 3D panel usable on non-3D ROMs like CM10. This is the only thing missing from the O3D to make it completely independent from LG!
[LG Optimus 3D] Vaimaster:
So,what do you think?is it possible to make it work?(without rds and other stuff):D
[LG Optimus 3D] ilie321:
is kinda hard because i need to edit smali code

audio is not routed at all so dont think i can add so much smali code to do it work

and there is a problem some fm function from the app are not existing in the fmradioif.jar so is impossible to start them (i disabled them to start the app not to have force close but except inserting frequency manualy and storing stations nothing works

i tried to enable rds but it say seek in progress every time (strange) bad things if i have time i will try more editing but i dont promise anything

edit:

this is the source for audio_hw_primary made by TI and is almost similar to what is compiled in our phone : http://git.omapzoom.org/?p=platform...7da63e55371c6b126639984;hb=d-jb-mr2.0-release
[LG Optimus 3D] ilie321:
more infos for ppls

active commands for fm on our phone with audiomanager.setParameters(keypairs) are:

keypairs: (they are berried in framework.jar)

"fm_audio=active" or inactive

"fm_speakerphone=off" or on

"fm_mute=loud" or mute

also exist

fm_error =??? not used

registerFMRadioBinder=??? is for use with fm_stack

example of use

audiomanager.setParameters("fm_audio=active");will route audio for fm digital but is bugged no starting playback loop correctly

see in attachment our fmmanager.java compiled from smali

infos for fm apps

- old fm apk for gingerbread has same issues with audio but i successfully enabled RDS from smali coding :D app is not doing autosearch and routing to speaker so in this moment is working with no audio with rds and save stations function wheel and manual tuning keys

i try make start app from p700 phone on ours : fc atm at station db after gets instance of fmradioif.jar lib

edit: app for P700 starts has all functions available but no sound also even if FM routing is made
[LG Optimus 3D] ilie321:
anyone that has gingerbread and old fm app can give me a logcat when starting FM radio please

thanks
[LG Optimus 3D] wyl326:
View attachment FmRadio.apk

View attachment FmRadioProvider.apk

View attachment FmService.apk
[LG Optimus 3D] ilie321:
thanks

but i need a log of messages when you start the fm app

can you install on your phone this app from google play https://play.google.com/store/apps/details?id=org.jtb.alogcat&hl=ro

start it and start fm app . now after 10 seconds of work close fm go back to alogcat and save the log and put it here please

big thanks if you do that
[LG Optimus 3D] dreccon:
Here you go! I was tired of the slow media scanner and wanted to go back to Prometheus anyway!
[LG Optimus 3D] ilie321:
bleh cant download the damm file 404 error for few hours again
[LG Optimus 3D] dreccon:
Strange, must be because I uploaded it from my phone using Next Browser. Please, get it from here. Sorry for the inconvenience.

Sent from the 3rd dimension!

---------- Post added at 08:33 PM ---------- Previous post was at 08:12 PM ----------

Just to cheer you up, I found another logcat that may interest you...

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
thanks is not your fault :laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh:
[LG Optimus 3D] dreccon:
:D:p:D:p

Exactly what I was talking about. Users should send cats like those with every error report!

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
ok concerning our fm routing audiflinger.so has inside 2 loops :

AudioFlinger::MixerThread::threadLoop()

and

AudioFlinger::RecordThread::threadLoop()

which are started and they configure input stream and output stream correctly

starting is given by intent ti.android.intent.action.FMRx_PLUG received by the audiomanager which is calling AudioPolicyService setDeviceConnectionState() with native in AudioPolicyManagerBase library

in this function is called

in_set_parameters(....) and out_set_parameters(....) with arguments for FM routing so everything is ok for routing FM but at the end both threads enter in "waiting mode" for commands when they should start to record/play the stream for digital FM

what is weird is that we have this 2 things for FM :

1 inside in_set_parameters(....)

..........................................
in->pcm = pcm_open(card, device, PCM_IN, &in->config);[COLOR="Red"]// logcat: TINYPCM 167 pcm_open: /dev/snd/pcmC0D1c [/COLOR]
.........................................
if (adev->devices & AUDIO_DEVICE_IN_FM_RADIO_RX) {
ALOGI("FM:FM capture path opened successfully!!\nFM:Triggering loopback for FM capture path"); [COLOR="Red"]//you see this in logcat[/COLOR]
fm_enable = true;
pcm_start(in->pcm); [COLOR="Red"]//what is this supposed to do????????? [/COLOR]
}
........................................

2 inside out_set_parameters(....)

.......................................
out->pcm = pcm_open(card, port, PCM_OUT | PCM_MMAP, &out->config);[COLOR="Red"]// logcat:TINYPCM 167 pcm_open: /dev/snd/pcmC0D0p[/COLOR]

/* If FM enabled then playback path needs to be trigerred for loopback */
if (fm_enable) {
ALOGI("FM:Triggering playback path for FM loopback")[COLOR="Red"];//you see this in logcat[/COLOR]
pcm_start(out->pcm); [COLOR="Red"] //what is this supposed to do????????? [/COLOR]
}

.....................................

for my comment "//what is this supposed to do????????? " i think should make audio to route without a buffer (kinda audio analog FM ) but is not doing anything for our phone in my opinion

so for digital FM is nothing to be made i think (only my app is able to make digital working with help of tinymix)

but for analog it maybe a chance if anyone want this
[LG Optimus 3D] ilie321:
FM APP from GB on ICS

functions and bugs:

- audio is analog and is working only with headset

- speaker button = enable/disable RDS

- automatic scan not working dont try it or it will block your app and you need to force close it (fmradioif.jar dont has this option)

install:

for those that dont have my fm app installed flash attached zip in recovery (you need rooted phone)

for all others just install the com.lge.fmradio-1.apk from inside zip archive (is in folder system/app) it will work in parallel with my app

if flashing zip dont work just put files with esfileexplorer same as inside zip folders

edit:i forgot to add that the fmradioprovider.apk need to be installed also for peoples that have my fm app in parallel

enjoy
[LG Optimus 3D] wyl326:
Thank you for your work, I always wanted to have a perfect 920 radio.

in recovery ,install the zip
[LG Optimus 3D] ilie321:
i need the logcat when you get that error to see what is wrong
[LG Optimus 3D] dreccon:
My cat crashed on the log. Erm... I meant My logcat of the crash!
[LG Optimus 3D] ilie321:
oh strange error on my rom is working good i will check but i dont know what :D

rejected opcode is very strange
[LG Optimus 3D] dreccon:
I already had your radio working on my secondary CM10, so I just copied LGRadio and Radioprovider apk to /system/app and gave 644 perms. The logcat is after the reboot of course.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
So it worked before restart and is giving the error after it?
[LG Optimus 3D] dreccon:
No, the ported gingerbread radio never worked. It's the radio you made from scratch that already worked on the same ROM so, in order to install the ported one, I manually copied the two files I mentioned.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
Ok i will give you later a test version when i go home

edit: ok try this ones

fmradio.apk should have sound if is starting

and the other one no sound but check if is starting if first is not working
[LG Optimus 3D] Evil Slayer:
hey man,appreciate all the work you are doing on this

i tried both apks,installed fmservice apk and the other apk as well,but still getting force close msg

i still have the previous app you made from us,it is working but sometimes need a couple of reboots wih freezing and then unfreezing it or/and the fm services as well to get it working,and when it works after about 5 seconds it becomes unresponsive when will need me to freeze the fm radio app and then unfreeze it for it to enable me to change the channel but then again it freezes after 5 seconds

but never mind im fine with it it is diffidently better then not having radio at all since i still rely much on it so really thank you for it :)
[LG Optimus 3D] dreccon:
Both force-close on CM10

FmRadio.apk logcat

com.lge.fmradio-1.apk logcat

Sent from the 3rd dimension!