yashsingh1/xdaforums huggingface dataset:
[LG Optimus 3D] ilie321:
same message in logcat?

---------- Post added at 07:03 AM ---------- Previous post was at 07:01 AM ----------

i dont have any of your problems on my phone

what rom you use ?

can you give me a logcat when you get those fc and no response from app? but mention for what app it is
[LG Optimus 3D] dreccon:
Could it be that we need an additional file from the zip apart from the FmRadio.apk and the Fmradioprovider.apk? Are they all exactly the same as those from your own radio app?

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
fmservice.apk fmradioif.jar and libfmradio.so permission file and tinymix are the same

what is strange that for me it works very good but i did many tests and maby something is different this is why i want logcat (catleg :D)

to see what is going wrong

edit : i dont know what is wrong i've build this one with an earlier version of apktool and backsmali maybe it works

invalid opcode is weird error
[LG Optimus 3D] TommyX235:
Not working for LG Optimus 3d Max P725.

"cannot enable Radio!"

try'd

chmod 777 /dev/radio0

changes nothing. schade ;)
[LG Optimus 3D] ilie321:
i dont know anything about 3dmax sry
[LG Optimus 3D] dreccon:
Still refuses to run.

Here.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
"Basically, a VerifyError can only occur when there is a compiler bug"

i dont know what to do

can you get the androidmanifest.xml from last app i've sent you,,,,,, add it in the original fmapp from gingerbread sign the app and see what error you get in logcat when you run it

normally should be some class not found error

in this case in smali files you search where this class is called and comment lines with #

should be 3-4 classes and after this app should start but no sound :D
[LG Optimus 3D] dreccon:
Hmmm... Last night I dreamt I was a Java programmer like you, but now I need to wake up and go to work! I'm sorry my friend. My knowledge doesn't go that far!

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
:D:D:D:D

another try
[LG Optimus 3D] troopii:
thats one of the most stupid errors =) but outofmemory is more boring

try to build it with java6

or look if you have some cross references set up

or look if the method returns the wrong type

looks like somethings wrong with the constructor from FmRadioApp and the native lib can not loaded.
[LG Optimus 3D] ilie321:
thanks the problem is that i dont have the source code for this app. i used smali decompiler to remove some functions calls that dont exist in framework file fmradioif.jar for ics and i added in androidmanifest a line to use this file

i will try with java 6 again

can you tell me why on my phone works ? :D

edit: built with java 6 >>>>>>>>>>>>>>
[LG Optimus 3D] troopii:
im getting the same error. all permission are set to 644 and ownership is root for all files also the tinymix.

strange that it is working for you. looks like something is wrong with my permissions and he cant load the lib
[LG Optimus 3D] ilie321:
Can you give me logcat?
[LG Optimus 3D] troopii:
its the same as for dreccon.
[LG Optimus 3D] ilie321:
is not permission issue i think

on last file i post is the same hmm

i dont understand why for me is working

edit: anyone tried to install this app or you guys just put it like system app? delete it from system app and install it if not, it may work

let me know if this solve the problems
[LG Optimus 3D] troopii:
pushed it with adb and copied to sytem. didnt try to install it. can give feedback tomorrow because i forgot my phone at home
[LG Optimus 3D] dreccon:
I tried both ways with the previous test builds. Didn't make a difference.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
im like blind since on my phone is working so i need you to test
[LG Optimus 3D] troopii:
12-22 08:40:20.398: W/dalvikvm(12082): VFY: copyRes1 v2<-v8 cat=1 type=0
12-22 08:40:20.398: W/dalvikvm(12082): VFY: rejecting opcode 0x0a at 0x00c7
12-22 08:40:20.398: W/dalvikvm(12082): VFY: rejected Lcom/lge/fmradio/FmRadioApp;.startup ()V
12-22 08:40:20.398: W/dalvikvm(12082): Verifier rejected class Lcom/lge/fmradio/FmRadioApp;
12-22 08:40:20.398: W/dalvikvm(12082):[B] Class init failed in newInstance call (Lcom/lge/fmradio/FmRadioApp;)[/B]

v3 is doing exactly the same. maybe you include all you files in a new packed. did you changes to the radio framework.jar?
[LG Optimus 3D] ilie321:
what rom you have?

i have darkroom music edition

i think something is different in framework
[LG Optimus 3D] troopii:
im on pure stock v30b with root. i dont like custom roms :D
[LG Optimus 3D] dreccon:
I also have a relatively unmodified CM10. Framework.jar is definitely untouched.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
one more try :D

btw i use qtadb for working with phone copy paste install apks etc is easier :d
[LG Optimus 3D] troopii:
same error again =D
[LG Optimus 3D] ilie321:
bleh i don't know what to do maybe tomorrow i will have new ideas

edit

another try:

rejected opcode 0A means move-result vx i searched this in startup method where logcat say is rejected and i commented some lines just to see if anything is different
[LG Optimus 3D] troopii:
now the constructor iss missing args
[LG Optimus 3D] ilie321:
eww
[LG Optimus 3D] troopii:
and we are back on the verfiy error. pls attach all needed files so we have the same files
[LG Optimus 3D] ilie321:
files maybe last time i added something wrong
[LG Optimus 3D] ilie321:
what error you get with this one?

edit:

this has only the androidmanifest changed with 1 line and other signature only so no changes to original dex and resources if you get same error is not because decompiling or editing smali code
[LG Optimus 3D] dreccon:
Still force-closes but there is progress...

Here.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
yep progress

seams the problem is with smali backsmali so with the dex file

i will try to use older versions of this tools but is strange that on my phone is no problem

edit:

i need you to tell me for each app if you have same old error or the new one
[LG Optimus 3D] ilie321:
Merry Christmas to all :D
[LG Optimus 3D] dreccon:
I'll test tomorrow. Right now I need some sleep. I'm beat!

Merry Christmas everyone!

Sent from the 3rd dimension!
[LG Optimus 3D] dreccon:
All apks tested as normal apps.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
seams ok

test this and see if is working
[LG Optimus 3D] dreccon:
Tested.

Not working yet!

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
ewww

some changes
[LG Optimus 3D] dreccon:
If you finally manage to publish it, you should call it StubbornFM!

Logcat.

Sent from the 3rd dimension!
[LG Optimus 3D] jocazmaj:
Re: [FM Radio][JB][ICS][V1]

I flashed the radio and after that the patch.

The patch gave me an error in TWRP.

When the phone booted there was just the SManager, it didn't install the radio.

Manual install doesnt work on FmRxApp,FmService and FmTxApp.

Even the updated radio app v1.1 says installation failed.

Other than that I used terminal and got that pic..

No music for me then.:D
[LG Optimus 3D] kirpeace:
Re: [FM Radio][JB][ICS][V1]

I have the same problems
[LG Optimus 3D] ilie321:
i got same error but after i edited the script and deleted all "su" it worked for me
[LG Optimus 3D] jocazmaj:
Re: [FM Radio][JB][ICS][V1]

Which one, from radio zip or from the sh update zip?

Thanx, I'll try it out tomorrow, going to sleeeep now..

.....
[LG Optimus 3D] kirpeace:
Re: [FM Radio][JB][ICS][V1]

Still gives error running with su in smanager and without su gives failed to open mixer
[LG Optimus 3D] defcomg:
Flash this http://downloads.noshufou.netdna-cdn.com/superuser/Superuser-3.1.3-arm-signed.zip
[LG Optimus 3D] nikomedes:
still i could not manage to run the radio. i switched to SuperSu.

i installed the zip file from the first post several times. Spirit Unlocked is not working also when i checked, files in the zip file is not in my phone.

Also when run the script in smanager i got following error.
[LG Optimus 3D] ilie321:
from script
[LG Optimus 3D] jocazmaj:
Updater script?

There are no "su"s there..

I'm really lost here...

Could you upload that edited files?
[LG Optimus 3D] Vaimaster:
i have this error..Also,when i reboot after flash,there is no Fm Radio App..so,when i go to install it manually,it doesn't let me do it...Can you write the instructions so everyone can install it?because,as i see,a lot of people have problems,not only me
[LG Optimus 3D] ilie321:
open the audio enable script and delete "su" it worked for me
[LG Optimus 3D] nikomedes:
what do you mean with "delete su"?

you mean that su in /system/bin or xbin?
[LG Optimus 3D] Vaimaster:
Re: [FM Radio][JB][ICS][V1]

I have deleted the su but i can't install the radio app...why is that?
[LG Optimus 3D] ilie321:
go to your sd external card find "fm-audio-enable" file

open it with text editor

should look like this:

#!/system/bin/sh

echo "Routing To Headset"

su tinymix "6" "120"

su tinymix "66" "7"

su tinymix "67" "7"

su tinymix "73" "2"

su tinymix "74" "2"

delete all su you see

save the file

it worked for me

---------- Post added at 06:31 PM ---------- Previous post was at 06:29 PM ----------

try with spiritfm to see if radio works (read previous post for settings)

activate the audio script as explained in first post

---------- Post added at 06:55 PM ---------- Previous post was at 06:31 PM ----------

for those that have problems with installing	FM-ICS-JB.zip like missing files etc check if you still have space on system partition

you can use Smanager start the console shell and type : df

check if system part has free space in the log you see
[LG Optimus 3D] Vaimaster:
I have used a spirit fm radio app..i can install it but when i open it,it doesn't run..can you upload your spirit fm apk?
[LG Optimus 3D] ilie321:
try one from this month
[LG Optimus 3D] awi05:
Re: [FM Radio][JB][ICS][V1]

How to flash the patch files? It wont flash using recovery. I tried copy mksh file in system bin and paste in the same dir and rename it to sh.

The app does not show in the screen. I couldnt run chmod 777 either. It says file not found

Thanks in advance
[LG Optimus 3D] ilie321:
wooot i found something for devs :)

check it here
[LG Optimus 3D] Farhad4500:
Does not work, apk fmradio don't install...

how i can Uninstall Script Manager - SManager??
[LG Optimus 3D] ilie321:
go system/apps and delete smanager.apk
[LG Optimus 3D] ilie321:
good one :D

now is my mistake i used copy paste :D and forgot to change some things i will make them tomorrow

edit:

finally this should work :D fingers crossed

do not use complete scan it will block the app
[LG Optimus 3D] ilie321:
bonus fm app from p700 should work also

for those that dont have my fmapp flash zip

for others install app normaly

if you have ginger fm app you need to uninstall it and fmradioprovider.apk also before install this one

bugs: volume change is working bad if app is on front but is ok if it is in background

infos:

autoscan works

no rds

root needed
[LG Optimus 3D] dreccon:
StubbornFM works now but I still have no sound on CM10. Don't know about ICS.

(logcat)

P700FM has a better layout on my tweaked 200dpi display but I get no sound here either!

(logcat)

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
for cm10 try attached files

anyone else has problem with sound or other things?
[LG Optimus 3D] dreccon:
YES! THEY BOTH WORK! THANKS!

Now for the not so good news:

GBFM doesn't have a notification icon. The original app used to have one when FM was playing. I don't know if this is a problem.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
nop the notification was in FMservice and for my FM app i moved it so no notification for gbfm

the fmservice with notification make my app not to work good but you can get it from first version posted by defomg i think (to use it you need to uninstall fmservice from my app )
[LG Optimus 3D] dreccon:
Also, when P700FM loses focus due to a notification, it doesn't regain it afterwards. Tuning brings the sound back.

The same situation with GBFM has twice caused my CM10 to reboot. I haven't got a logcat for this because I need ADB and I don't have a computer available right now.

(I meant to add this to my previous post but the second reboot delayed me and you replied quite quickly) :sly:

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
audio focus is a problem cuz is no stream managed by android os

i routed sound with a trick (tinymix) so yes audio focus will be a problem on roms where sending the ti.FmRx_plug intent dont trigger audio routing as cm10

and because i dont have the source code i cant do more for those roms . For p700fm yes tuning restore audio (maybe also changing volume ) and i can do the same thing for gbfm but this is all for audio focus

my fm app uses tools which are making audio streams and android os is keeping them alive and no audio focus problems even if fmrx_plug is not working

i dont know why gbfm caused reboot cm10 ; maybe is to different from stock rom for our phone ; provide a logcat when you can
[LG Optimus 3D] dreccon:
CM10 is unstable under certain situations. I don't know if it's GBFM's fault. I'll get the logcat but I don't think it will be before the new year.

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
happy new year then :)

seams you are making the new year away from home :D
[LG Optimus 3D] dreccon:
You too man! I hope 2014 brings you what you wish for!

Sent from the 3rd dimension!
[LG Optimus 3D] dreccon:
I'm sorry to announce that I no longer own a P920. My 15 month old son threw it in the toilet! It's something I wanted to do since the ghost-calls days but I never dared! So, I am now happy with my HTC Evo 3D. I didn't really expect to leave these threads this way but hey, life is unexpected!

Sent from the 3rd dimension!
[LG Optimus 3D] ilie321:
well cya around have a nice evo :D

i will keep mine until it will die i think
[LG Optimus 3D] ilie321:
just for my fans :DDDDD im preparing something big for fm :D in few days
[LG Optimus 3D] ilie321:
all new things here http://xdaforums.com/showthread.php?t=2571120
[LG Optimus 3D] Farhad4500:
it's ok now thanks mate i delete smanager.apk and every'thing is ok :highfive::fingers-crossed:
[LG Optimus 3D] lord death angel:
can write all steps with Accuracy?

thanks
[LG Optimus 3D] wyl326:
can you build it to your new rom ,thanks!
[LG Optimus 3D] ilie321:
tasker app will be awesome but is not free

you can link script with app start or/and stop

spiritfm is working with TI(Motorola) also from what i see
[LG Optimus 3D] chieutim:
ICS XBSA V 7.2 can not install fm radio 1.1.apk in first post.
[LG Optimus 3D] ilie321:
i think is missing com.ti.fm.fmradioif.xml in /system/etc/permissions

download here com.ti.fm.fmradioif.xml

reboot phone and apps should work to install etc if not copy paste the app in system/apps

---------- Post added at 02:03 PM ---------- Previous post was at 01:45 PM ----------

add the xml file from here
[LG Optimus 3D] defcomg:
You are right i forgot that my bad..
[LG Optimus 3D] berni987654321:
AW: [FM Radio][JB][ICS][V1]

Roflmao my new homescreen picture
[LG Optimus 3D] defcomg:
lol:D
[LG Optimus 3D] Evil Slayer:
hahaha!

very well then thanx for the update gonna try to do this again and report back
[LG Optimus 3D] drastic00:
Re: [FM Radio][JB][ICS][V1]

Sorry!! Cannot initialize TX

Sent from my pugilistic LG P925 with XBSA vX3D ICS ROM
[LG Optimus 3D] defcomg:
Stock Kernel?
[LG Optimus 3D] drastic00:
Re: [FM Radio][JB][ICS][V1]

Iodak's. Pushed apk. Did chmod. Installed patch (fails in twrp). After xml added TI app appears but doesn't initialize.

Sent from my pugilistic LG P925 with XBSA vX3D ICS ROM
[LG Optimus 3D] Vaimaster:
Defcomg,can you plz write all the steps for the radio app one by one.I can't install it and i want to have radio in my phone.
[LG Optimus 3D] oile:
with that xml added, apps are installed but "failed to open mixer" in SManager and "cannot enable radio!!!!" in FM Radio
[LG Optimus 3D] defcomg:
Try This

Goto Smanger

Click on the script

Click on Edit

Open With SM Editor

You will see.. eg disable audio Script

#!/system/bin/sh

echo "Routing To Headset"
su tinymix "6" "0"
su tinymix "66" "0"
su tinymix "67" "0"
su tinymix "73" "0"
su tinymix "74" "0"

remove su it will look like this

#!/system/bin/sh

echo "Routing To Headset"
tinymix "6" "0"
tinymix "66" "0"
tinymix "67" "0"
tinymix "73" "0"
tinymix "74" "0"

Option key Save

Below Run and Exit you will SU with Super User ICOn

Tap/Click on it then it will become Green

Then Click Run

Should work
[LG Optimus 3D] defcomg:
forget the patch.

initialize as in it freezes on start up or scan does not show any stations?
[LG Optimus 3D] defcomg:
Flash the new Zip and follow the Post above FM App does not show or install because it had a dependancy of fm framework jar but with the xml it should show
[LG Optimus 3D] drastic00:
Re: [FM Radio][JB][ICS][V1]

freezes on startup, black screen. Should I repush/install? It's xbsa v28b large partition with v30b baseband.

Sent from my pugilistic LG P925 with XBSA vX3D ICS ROM
[LG Optimus 3D] defcomg:
Check all this Files exist

System-
-app
- FmRxApp.apk
- FmService.apk

-Framework
- fmradioif.jar

-lib
- libfmradio.so

-etc
-Permssions
- com.ti.fm.fmradioif.xml

- firmware
- fm_rx_ch8_1273.2.bts
- fm_rx_init_1273.2.bts

IF Yes then its permissions issue on /dev/radio0 device then via terminal su chmod 777 /dev/radio0 or add it into script and run it before starting fm APP.

IF No make sure all the paths / files exist
[LG Optimus 3D] ilie321:
new avatar for defcomg
[LG Optimus 3D] defcomg:
haha you can make one here http://unique.rasterboy.com/
[LG Optimus 3D] drastic00:
Re: [FM Radio][JB][ICS][V1]

I have all files. I'll retry chmod or change script.

---------- Post added at 04:26 PM ---------- Previous post was at 03:56 PM ----------

Redoing commands did it, thanks. Now I need to try it out, my car radio is busted lol.
[LG Optimus 3D] defcomg:
lol enjoy

if you need it louder you can adjust this two controls

Aux Volume i set it to 7 as default but the range is from 0 - 14

tinymix "66" "7"

Headset Volume i set it to 7 as default but the range is from 0 - 15

tinymix "67" "7"
[LG Optimus 3D] ilie321:
i use 4 or 5 for it

btw for me radio didnt work on custom kernel if someone has problems go to stock one from here http://xdaforums.com/showpost.php?p=39606111&postcount=473
[LG Optimus 3D] Vaimaster:
Re: [FM Radio][JB][ICS][V1]

When i do the steps you showed me,i have this problem...
[LG Optimus 3D] defcomg:
did the super user prompt come up?

did you click on the super user icon below run?
[LG Optimus 3D] Vaimaster:
Re: [FM Radio][JB][ICS][V1]

Sorry.now it fixed!!thanks a lot..but now,I have another problem... :(
[LG Optimus 3D] defcomg:
what kernel?
[LG Optimus 3D] Vaimaster:
Re: [FM Radio][JB][ICS][V1]

Kernel version: 3.0.21

Rom: prerooted official v28b from xball
[LG Optimus 3D] defcomg:
try this run it before the fm app
[LG Optimus 3D] oile:
R: [FM Radio][JB][ICS][V1]

Tried everything, also the last script.

After the script is loaded I hear a little whining noise and a "spock".

Fm radio app start but "can't seek up!" and "can't tune". Spirit Fm crashes/locks up (i can't even modify the settings with out having it crashed).

Fm disable makes another "spock" in headset like something it's off.

Every file and permission in place.

Stock ics kernel on xbsa 7.2
[LG Optimus 3D] jocazmaj:
Exactly the same here.

Stock v28B rom and kernel.
[LG Optimus 3D] ilie321:
ok that means audio for fm is ok

try this :

-delete data for spiritfm and start it again (if for close try once more to open it)

- if after second attempt still force close go to system/lib find libfmradio.so and change extension into whatever you want then restart the phone and delete data to spirit fm and open it again. If it opens but not working radio is something wrong with the lib or kernel. check if you have in /dev the file radio0 also.
[LG Optimus 3D] Vaimaster:
Re: [FM Radio][JB][ICS][V1]

I have the same problem with oile..after the "spock",headphones don't work..i started power amp player after the failed radio and i couldn't listen..after a reboot,everything was just fine..then,i tried again but nothing..now i see that i don't have the radio0 file in /dev..can you upload it to try it again?
[LG Optimus 3D] defcomg:
it does not show via file explorer you need todo it via terminal ls /dev/
[LG Optimus 3D] Vaimaster:
Re: [FM Radio][JB][ICS][V1]

Ohh...now i see that i have it..

---------- Post added at 03:12 PM ---------- Previous post was at 03:10 PM ----------

But i can't understand the problem..it should work but it doesn't...:(
[LG Optimus 3D] defcomg:
Make sure all the files are there

http://xdaforums.com/showpost.php?p=39715782&postcount=80

Restart the device

in the terminal type this

su

chmod 777 /dev/radio0

run the app seek up run the script without the chmod stuff see if it works
[LG Optimus 3D] ilie321:
with pesach85 kernel and xball7.2 logcat says "Unable to open /dev/radio0 .." and radio not working any ideea?

with ls /dev/ in smanager console shell it show no radio0 in list
[LG Optimus 3D] defcomg:
no radio0 in /dev/ means the radio is disabled in the kernel so if stock kernel does not show radio0 in /dev/ then forget about working fm you need to change the kernel
[LG Optimus 3D] Vaimaster:
Re: [FM Radio][JB][ICS][V1]

I open the radio app,runvthe script and then the radio app is open!!!But then,it doesn't work...:( What should I do?
[LG Optimus 3D] ilie321:
bad bad bad i will try to talk with developer for it
[LG Optimus 3D] macckus:
radio work very good but i have small problem. If i turn on wifi first (after reboot) i can't turn on radio aplication and bluetooth. I have to reboot phone and turn on radio but If i trun off radio and use wi-fi i can't turn on radio again.

I have used ICS 28b and iodak kernel. The same problem is on the stock kernel. Were able to eliminate this problem would be great.

P.s. I didn't install spirit fm and all files are in palce.

thanks to the author for applications:good:
[LG Optimus 3D] defcomg:
Might be an ics issue On jb i can turn on wifi bt and radio and switch each one of without affecting the other.

for those who seek but can't find a station enable rds in options
[LG Optimus 3D] jocazmaj:
Re: [FM Radio][JB][ICS][V1]

I can't belive I didn't try this earlier.

My wifi is always on and that was the problem.:banghead:

Thanx a lot macckus.

And yes, it's the same for me, when I turn on wifi before the radio the radio won't start etc.

Edit:

I forgot to say that the spirit fm radio app won't work after I turn on the wifi but if I start the radio and then turn the wifi on the radio still plays in the background even if i force close the radio app.

I just turn the music off with disable script and turn it back on with enable script.

I know that it's not a solution but it works.:D

Cheers
[LG Optimus 3D] macckus:
jocazmaj I'm glad I could help you ;) but I hope that the author will fix it
[LG Optimus 3D] chieutim:
I flash FM-ICS-JB zip into my LG O3D P920 then Fm Radio works well.FM-ICS-JBv1.1 zip generates some errors.

Defcomg,can you make so that fm-audio-enable script automatically run after start fm radio app.

Thanks for your work.
[LG Optimus 3D] ilie321:
i succeed to compile the source of the app and now i try to add the audio by tinymix so no more scripts hope it will work
[LG Optimus 3D] defcomg:
i compiled it tried to add tinyalsa mixer_ctrl patch then it all went to hell so i gave up on that audio flinger can autoroute the audio i know the method need to be called just dunno how to put it in a JNI lib they are diff from normal libs
[LG Optimus 3D] ilie321:
im playing with android code from 2-3 days :D what you expect :D i succeed to add the script inside the app atm so only need to run the app but i think the problem is in fmradioif.jar in routing sound as it should

enableAudioRouting() from JFmRx.java dont blame me if im wrong :p
[LG Optimus 3D] tensan:
Sound perfectly, but only for two or three seconds...

I am in CM10 with stock kernel (with Pesach Kernel didn't work)