[Q] fm radio

mikereidis

Inactive Recognized Developer
Jan 28, 2011
7,826
4,142
0
Ottawa/Gatineau, Canada
so this means that high end phones won't have radios anymore, while lower end phones will!
So far, almost all HTC and Sony phones still have FM. I think Motorola is a lost cause now, due to Google's ownership and Verizon's continued movement away from FM.

And maybe, hopefully, somebody at Samsung will reverse the no FM decision for the Note 3 at least.


I have very little time and linux skills, but as I really want my radio back and work with IT, I'll do some tries and research to find if this can be enabled. It may take some time, but I'll report back on this topic.
Having time is pretty much essential, even for me, first to get it working at all, then to make it work well in the midst of phone-calls and other audio interruptions.

I also don't have time to write much of a tutorial, although I'll consider that when I have some time.

This AlsaMixer app can be useful: https://play.google.com/store/apps/details?id=com.skvalex.alsamixer&hl=en

Also command line utilities via ADB shell: alsamixer, amixer, aplay. The Spirit ssd utility does pretty much the same as these, but using the lowest level and undocumented kernel ALSA API, to avoid the need for ALSA libraries, config files etc.

Also one can Google "Android ALSA" for info.

On older phones it is more common to open an analog audio channel for FM just by setting ALSA controls. Recent phones are more likely to use digital audio, and many require that a "Hostless PCM transfer" be set up. This is more complicated, but can be set up using aplay or ssd.
 

changguangyu

Senior Member
Oct 7, 2011
85
85
0
No.

Find someone who can enable FM audio. Just need 2 functions: on and off. Speaker mode is a bonus.
The Chinese version of Razr I(MT788) has FM audio on both ICS and JB. Can it be ported to our phone?

---------- Post added at 02:55 AM ---------- Previous post was at 02:49 AM ----------

Can the ROM of mt788(razr i chinese version) be modified to fit our razr i?
It has FM audio support and a lot more features(http://forum.xda-developers.com/showthread.php?t=2213783)
 

cslaviero

Member
Dec 19, 2011
35
3
0
The Chinese version of Razr I(MT788) has FM audio on both ICS and JB. Can it be ported to our phone?

---------- Post added at 02:55 AM ---------- Previous post was at 02:49 AM ----------

Can the ROM of mt788(razr i chinese version) be modified to fit our razr i?
It has FM audio support and a lot more features(http://forum.xda-developers.com/showthread.php?t=2213783)


Would someone w/ root access mind to test if the instructions from this thread: http://forum.xda-developers.com/showthread.php?t=769894 , plus the files I'm attaching in this reply would make FMRadio work ? A summary of instructions:

adb devices
adb remount
adb push app/FMRadio.apk /system/app
adb push app/FMRadioService.apk /system/app
adb push bin/fmradioserver /system/bin
adb push lib/libFMRadio.so /system/lib
adb push lib/libfmradio_jni.so /system/lib
adb push lib/libfmradioplayer.so /system/lib
adb remount
adb shell

(i don't know about this first line, in summary you have to mount your phone to allow push)
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

(i don't know about this last line, again)
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system

I have extracted the files from the japanese version of razr i, posted in the thread you mentioned. Unfortunately I don't have the time to root and perform these steps. Gathering the files and showing the steps is all I can do so far.
 

Attachments

antkalaitzakis96

Senior Member
Apr 4, 2013
813
383
0
24
Prague, CZ
Would someone w/ root access mind to test if the instructions from this thread: http://forum.xda-developers.com/showthread.php?t=769894 , plus the files I'm attaching in this reply would make FMRadio work ? A summary of instructions:

adb devices
adb remount
adb push app/FMRadio.apk /system/app
adb push app/FMRadioService.apk /system/app
adb push bin/fmradioserver /system/bin
adb push lib/libFMRadio.so /system/lib
adb push lib/libfmradio_jni.so /system/lib
adb push lib/libfmradioplayer.so /system/lib
adb remount
adb shell

(i don't know about this first line, in summary you have to mount your phone to allow push)
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

(i don't know about this last line, again)
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system

I have extracted the files from the japanese version of razr i, posted in the thread you mentioned. Unfortunately I don't have the time to root and perform these steps. Gathering the files and showing the steps is all I can do so far.
It doesnt work..
 

Hazou

Senior Member
Feb 5, 2012
1,542
2,103
0
Would someone w/ root access mind to test if the instructions from this thread: http://forum.xda-developers.com/showthread.php?t=769894 , plus the files I'm attaching in this reply would make FMRadio work ? A summary of instructions:

adb devices
adb remount
adb push app/FMRadio.apk /system/app
adb push app/FMRadioService.apk /system/app
adb push bin/fmradioserver /system/bin
adb push lib/libFMRadio.so /system/lib
adb push lib/libfmradio_jni.so /system/lib
adb push lib/libfmradioplayer.so /system/lib
adb remount
adb shell

(i don't know about this first line, in summary you have to mount your phone to allow push)
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

(i don't know about this last line, again)
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system

I have extracted the files from the japanese version of razr i, posted in the thread you mentioned. Unfortunately I don't have the time to root and perform these steps. Gathering the files and showing the steps is all I can do so far.
Sounds good, but u are atleast missing 1 files. The fm_drv.ko for sure and the fm.smi.so (or something like that) maybe. The fm_drv.ko is already built in the kernel, u just need to get it somewhere. The otherone i dunno.
 
  • Like
Reactions: cslaviero

cslaviero

Member
Dec 19, 2011
35
3
0
Sounds good, but u are atleast missing 1 files. The fm_drv.ko for sure and the fm.smi.so (or something like that) maybe. The fm_drv.ko is already built in the kernel, u just need to get it somewhere. The otherone i dunno.
Didn`t find fm.smi , or something close to this nor fm_drv.ko among the files I have here. But... I did find some mentions to FM in some other files... at the weekend I'll try to group them and send it to you. If some of you would like to try, you can just get the same files I have from the link mentioned before.

Maybe a ICS dump would have those files? I'm sad I could not do it, since my phone already came with JB :(

---------- Post added at 12:48 AM ---------- Previous post was at 12:43 AM ----------

I don't know how :p
On terminal and with your phone plugged (you can make sure it is plugged by running adb devices and seeing if there is some number listed) just run adb logcat BEFORE you run FMRadio.apk. Then run it and see which lines that refers to FMRadio appear on log. You can now save this log in some file and paste it here . But Hazou's hint should probably be our best so far.
 

Hazou

Senior Member
Feb 5, 2012
1,542
2,103
0
Didn`t find fm.smi , or something close to this nor fm_drv.ko among the files I have here. But... I did find some mentions to FM in some other files... at the weekend I'll try to group them and send it to you. If some of you would like to try, you can just get the same files I have from the link mentioned before.

Maybe a ICS dump would have those files? I'm sad I could not do it, since my phone already came with JB :(


I got them both ;) will send u them today if i have the time.