[APP] FM Radio for the Droid 2!!

imrf

Member
Sep 28, 2010
24
0
0
Install/setup FM Radio on Droid2 (most info from orignal post by Slayher, 08/31/10)

I did this on a Droid 2, FRG22d (new VZW stock phone, which I rooted)
I added step by step instructions for those not as familiar with Linux systems and the mount and filesysetm permission commands.
I did this almost completely on my droid 2 via the built-in terminal emulator after copying the necessary files to the sdcard, this is how my instructions are setup, but you could also use the SDK and push the files manually as long as you have root access to the SDK shell program on your droid. The root access is required because you need to manually change permissions on several files. Do this at your own risk, the only way I figure you could mess up is if you miss-type the mounting commands, or have some sort of power failure in the middle of it.

First go here >> android.antbox.org/slayher/FMRadio_droid2.zip
Grab the file and unzip it on your computer. Your Droid 2 has the built-in radio hardware, I have no idea why they don’t send it with the software to run it (probably just a selling point for other models). When you unzip the file you should have 3 directories: /app, /bin, and /lib.
Then put the files on your SD card, I did this in USB card-reader mode and put all three folders in a directory I called “fmradio”. These instructions assume you have the same directory on your sdcard.
Open the terminal emulator program on your droid 2 and type these commands carefully, you will first see the prompt $. There are faster ways to do this, but these commands are safer and harder to mess up.


su (this will bring up the # prompt with root access)
cd /sdcard/fmradio/app
cp fmradioservice.apk /system/app (copy files to the android sysetm directory)
cp fmradio.apk /system/app
cd /sdcard/fmradio/bin
cp fmradioserver /system/bin
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system (mount rw for permissions)
chmod 0755 fmradioserver
cd /sdcard/fmradio/lib
cp libfmradio.so /system/lib
cp libfmradio_jni.so /system /lib (that is a j in the filename after libfmradio_)
cp libfmradioplayer.so /system/lib
cd /system/lib
chmod 0644 libfmradio.so
chmod 0644 libfmradio_jni.so
chmod 0644 libfmradioplayer.so
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system (remount back to ro)
exit
exit

Has a nice interface, and will scan and store stations, also reads the text ID for the stations. Works great in the Seattle area.

Michael
Thanks for this, but when I do cp fmradioservice.apk /system/app, and cp fmradio.apk /system/app, I get a Read-only file system error. Is there a mount that needs to happen before those commands are done, or am I just missing something still?
 

newk8600

Senior Member
Aug 19, 2010
525
25
0
Northglenn
Thanks for this, but when I do cp fmradioservice.apk /system/app, and cp fmradio.apk /system/app, I get a Read-only file system error. Is there a mount that needs to happen before those commands are done, or am I just missing something still?
Yeah it's in there just not in the right place. This should do it:
Code:
#mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
Then copy all of the files you need to.

Sent from newk's DROID2 using XDA App
 

murdoc158

Member
Oct 19, 2010
12
0
0
Thanks facelessuser, it works perfectly now. Here are the extra commands if anyone else needs them:

adb shell
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
chmod 0644 /system/lib/libFMRadio.so
chmod 0644 /system/lib/libfmradio_jni.so
chmod 0644 /system/lib/libfmradioplayer.so
chmod 0755 /system/bin/fmradioserver
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
What boxes need to be checked for these permissions in Root Explorer?

I've got User Read, User Write, User Execute, Group Read, Group Write, Group Execute, Others Read, Others Write, Others Execute
 

karnovaran

Senior Member
Jul 27, 2009
598
71
0
PDX
What boxes need to be checked for these permissions in Root Explorer?

I've got User Read, User Write, User Execute, Group Read, Group Write, Group Execute, Others Read, Others Write, Others Execute
The lib files are:

U - R W --
G - R -- --
O - R -- --

The bin file is:
U - R W X
G - R -- X
O - R -- X
 

nightwo|f

Member
Apr 21, 2010
25
4
23
could be a rom problem too running Fission 2.01, I'm having the same problem and the permissions are set correctly (been using linux for 15 years, I know permissions):

-rwxr-xr-x root root 20540 2010-07-01 19:32 fmradioserver
-rw-rw-rw- root root 317886 2010-07-01 19:32 FMRadio.apk
-rw-rw-rw- root root 29286 2010-07-01 19:32 FMRadioService.apk
-rw-r--r-- root root 14148 2010-07-01 19:32 libfmradio_jni.so
-rw-r--r-- root root 45492 2010-07-01 19:32 libfmradioplayer.so
-rw-r--r-- root root 501712 2010-07-01 19:32 libFMRadio.so
#

Granted I haven't rebooted the phone yet, but will check after a reboot, trying to test the phone for stability otherwise i'd reboot it right now.
 

karnovaran

Senior Member
Jul 27, 2009
598
71
0
PDX
You definitely need to reboot on something like this.

As for Fission, the radio app didn't work when I tried several weeks ago though I didn't troubleshoot at all. I can confirm the app does work on the new 2.3.20 stock.

EDIT - your apks should be 0644 (rw-r--r--)
 

nightwo|f

Member
Apr 21, 2010
25
4
23
yea I got the impression that there are other libs that might be in the stock system that are needed, I've not messed around with trying to find out yet though. The rw g/o permissions shouldn't matter since the filesystem is read only anyway ;]
 

karnovaran

Senior Member
Jul 27, 2009
598
71
0
PDX
Yeah there has to be something in the libs or framework. I did some troubleshooting trying to add various pieces of blur back to Fission and found there were dependencies with Moto's framework jars. I'm a complete novice, but it seems Moto may have tied certain functions into their frameworks or libs.
 

gunz.jones

Senior Member
Nov 6, 2010
1,238
220
0
Athens, TX
I am using squid's 2.3.20 fullblur...pretty much stock that is deodexed....stagefright turned off....tried everything...it's open, but useless because I can't acess the gui.

Sent from my DROID2 using XDA App
 

daniel.weck

Senior Member
Nov 2, 2010
574
95
0
daniel.weck.free.fr
where's the download link?

i want to try it on SGS :D

never mind found it

http://android.antbox.org/slayher/FMRadio_droid2.zip
The Samsung Galaxy, just like the Tab, uses a Broadcom BCM4329 chipset, right ?
The Droid 2 seems to be based on different hardware, so I doubt the provided software would work. I will try anyway. I need to find more info about the Desire HD, which has also been radio-ified apparently.
 

zeroktal

Senior Member
Nov 8, 2006
205
19
0
Droid 2 Global Does NOT work

I have the Droid 2 Global, I have followed all the steps. This just hangs at "FM Radio is being launched, please wait" I have triple checked permissions, and tried carios. There are no errors present in a logcat. Maybe the chip isn't on the Global Version?
 

zeroktal

Senior Member
Nov 8, 2006
205
19
0
droid 2 global

Any help on the Droid 2 Global FM radio? I followed the steps here, logcat shows no errors, just hangs on Please wait.