phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 660 forks source link

Include FM Radio app #448

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello Mr @phhusson , I tried to make fm radio work but in vain I use com.caf.fmradio , I got it from los 16 for arm device , I added all libs , framwork files , etc ... app is working but issue that there is no fm work .

video : https://t.me/phhtreble/335904

excue me what is missing to do ??

penn5 commented 5 years ago

This is not useful. It depends on the device massively

phhusson commented 5 years ago

@penn5 well, there is an Android AOSP HAL for FM Radio: https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/master/broadcastradio/

And I did see some devices implement it, so we "simply" need an app using this API.

There is one in AOSP: https://android.googlesource.com/platform/packages/apps/FMRadio/ but it's meant for Cars, and does't work "as is" on Android for phones. I looked at the one in CAF, it doesn't use the HAL.

JonnyTech commented 5 years ago

SpiritF from F-droid (https://f-droid.org/en/packages/fm.a2d.sf/) states "This device may need a kernel with a working FM driver"

spirit

SpiritF requires root access, @phhusson will AOSP app require that too?

Kyuunex commented 5 years ago

How do LineageOS official builds implement this/solve the HAL issue?

I do know they use this app https://android.googlesource.com/platform/packages/apps/FMRadio/

phhusson commented 5 years ago

As far as I know they are using CAF FM Radio app which works only on CAF devices and doesn't use android.hardware.broadcast Treble HAL

Le sam. 1 juin 2019 à 16:21, Kyuunex notifications@github.com a écrit :

How do LineageOS official builds implement this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/448?email_source=notifications&email_token=AAAA4OV6WA3LI6LU5O4CLRLPYKAVRA5CNFSM4HB2Q6I2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWXBRYY#issuecomment-497948899, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAA4OVUBWUYP5774RY5PTTPYKAVRANCNFSM4HB2Q6IQ .

penn5 commented 5 years ago

As far as I know they are using CAF FM Radio app which works only on CAF devices and doesn't use android.hardware.broadcast Treble HAL Le sam. 1 juin 2019 à 16:21, Kyuunex notifications@github.com a écrit : How do LineageOS official builds implement this? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#448?email_source=notifications&email_token=AAAA4OV6WA3LI6LU5O4CLRLPYKAVRA5CNFSM4HB2Q6I2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWXBRYY#issuecomment-497948899>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAA4OVUBWUYP5774RY5PTTPYKAVRANCNFSM4HB2Q6IQ .

Correct. But my device doesn't have that HAL

phhusson commented 5 years ago

It has a proprietary mediatek FM HAL?

penn5 commented 5 years ago

I meant my hi6250. It has a proprietary Huawei FM hal

ghost commented 4 years ago

Guys , any news ? or What steps should I do and I will try .

Kyuunex commented 4 years ago

i tried porting an FM radio app from the stock rom for my particular phone and it didn't work so that's that