I want to install "FM Radio" on another Android

I’m looking for install FM Radio app (com.android.fmradio) on another Android distros, most of all on MIUI, but I don’t find an APK out.
It’s an original AOSP package and also is on LineageOS and eOS. But not on Google Play nor F-Droid.

How could I get it? Compiling?

You can get sources here : https://gitlab.e.foundation/e/os/android_packages_apps_FMRadio
Also, someone who has a FM-enabled device could extract the APK from system apps :wink:
I own one such device, but ROM is only Pie not Q or R.
You can also download a Q ROM image for a FM-enabled device, and unpack it to get the APK.

I have that app into my system. How could I extract it?
About compiling, I don’t know how to do it.

On the images are there the APKs?

Connect your phone to an ADB-capable computer.
On phone, activate Developer mode, USB Debugging, Root access.
On computer, enter :

  • adb devices
  • adb root
  • adb pull /system/priv-app/FMRadio/FMRadio.apk

Don’t forget to disable root access, USB Debugging, Developer mode.

About extracting from ROM zip (using Linux) : https://wiki.lineageos.org/extracting_blobs_from_zips.html

1 Like

I extracted my FMRadio.apk from my own phone. I’ll try it on a MIUI, but it has different Android version.
Extracting from ROM seems difficult for me

1 Like

Nice !
Please keep us posted about your try on MIUI.