🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mobile.android
Article #973

Re: FM radio, or streaming radios.

#973
From: Maria Sophia
Date: Sat, 28 Nov 2026 22:12
274 lines
14999 bytes
Carlos E.R. wrote:
> On 2026-11-28 10:37, Chris wrote:
>> CrudeSausage <crude@sausa.ge> wrote:
>>> On 2026-11-27 2:26 p.m., Carlos E.R. wrote:
>>>> On 2026-11-19 10:10, Arno Welzel wrote:
>>>>
>>>> ...
>>>>
>>>>> BTW: why don't you complain about missing FM recievers in modern
>>>>> smarthones? There was a time, when many Android phones had an integrated
>>>>> FM reciever including a radio app. This also needed a wired headset as
>>>>> antenna - but even models with audio jack don't offer this any longer
>>>>> and using internet radio is possible, but for you this must be a very
>>>>> big pain.
>>>>
>>>> My phone does have an FM radio.
>>>>
>>>> Sometimes you think there is no radio because the app is not there. But
>>>> you install the app, and it works.
>>>>
>>>> Sometimes I have connected some wired earbuds, to get the FM radio
>>>> working, but then routed the audio to a speaker over BT, so as to get
>>>> radio in the room.
>>>
>>> I appreciate having an FM tuner because the radio content nowadays is
>>> more interesting than what's on TV.
>> 
>> Digital Radio provides much more content. Plus streaming allows listening
>> to radio from abroad i.e. if you're travelling you can get your local
>> radio. Or, like I do sometimes, choose to listen to french radio.
> 
> The Internet radio app that I like best, puts up intrusive, full screen, 
> adds (often from tik-tok) that actually impede using the app: I can not 
> change station, for instance. I have to kill the app (using the system 
> menu, then applications, then kill this app) to start it again and hope 
> I get a different add that plays nicer and I can switch the station.
> 
> The app is "Simple Radio".
> 
> One trick that I discovered is that an app can be started in windowed 
> mode, which happens to have a context menu that can close the app. 
> Unfortunately, there is at least one add that makes that menu hide too 
> fast for operating it.
> 
> And the developer is to thick headed to attend to reason. :-/
> 
> 
> That said, I have experienced that some times the station I'm listening 
> to dies. I have to hit pause and play on the app. Sometimes it is the 
> app itself which dies, so I have to start it again and dance with the 
> full screen adds that impede me reaching the play button.
> 
> 
> Other apps have their own set of troubles. Like being very difficult to 
> actually find the station I want. Or that once found, they don't play. 
> For instance, Radioline.
> 
> 
> So, no, I do not like that much listening to Internet Radios.
> 
> 
> Of course, the station I usually like prefers we use their app, not a 
> public app that allows selecting many stations. And they want us to 
> register to that station network, so that they can send to us tailored 
> adverts on the phone. No more anonymous listening. Of course they offer 
> advantages, like easily finding past programs and repeat them for me.

I just checked if I have an FM radio app on my A32-5G (USA-spec).
  adb shell pm list packages | grep radio
   package:net.programmierecke.radiodroid2
   package:com.yuriy.openradio
   package:com.liveradio.fmradio.radiotuner.radiostation.amradio
Those are Internet streaming apps, so let me check for a ALSA PCM 
devices also. Drat. I don't have the permissions.
  adb shell cat /proc/asound/pcm
   cat: /proc/asound/pcm: Permission denied
  adb shell cat /proc/asound/cards
   cat: /proc/asound/cards: Permission denied

Checking for drivers, I found the most useful clue there is.
 adb shell ls -l /dev/ | grep -i fm
  crw-rw----  1 system    audio        475,   0 2026-11-26 23:08 fm

That says the MediaTek FM driver char device is owned by system:audio,
implying the FM driver is present and has been loaded in my kernel.

Checking if the audio routing knows about FM
 adb shell grep -i "fm" /vendor/etc/audio_policy_configuration.xml
  <devicePort tagName="FM Mic" type="AUDIO_DEVICE_IN_FM_TUNER" role="source">
  ...
  sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,
           Bt Sco Headset Mic,Aux Device In,Voice Call Mic,FM Mic"/>

Note that the audio policy lists AUDIO_DEVICE_IN_FM_TUNER as an input
device and routes it like a microphone. That is the Android-standard
plumbing for an FM tuner and it is present in the vendor image.

Checking if the FM driver is alive in the kernel.
 adb shell ps -A | grep -i "fm\|radio"
  root  1318  2  0 0 0  0 S [fm_timer_wq]
  root  1319  2  0 0 0  0 S [fm_eint_wq]

Those are kernel worker threads named for the FM driver, the timer and
external-interrupt work queues. The brackets and the pid 2 parent are
the tell that they are kernel threads, not user processes. If the
driver were not loaded they would not exist. Together with the /dev/fm
device (owned by system:audio) the driver is definitely active.

Checking which chip is doing the tuning.
 adb shell getprop | grep -i fm
  [persist.vendor.connsys.fm_chipid]: [mt6631_6635]
  [ro.boot.fmm_lock]: [48]

The FM receiver lives in the MediaTek MT6631 connectivity chip
(the Wi-Fi/BT/FM combo chip). That is identified by name in the vendor
properties, not just inferred from the SoC. Note that ro.boot.fmm_lock
is Find My Mobile, unrelated to FM radio.

Checking if the userspace glue (JNI library) shipped.
 adb shell find /system /vendor /product -iname "*fm*" 2>/dev/null
  The system cannot find the path specified.
 adb shell ls -l /vendor/lib64/ | grep -i fm
  libaudiofmtconv.so   (unrelated - audio format conversion)

No libfmjni.so or similar in /vendor/lib64. Did Samsung strip
the JNI library that apps normally use to talk to the tuner.

Given the chip is present and identified, driver loaded and running,
audio routing configured, but no FM app but I can't yet find the JNI
glue. This radio feature may be removed from the software, but it is
not missing from the hardware.

Doublechecking, Samsung did not strip the JNI library or firmware
blobs from the ROM. Everything beneath the Android app layer is
already installed on this SM-A326U.

Checking if anything FM-related exist in the read-only partitions.
 adb shell "find /system /vendor /product -iname '*fm*' 2>/dev/null"
/system/priv-app/Fmm
/system/priv-app/Fmm/Fmm.apk
/system/priv-app/Fmm/Fmm.apk.prof
/system/fonts/NotoSerifMalayalam-VF.ttf
/system/fonts/NotoSerifMyanmar-Bold.otf
/system/fonts/NotoSerifMyanmar-Regular.otf
/system/etc/permissions/privapp-permissions-com.samsung.android.fmm.xml
/system/bin/fmt
/system/bin/init.perfmond_atrace.sh
/system/lib/android.hardware.common.fmq-V1-ndk.so
/system/lib/libcfms.ssrm.samsung.so
/system/lib/libfmq.so
/system/lib/libfmradio_jni.so
/system/lib/libnativecfms.so
/system/lib64/android.hardware.common.fmq-V1-ndk.so
/system/lib64/libcfms.ssrm.samsung.so
/system/lib64/libfmq.so
/system/lib64/libfmradio_jni.so
/system/lib64/libnativecfms.so
/vendor/etc/init/init.fmradio_drv.rc
/vendor/etc/audio_param/FMVolUI_AudioParam.xml
/vendor/etc/audio_param/FMVolUI_ParamUnitDesc.xml
/vendor/etc/audio_param/FMVol_AudioParam.xml
/vendor/etc/audio_param/FMVol_ParamUnitDesc.xml
/vendor/etc/audio_param/FM_AudioParam.xml
/vendor/etc/audio_param/FM_ParamUnitDesc.xml
/vendor/lib/libaudiofmtconv.so
/vendor/lib/modules/fmradio_drv_mt6631_6635.ko
/vendor/bin/fmt
/vendor/lib64/libaudiofmtconv.so
/vendor/firmware/mt6631_fm_v1_coeff.bin
/vendor/firmware/mt6635_fm_v1_patch.bin
/vendor/firmware/mt6635_fm_v1_coeff.bin
/vendor/firmware/mt6631_fm_v1_patch.bin
/vendor/firmware/fm_cust.cfg

Most of that list is noise. Fmm is Find My Mobile, the NotoSerifMyanmar
fonts matched on Myanmar, libfmq is Fast Message Queue, libcfms and
libnativecfms are Samsung CFMS, and init.perfmond_atrace.sh matched on
perfmond. The real FM files are libfmradio_jni.so, the .ko, the four
firmware blobs, fm_cust.cfg, init.fmradio_drv.rc and the FM audio_param
tables. Both /system/bin/fmt and /vendor/bin/fmt need a closer look
before they count as the tuning daemon.

Checking whether any FM service or app is registered, including
uninstalled-for-user packages.
 adb shell "service list | grep -i fm; pm list packages -u | grep -i fm"
  package:com.halfmilelabs.footpath
  package:com.samsung.android.fmm
  package:com.liveradio.fmradio.radiotuner.radiostation.amradio
  package:fm.a2d.sf
  package:com.fmsys.snapdrop

Drat. No FM binder service is registered at all, as every package hit
is noise, e.g., Footpath (hiking), Find My Mobile, an internet radio
streamer, Spirit2 (fm.a2d.sf, already installed), and Snapdrop.

The Samsung FM app (com.sec.android.app.fm) is absent even with -u,
which includes uninstalled-for-user packages. So it was never shipped,
not disabled. Sideloading it without root would fail on the platform
signature check before permissions ever came into it.

Checking what /vendor/bin/fmt actually is, before trying to run it.
 adb shell ls -lZ /vendor/bin/fmt
  lrwxr-xr-x 1 root shell u:object_r:vendor_file:s0  13 2008-12-31 07:00 /vendor/bin/fmt -> toybox_vendor

Drat. It is a toybox symlink. "fmt" here is toybox's text formatter,
the Unix paragraph re-wrapper, not MediaTek's FM tuning daemon.

The earlier find hit was this same symlink, so the daemon the .ko
and the JNI library expect is simply not on this build.

Checking the security posture that would have to be defeated anyway.
 adb shell getenforce
  Enforcing
 adb shell id
  uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),
   1011(adb),1015(sdcard_rw),1028(sdcard_r),1078(ext_data_rw),1079(ext_obb_rw),
   3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),
   3011(uhid),3012(readtracefs) context=u:r:shell:s0

Drat. SELinux is enforcing and the shell user is not in group audio
(gid 1005), so the Unix mode bits on the FM device block it before
SELinux is even consulted. There is also no FM-specific exec label on fmt,
only vendor_file, so there is no domain to transition into.

Confirming the device node, the JNI library location, & build type.
 adb shell "ls -lZ /dev/fm; ls -lZ /vendor/lib64/libfmradio_jni.so; getprop ro.build.type"
  crw-rw---- 1 system audio u:object_r:fm_device:s0  475,   0 2026-11-26 23:08 /dev/fm
  ls: /vendor/lib64/libfmradio_jni.so: No such file or directory
  user

That implies the device node exists & is labelled fm_device, owned
by system:audio. The JNI library is not in /vendor/lib64 at all.
The copy that exists is in /system/lib64, which is why the earlier
vendor-only grep missed it. And ro.build.type is user, a retail build,
so adb root is unavailable and there is no way to disable enforcement
or start a daemon as root.

Overall, it seems Samsung did not strip the FM support from this
build as the kernel module, firmware, init script, JNI library and
audio routing are all intact.

What is missing is the privileged front-end app and the service
that would drive the tuner. Because /dev/fm is crw-rw---- system:audio,
an unprivileged third-party app is blocked by both Unix permissions
and SELinux from opening it directly, which is why Spirit2 cannot
use the tuner here without root or a privileged install.

Three walls, any one of them fatal. No audio group membership, no FM
SELinux domain, and no FM daemon binary on the image (the fmt hit was
toybox). There is an XDA thread on exactly this SELinux wall.
 <https://xdaforums.com/t/selinux-module-to-open-fm-radio-application-access-to-dev-fm.4710525/>

Root might clear all three at once but apparently nothing short of root
clears any of them. On this USA-spec SM-A326U the FM chip is present
and its kernel driver is live, but the software route to it does not exist.

Internet streaming is the only software answer for listening to radio
on this phone, and an external SDR is the only route to real FM	.

See also
 Newsgroups: comp.mobile.android
 Subject: How to listen to an Internet radio station with privacy from Google?
 Date: Mon, 13 Apr 2026 03:29:36 -0600
 Message-ID: <10rid20$30no$1@nnrp.usenet.blueworldhosting.com>

 [Apps] What no root free real FM/AM radio tuner app do you use that has no ads & do you know how to build the Spirit1 no-root source code?
 <https://xdaforums.com/t/apps-what-no-root-free-real-fm-am-radio-tuner-app-do-you-use-that-has-no-ads-do-you-know-how-to-build-the-spirit1-no-root-source-code.4641228/>
 Nov 13, 2023

 Is there any way to get the hardware FM radio on the non-known-to-be-rootable USA-spec Galaxy SM-A325U A32-5G to work without adding a dongle?
 <https://xdaforums.com/t/is-there-any-way-to-get-the-hardware-fm-radio-on-the-non-known-to-be-rootable-usa-spec-galaxy-sm-a325u-a32-5g-to-work-without-adding-a-dongle.4810582/>
 Nov 28, 2026
-- 
On Usenet, some people are kind, helpful and they're knowledgeable too!
Technical Details
Message-ID: <11efjl5$2ah8$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mail
References: <krlko3FcsnaU4@mid.individual.net> <11dev1n$3im9o$2@dont-email.me> <11dfmec$eqa$1@nnrp.usenet.blueworldhosting.com> <11dh35k$89pd$1@dont-email.me> <11dhvi0$73n$1@nnrp.usenet.blueworldhosting.com> <11di2i6$kgh5$1@dont-email.me> <11di5ba$lg1a$1@dont-email.me> <11dibe3.11ro.1@ID-201911.user.individual.net> <11dic55$oell$1@dont-email.me> <11didmg$27mh$1@nnrp.usenet.blueworldhosting.com> <11diehk$2n1h$1@nnrp.usenet.blueworldhosting.com> <11djmev$15a87$1@dont-email.me> <11dkgh4.172o.1@ID-201911.user.individual.net> <11dknsv$2lg$1@nnrp.usenet.blueworldhosting.com> <11dmedj$23pvn$1@dont-email.me> <h32ptmxt76.ln2@Telcontar.valinor> <6b0a041e$5$84039$882e4bbb@reader.netnews.com> <11ee7de$2e1nf$2@dont-email.me> <7gqrtmxfcc.ln2@Telcontar.valinor>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-02.vpngate.v4.open.ad.jp!not-for-mail
From: Maria Sophia <mariasophia@comprehension.com>
Newsgroups: misc.phone.mobile.iphone,comp.mobile.android,comp.sys.mac.advocacy
Subject: Re: FM radio, or streaming radios.
Date: Sat, 28 Nov 2026 17:12:54 -0500
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <11efjl5$2ah8$1@nnrp.usenet.blueworldhosting.com>
References: <krlko3FcsnaU4@mid.individual.net> <11dev1n$3im9o$2@dont-email.me> <11dfmec$eqa$1@nnrp.usenet.blueworldhosting.com> <11dh35k$89pd$1@dont-email.me> <11dhvi0$73n$1@nnrp.usenet.blueworldhosting.com> <11di2i6$kgh5$1@dont-email.me> <11di5ba$lg1a$1@dont-email.me> <11dibe3.11ro.1@ID-201911.user.individual.net> <11dic55$oell$1@dont-email.me> <11didmg$27mh$1@nnrp.usenet.blueworldhosting.com> <11diehk$2n1h$1@nnrp.usenet.blueworldhosting.com> <11djmev$15a87$1@dont-email.me> <11dkgh4.172o.1@ID-201911.user.individual.net> <11dknsv$2lg$1@nnrp.usenet.blueworldhosting.com> <11dmedj$23pvn$1@dont-email.me> <h32ptmxt76.ln2@Telcontar.valinor> <6b0a041e$5$84039$882e4bbb@reader.netnews.com> <11ee7de$2e1nf$2@dont-email.me> <7gqrtmxfcc.ln2@Telcontar.valinor>
Reply-To: pusvul@getTjewytR4so+mqe2.invalid
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 28 Nov 2026 22:12:54 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="IfCZz72xNNlHXBkfV9B6WJEa9xVhaehMJfhAC6fCwnM";
	logging-data="76328"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mojibake v24p7
Cancel-Lock: sha1:toyX1PQECd0HsiHMHIViLG27qvw= sha256:nxxdbH4O1Wccdq0uV57Mj5w7pdmYEwuunTiiuEmP/eA=
	sha1:3zlU+x+9PsFL0LbfVvIdRNlZewQ= sha256:VErvnliDd3aYWfUoQzuX3aiwlz6vTIEd2ZjU0QwpuaE=
Content-Language: en-GB