[Q] FM Radio app

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
I've recently rooted my Desire Z and flashed Virtuous G-lite on it. One thing I really miss is an FM Radio app like the one of HTC Sense. I'm really searching for an app that receives FM, and not streams it over the internet.

I've searched the market but I haven't found anything, XDA forums had lots of hits but nothing that resolved my issue.Then I got a suggestion someone might be able to make an APK out of the Sense FM Radio.

So basically my question: Is there an app which alows me to receive FM Radio in the market? Or could anyone please wrap up an .apk from stock HTC Sense so I could try that out? :)
 
Last edited:

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
here is the fm.apk from cyanogen. I assume it works on other aosp roms, but I've been wrong (many a time) before.
Thanks for posting! Installing works fine, but the app FC's on launch, even after reboot, might need some work before it works on G-lite :)

Thanks for the heads up, app installs and launches, but after selecting an FM frequency there is no sound or any sign of receving anything.
 

pmcqueen

Senior Member
Jan 31, 2011
537
96
0
Seattle, WA
Thanks for posting! Installing works fine, but the app FC's on launch, even after reboot, might need some work before it works on G-lite :)



Thanks for the heads up, app installs and launches, but after selecting an FM frequency there is no sound or any sign of receving anything.
poo. make sure permissions are correct.

I don't ever use the FM radio so I'm not really familiar with how it works or if it relies on files outside of the apk to work. I do know that it requires bluetooth & headphones (headphones are used as antenna).

let me do some digging and I'll post back if I find anything.
 
Last edited:

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
I haven't got Root Explorer, but ROM Manager had a button Fix Permissions that should fix it too. After that I rebooted (ROM Manager suggested that), I enabled bluetooth, plugged in my headphones and still get instant FC when launching the app.

I will get back to it tomorrow, thanks for helping!
 

pmcqueen

Senior Member
Jan 31, 2011
537
96
0
Seattle, WA
I haven't got Root Explorer, but ROM Manager had a button Fix Permissions that should fix it too. After that I rebooted (ROM Manager suggested that), I enabled bluetooth, plugged in my headphones and still get instant FC when launching the app.

I will get back to it tomorrow, thanks for helping!
yes, rom mgr fix permissions works as well. I just hate using it because most of the time I only need to fix permissions for one or two apps at a time, and in that case it's easier to just know the chmod command (see below).

how did you "install" the app? did you place it on your sdcard and install it that way? or did you push it to /system/app (or /data/app)?

here's what I would do with it (I will test with g-lite when I get home tonight and let you know if it worked for me):

I would take the FM.apk attached and place it on my sdcard, then run the following commands from command prompt (you can do this from terminal emulator as well, just skip "adb shell"):
adb shell
su
mount -o rw,remount /system/app
mv /sdcard/FM.apk /system/app/
chmod 644 /system/app/FM.apk
reboot
in your case, my first step would be to find wherever FM.apk put itself (probably /data/app depending on what you did to install it), delete it, and start from scratch.
 
Last edited:

jayb222

Senior Member
Jan 27, 2009
1,048
181
0
New York
Why don't you just use tune in radio? It gets a ridiculous amount of stations and doesn't need headphones for an antenna. Try it!

Sent from my HTC Vision using XDA App
 

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
Tune In streams from internet, since I have a 1GB/month datalimit I really need FM to keep my data usage under 1GB/month.

Pmcqueen: I will try that first thing in the morning!

Sent from my T-Mobile G2 using XDA App
 

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
yes, rom mgr fix permissions works as well. I just hate using it because most of the time I only need to fix permissions for one or two apps at a time, and in that case it's easier to just know the chmod command (see below).

how did you "install" the app? did you place it on your sdcard and install it that way? or did you push it to /system/app (or /data/app)?

here's what I would do with it (I will test with g-lite when I get home tonight and let you know if it worked for me):

I would take the FM.apk attached and place it on my sdcard, then run the following commands from command prompt (you can do this from terminal emulator as well, just skip "adb shell"):


in your case, my first step would be to find wherever FM.apk put itself (probably /data/app depending on what you did to install it), delete it, and start from scratch.

If I try mount -o rw,remount /system/app I just get feedback Usage: mount [-r] [-w] [-o] [-t] device directory. As far as I can tell the comma shouldn't be in the command, but what the command should be then I don't know :(

(My terminal has Superuser rights)
 

pmcqueen

Senior Member
Jan 31, 2011
537
96
0
Seattle, WA
If I try mount -o rw,remount /system/app I just get feedback Usage: mount [-r] [-w] [-o] [-t] device directory. As far as I can tell the comma shouldn't be in the command, but what the command should be then I don't know :(

(My terminal has Superuser rights)
try just

mount -o rw,remount /system

(no /app, but since it is a subdirectory it will inherit the r/w access)
 

pmcqueen

Senior Member
Jan 31, 2011
537
96
0
Seattle, WA
Still the same message, I know for sure the terminal has SU because the $ changes to # after I type 'SU'.

Thanks for helping once again :)
well darn it.

mount -o remount,rw /dev/block/mtdblock3 /system

^^ should get system mounted as read/write.

if not, do you have root explorer? we can do it that way as well, it's just faster to use terminal emulator/adb if it's not being tempremental.
 

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
So back at home once again, I tried the same commands from CMD and I'm getting the same message. I really don't know what's going on, it seems like the command isn't correct because it returns the possible options. Google hasn't come up with any suggestions too..


EDIT: Lol you posted at the time I was making this post, I will try what you said. I don't have root explorer, yet, let's see if your suggestion works, else I will need to find myself a copy of that root explorer :)
 
Last edited:

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
# su
su
# mount -o remount,rw /dev/block/mtdblock3 /system
mount -o remount,rw /dev/block/mtdblock3 /system
# mv /sdcard/FM.apk /system/app/
mv /sdcard/FM.apk /system/app/
failed on '/sdcard/FM.apk' - Cross-device link
#


Seems like your suggestion worked, but then moving the FM.apk failed. Any hints on that? Google tells me something about unmounted devices, but I can't find any solutions..
 

pmcqueen

Senior Member
Jan 31, 2011
537
96
0
Seattle, WA
try just copying it instead. I saw this come up once before and I know a [very lengthy] workaround, but since it doesn't hurt to have a backup on your sdcard in the first place, might as well just copy...

just replace "mv" in the command with "cp"

let me know if that works or not.

edit: also, try adding busybox to the beginning of your command... ie:
busybox cp /sdcard/FM.apk /system/app

or

busybox mv /sdcard/FM.apk /system/app
 
Last edited:
  • Like
Reactions: Puffballofdoom

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
Thanks, the busybox command did the trick. All commands execute perfectly now, but the FM radio still ain't working. Instant FC on launch (Bluetooth turned on and headset plugged in)
 
Last edited:

forbit

Member
Apr 29, 2011
23
1
0
i also flashed virtous g-lite, but psx4droid can not load game with this rom. so i have to back to cm now. do you use psx4droid? how about its performance? pls let me kown.thanks.
 

Puffballofdoom

Senior Member
Apr 29, 2011
114
12
0
Well I got Root Explorer, it looks usefull and I have used it with pleasure already. But moving/copying the FM.apk, it still doesn't work.

Anyone any thoughts? :(