[Xiaomi Mi A1 Questions & Answers] talla1:
Hi,

I updated OTA to latest (December 1 security patch). I have magisk to I did the install to the second slot. I had some issues with boot loops, but it all worked out by switching slots back and forth, uninstalling and reinstalling magisk in TWRP.

Now I'm on Android 9.0. Yay.

But my video recording is broken :confused:

I ran into these posts:

https://xdaforums.com/mi-a1/help/video-recording-android-9-0-pie-stable-t3883745

https://xdaforums.com/mi-a1/help/video-record-t3722666

And the problem is indeed related to audio. I can record video without audio. But the workaround with CinemaFX and AAC-ELD workaround does not work. I can factory reset, but I rather try other ways first..

Using the built in camera app, I get this in Logcat:

2019-12-27 21:20:05.717 2210-2210/? E/media.codec: Failed to allocate omx component 'OMX.qcom.audio.encoder.aac' err=InsufficientResources(0x80001000)
2019-12-27 21:20:05.717 2184-27298/? E/ACodec: Unable to instantiate codec 'OMX.qcom.audio.encoder.aac' with err 0xfffffff4.
2019-12-27 21:20:05.717 2184-27298/? E/ACodec: signalError(omxError 0xfffffff4, internalError -12)
2019-12-27 21:20:05.717 2184-27298/? E/MediaCodec: Codec reported err 0xfffffff4, actionCode 0, while in state 1
2019-12-27 21:20:05.719 2184-22261/? E/ResourceManagerService: getLowestPriorityBiggestClient_l: lowest priority 0 vs caller priority 0
2019-12-27 21:20:05.720 2184-22261/? E/StagefrightRecorder: Failed to create audio encoder
2019-12-27 21:20:05.722 2184-22261/? E/MPEG4Writer: Stop() called but track is not started
2019-12-27 21:20:05.722 21751-21751/? E/MediaRecorder: start failed: -2147483648
2019-12-27 21:20:05.724 3484-4049/? W/bt_btif: btif_a2dp_ctrl_cb: A2DP-CTRL-CHANNEL EVENT UIPC_RX_DATA_READY_EVT
2019-12-27 21:20:05.724 3484-4049/? W/bt_btif: btif_a2dp_command_ack: ## a2dp ack : A2DP_CTRL_GET_PRESENTATION_POSITION, queued : A2DP_CTRL_CMD_NONE, status 0 ##
2019-12-27 21:20:05.734 3484-4049/? W/bt_btif: btif_a2dp_ctrl_cb: A2DP-CTRL-CHANNEL EVENT UIPC_RX_DATA_READY_EVT
2019-12-27 21:20:05.734 3484-4049/? W/bt_btif: btif_a2dp_command_ack: ## a2dp ack : A2DP_CTRL_GET_PRESENTATION_POSITION, queued : A2DP_CTRL_CMD_NONE, status 0 ##
2019-12-27 21:20:05.735 21751-21751/? E/videocamera: Could not start media recorder.
java.lang.RuntimeException: start failed.
at android.media.MediaRecorder.start(Native Method)
at com.android.camera.module.VideoModule.startRecordVideo(VideoModule.java:1921)
at com.android.camera.module.VideoModule.startVideoRecording(VideoModule.java:1953)
at com.android.camera.module.VideoModule.record(VideoModule.java:722)
at com.android.camera.module.VideoModule.onShutterButtonClick(VideoModule.java:710)
at com.android.camera.module.VideoModule.handleMessage(VideoModule.java:1318)
at com.android.camera.ui.UIController.dispacherMessage(UIController.java:207)
at com.android.camera.ui.V6ShutterButtonInternal.onClick(V6ShutterButtonInternal.java:110)
at com.android.camera.ui.V6ShutterButtonInternal.dispatchTouchEvent(V6ShutterButtonInternal.java:227)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3030)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2719)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:440)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1830)
at android.app.Activity.dispatchTouchEvent(Activity.java:3400)
at com.android.camera.ActivityBase.dispatchTouchEvent(ActivityBase.java:238)
at com.android.camera.Camera.dispatchTouchEvent(Camera.java:384)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:398)
at android.view.View.dispatchPointerEvent(View.java:12761)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5122)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4925)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4442)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4495)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4461)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4601)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4469)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4658)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4442)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4495)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4461)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4469)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4442)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7117)
2019-12-27 21:20:05.735 21751-21751/? E/videocamera: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7086)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7047)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7220)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:187)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:326)
at android.os.Looper.loop(Looper.java:160)
at android.app.ActivityThread.main(ActivityThread.java:6762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Any idea of a fix/workaround?!

Thanks!

Tal