[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] nonewithnothing:
2020-10-08 version

FM Radio not work

plugin the headphones and open the app, the FM app display "FM operation failed. If the problem persists, please turn off FM and turn it back on."

I don’t think this is an urgent problem, but I still hope it can be resolved.

I started using AICP from the 2020-10-01 version but did not notice whether this problem also exists at the time.

Here are some logs:

10-10 16:16:28.588 1541 6709 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.caf.fmradio/.FMRadio} from uid 10257
10-10 16:16:28.594 812 883 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [3, 0]
10-10 16:16:28.595 812 884 W ANDR-PERF-LM: FeatureState: readState() 149: warning: appName is NULL, returning default State
10-10 16:16:28.595 812 884 W ANDR-PERF-LM: FeatureState: readState() 149: warning: appName is NULL, returning default State
10-10 16:16:28.619 1541 1643 I ActivityManager: Start proc 31314:com.caf.fmradio/1000 for pre-top-activity {com.caf.fmradio/com.caf.fmradio.FMRadio}
10-10 16:16:28.619 31314 31314 I chatty : uid=1000(system) com.caf.fmradio expire 44 lines
10-10 16:16:28.640 1541 6709 W ActivityTaskManager: Request to remove task ignored for non-existent task 550
10-10 16:16:28.687 31314 31314 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1570 android.content.ContextWrapper.startService:669 com.caf.fmradio.FMRadio.bindToService:2954 com.caf.fmradio.FMRadio.onStart:489 android.app.Instrumentation.callActivityOnStart:1433
10-10 16:16:28.689 31314 31314 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1649 android.content.ContextWrapper.bindService:705 com.caf.fmradio.FMRadio.bindToService:2957 com.caf.fmradio.FMRadio.onStart:489 android.app.Instrumentation.callActivityOnStart:1433
10-10 16:16:28.692 31314 31314 D FMRadio : bind callback has not received yet - wait for 100ms
10-10 16:16:28.705 31314 31314 D FmSharedPreferences: Load preferences
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: =====================================================
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: Country :8
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: RadioBand :4
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: Emphasis :1
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: ChSpacing :1
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: RdsStd :1
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: LowerLimit :87000
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: UpperLimit :108000
10-10 16:16:28.706 31314 31314 D FmSharedPreferences: =====================================================
10-10 16:16:28.709 1541 1620 D BluetoothManagerService: MESSAGE_REGISTER_ADAPTER
10-10 16:16:28.710 31314 31314 D BluetoothA2dp: Binding service...
10-10 16:16:28.714 1541 4186 I chatty : uid=1000(system) Binder:1541_D expire 1 line
10-10 16:16:28.716 31314 31314 D FMService: is A2DP device Supported In HALfalse
10-10 16:16:28.716 31314 31314 E libc : Access denied finding property "ro.vendor.fm.use_audio_session"
10-10 16:16:28.717 31314 31314 D FMService: onStart
10-10 16:16:28.717 17663 17730 I chatty : uid=1002(bluetooth) BluetoothAvrcpH expire 228 lines
10-10 16:16:28.720 31314 31314 D FMService: onBind
10-10 16:16:28.720 31314 31314 D FMService: onBind mBinder linked to deathcom.caf.fmradio.FMRadioService$ServiceStub@381505d
10-10 16:16:28.728 31314 6595 I AdrenoGLES: QUALCOMM build : e0436c5, Ib165d46056
10-10 16:16:28.728 31314 6595 I AdrenoGLES: Build Date : 09/10/19
10-10 16:16:28.728 31314 6595 I AdrenoGLES: OpenGL ES Shader Compiler Version: EV031.27.05.01
10-10 16:16:28.728 31314 6595 I AdrenoGLES: Local Branch :
10-10 16:16:28.728 31314 6595 I AdrenoGLES: Remote Branch : quic/gfx-adreno.lnx.1.0.r74-rel
10-10 16:16:28.728 31314 6595 I AdrenoGLES: Remote Branch : NONE
10-10 16:16:28.728 31314 6595 I AdrenoGLES: Reconstruct Branch : NOTHING
10-10 16:16:28.728 31314 6595 I AdrenoGLES: Build Config : S P 8.0.11 AArch64
10-10 16:16:28.728 31314 31314 D HorizontalNumberPicker: mSelectorTextGapWidth :52
10-10 16:16:28.729 31314 6595 I AdrenoGLES: PFP: 0x016ee187, ME: 0x00000000
10-10 16:16:28.740 31314 6595 W Gralloc3: mapper 3.x is not supported
10-10 16:16:28.748 31314 31314 D FMService: onCallStateChanged: State - 0
10-10 16:16:28.748 31314 31314 D FMService: onCallStateChanged: incomingNumber -
10-10 16:16:28.748 31314 31314 D FMService: onDataActivity - 0
10-10 16:16:28.748 31314 31314 D BluetoothA2dp: Proxy object connected
10-10 16:16:28.748 31314 31314 D FMService: on receive HeadsetListener android.intent.action.HEADSET_PLUG
10-10 16:16:28.748 31314 31314 D FMService: ACTION_HEADSET_PLUG Intent received
10-10 16:16:28.748 31314 31314 D FMService: mReceiver: ACTION_HEADSET_PLUG
10-10 16:16:28.748 31314 31314 D FMService: ==> intent: Intent { act=android.intent.action.HEADSET_PLUG flg=0x40000010 (has extras) }
10-10 16:16:28.748 31314 31314 D FMService: state: 1
10-10 16:16:28.748 31314 31314 D FMService: name: null
10-10 16:16:28.748 31314 31314 E FMRadio : onServiceConnected: mCallback
10-10 16:16:28.748 31314 31314 E FMRadio : ServiceConnection: onServiceConnected
10-10 16:16:28.749 31314 31314 E FMRadio : FmReceiver constructor
10-10 16:16:28.749 31314 31314 D FMService: fmOn: RadioBand :4
10-10 16:16:28.749 31314 31314 D FMService: fmOn: Emphasis :1
10-10 16:16:28.749 31314 31314 D FMService: fmOn: ChSpacing :1
10-10 16:16:28.749 31314 31314 D FMService: fmOn: RdsStd :1
10-10 16:16:28.749 31314 31314 D FMService: fmOn: LowerLimit :87000
10-10 16:16:28.749 31314 31314 D FMService: fmOn: UpperLimit :108000
10-10 16:16:28.749 31314 31314 V FMRadio : enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMRxStarting
10-10 16:16:28.749 31314 31314 D FmReceiverJNI: classinit native called
10-10 16:16:28.749 31314 31314 I android_hardware_fm: ClassInit native called
10-10 16:16:28.755 1541 1641 I chatty : uid=1000(system) android.bg expire 2 lines
10-10 16:16:28.773 31314 31314 I android_hardware_fm: Opened fm_helium.so shared object library successfully
10-10 16:16:28.773 31314 31314 I android_hardware_fm: Obtaining handle: 'FM_HELIUM_LIB_INTERFACE' to the shared object library...
10-10 16:16:28.773 31314 31314 D FmTransceiver: Fail to Open -1
10-10 16:16:28.773 31314 31314 E FMRadio : enable: Error while turning FM On
10-10 16:16:28.773 31314 31314 E FMRadio : enable: CURRENT-STATE : FMRxStarting ---> NEW-STATE : FMOff
10-10 16:16:28.773 31314 31314 D FMService: Analog Path is not supported
10-10 16:16:28.773 31314 31314 D FMService: mReceiver.enable done, Status :false
10-10 16:16:28.773 31314 31314 D FMService: in stop
10-10 16:16:28.774 31314 31314 E FMRadio : mService.fmOn failed
10-10 16:16:28.775 31314 31314 D FMRadio : disaplyDialog 13
10-10 16:16:28.783 31314 31314 D FMRadio : onCreateOptionsmenu
10-10 16:16:28.783 31314 31314 D FMRadio : onPrepare optionsmenu
10-10 16:16:28.783 31314 31314 D FMRadio : mRtPlusSupported: false
10-10 16:16:28.788 20565 20565 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3235
10-10 16:16:28.789 20565 20565 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1858
10-10 16:16:28.800 31314 31314 E FMRadio : FmReceiver constructor
10-10 16:16:28.800 31314 31314 D FMService: fmOn: RadioBand :4
10-10 16:16:28.800 31314 31314 D FMService: fmOn: Emphasis :1
10-10 16:16:28.800 31314 31314 D FMService: fmOn: ChSpacing :1
10-10 16:16:28.800 31314 31314 D FMService: fmOn: RdsStd :1
10-10 16:16:28.800 31314 31314 D FMService: fmOn: LowerLimit :87000
10-10 16:16:28.800 31314 31314 D FMService: fmOn: UpperLimit :108000
10-10 16:16:28.800 31314 31314 V FMRadio : enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMRxStarting
10-10 16:16:28.801 31314 31314 D FmTransceiver: Fail to Open -1
10-10 16:16:28.801 31314 31314 E FMRadio : enable: Error while turning FM On
10-10 16:16:28.801 31314 31314 E FMRadio : enable: CURRENT-STATE : FMRxStarting ---> NEW-STATE : FMOff
10-10 16:16:28.801 31314 31314 D FMService: Analog Path is not supported
10-10 16:16:28.801 31314 31314 D FMService: mReceiver.enable done, Status :false
10-10 16:16:28.801 31314 31314 D FMService: in stop
10-10 16:16:28.802 31314 31314 D FMService: ++requestFocus
10-10 16:16:28.802 31314 31314 D FMService: --requestFocus
10-10 16:16:28.814 31314 31314 D FMService: Program Service: []
10-10 16:16:28.814 31314 31314 D FMRadio : mUpdateProgramService: Updatable string: []
10-10 16:16:28.814 31314 31314 D FMService: PTY: [-1]
10-10 16:16:28.814 31314 31314 D FMService: PI: [-1]
10-10 16:16:29.002 4376 4376 I KLWPSa : Switching VISIBLE to: false
10-10 16:16:29.007 4376 4376 I KLWPSCoreService: Enabling location updates LocationProviderRequest(priority=NO_POWER, fastestInterval=3600000, interval=21600000, maxWaitTime=43200000, smallestDisplacement=500.0)
10-10 16:16:29.014 1541 10113 W ActivityManager: Receiver with filter android.content.IntentFilter@7eec439 already registered for pid 4376, callerPackage is org.kustom.wallpaper
10-10 16:16:29.024 4376 5128 I KLWPSd : Requesting network update, force false, location only false, text false, bitmap false
10-10 16:16:29.035 4376 5394 I KLWPSAddressData: Address update required: false [delta 3780m>60m AND distance 0.000000>10.000000km]
10-10 16:16:29.190 1285 1326 W ServiceManagement: Waited one second for vendor.qti.hardware.cacert@1.0::IService/default
10-10 16:16:29.192 1285 1326 I ServiceManagement: getService: Trying again for vendor.qti.hardware.cacert@1.0::IService/default...
10-10 16:16:29.195 572 6607 I chatty : uid=1000(system) hwservicemanage expire 2 lines
10-10 16:16:29.608 812 3756 E ANDR-PERF-LM: VmRssMeter:: start() 298: Could not find pid, can not collect vmrss data
10-10 16:16:29.611 812 3756 E ANDR-PERF-LM: AdaptiveLaunch: writeToDataBase() 63: Meter aborted or could not get meter data for this run
10-10 16:16:30.192 1285 1326 W ServiceManagement: Waited one second for vendor.qti.hardware.cacert@1.0::IService/default
10-10 16:16:30.192 1285 1326 I ServiceManagement: getService: Trying again for vendor.qti.hardware.cacert@1.0::IService/default...
10-10 16:16:30.193 572 6610 I chatty : uid=1000(system) hwservicemanage expire 2 lines
10-10 16:16:31.192 1285 1326 W ServiceManagement: Waited one second for vendor.qti.hardware.cacert@1.0::IService/default
10-10 16:16:31.193 1285 1326 I ServiceManagement: getService: Trying again for vendor.qti.hardware.cacert@1.0::IService/default...
10-10 16:16:31.193 572 6621 I chatty : uid=1000(system) hwservicemanage expire 2 lines
10-10 16:16:31.208 31314 31314 D FMRadio : closeDialog 13
10-10 16:16:31.213 31314 6595 E cutils-trace: Error opening trace file: No such file or directory (2)
10-10 16:16:31.213 31314 6595 D OpenGLRenderer: endAllActiveAnimators on 0x7243756500 (RippleDrawable) with handle 0x7243302760
10-10 16:16:31.223 1541 6709 I chatty : uid=1000(system) Binder:1541_19 expire 1 line
10-10 16:16:32.193 1285 1326 W ServiceManagement: Waited one second for vendor.qti.hardware.cacert@1.0::IService/default
10-10 16:16:32.194 1285 1326 I ServiceManagement: getService: Trying again for vendor.qti.hardware.cacert@1.0::IService/default...
10-10 16:16:32.195 572 6625 I chatty : uid=1000(system) hwservicemanage expire 2 lines
10-10 16:16:32.302 2802 2802 W View : requestLayout() improperly called by com.android.systemui.statusbar.policy.StatusBarNetworkTraffic{8ae2f97 V.ED..... ......ID 0,21-116,75} during layout: running second layout pass
10-10 16:16:32.749 31314 31314 E FMRadio : FmReceiver constructor
10-10 16:16:32.749 31314 31314 D FMService: fmOn: RadioBand :4
10-10 16:16:32.749 31314 31314 D FMService: fmOn: Emphasis :1
10-10 16:16:32.749 31314 31314 D FMService: fmOn: ChSpacing :1
10-10 16:16:32.749 31314 31314 D FMService: fmOn: RdsStd :1
10-10 16:16:32.749 31314 31314 D FMService: fmOn: LowerLimit :87000
10-10 16:16:32.749 31314 31314 D FMService: fmOn: UpperLimit :108000
10-10 16:16:32.749 31314 31314 V FMRadio : enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMRxStarting
10-10 16:16:32.749 31314 31314 D FmTransceiver: Fail to Open -1
10-10 16:16:32.749 31314 31314 E FMRadio : enable: Error while turning FM On
10-10 16:16:32.749 31314 31314 E FMRadio : enable: CURRENT-STATE : FMRxStarting ---> NEW-STATE : FMOff
10-10 16:16:32.749 31314 31314 D FMService: Analog Path is not supported
10-10 16:16:32.749 31314 31314 D FMService: mReceiver.enable done, Status :false
10-10 16:16:32.749 31314 31314 D FMService: in stop
10-10 16:16:32.752 31314 31314 E FMRadio : mService.fmOn failed
10-10 16:16:32.752 31314 31314 D FMRadio : disaplyDialog 13
10-10 16:16:33.194 1285 1326 W ServiceManagement: Waited one second for vendor.qti.hardware.cacert@1.0::IService/default
10-10 16:16:33.197 1285 1326 I ServiceManagement: getService: Trying again for vendor.qti.hardware.cacert@1.0::IService/default...
10-10 16:16:33.199 572 6632 I chatty : uid=1000(system) hwservicemanage expire 2 lines
10-10 16:16:33.628 2741 5600 W ConnectionTracker: Exception thrown while unbinding
10-10 16:16:33.628 2741 5600 W ConnectionTracker: java.lang.IllegalArgumentException: Service not registered: lw@51edaca
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1756)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at android.app.ContextImpl.unbindService(ContextImpl.java:1776)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at android.content.ContextWrapper.unbindService(ContextWrapper.java:741)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at ci.b(:com.google.android.gms.dynamite_measurementdynamite@203615081@20.36.15 (120400-0):1)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at ci.a(:com.google.android.gms.dynamite_measurementdynamite@203615081@20.36.15 (120400-0):6)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at lx.A(:com.google.android.gms.dynamite_measurementdynamite@203615081@20.36.15 (120400-0):10)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at lh.a(:com.google.android.gms.dynamite_measurementdynamite@203615081@20.36.15 (120400-0):3)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at eb.run(:com.google.android.gms.dynamite_measurementdynamite@203615081@20.36.15 (120400-0):3)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
10-10 16:16:33.628 2741 5600 W ConnectionTracker: at ja.run(:com.google.android.gms.dynamite_measurementdynamite@203615081@20.36.15 (120400-0):6)
10-10 16:16:33.744 31314 31314 D FMRadio : closeDialog 13