[Xiaomi Redmi Note 5 Pro Questions & Answers] samtulach:
Hello everyone!

I need to record 1080p60fps videos on my Redmi Note 5 (pro) global. I have official Pixel Experience rom. I don't really care about Google Cam, but it seems like the only app that allows to record in 60fps (open camera record in 4k, but not in 1080p60), so I tried to install it. I have Magisk v16.0 with Camera2 API Enabler installed (checked using getprop and it is enabled), but I practically every google camera mod I tried is crashing. Here is log (same for all):

07-18 11:27:15.713 746 796 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [2, 0]
07-18 11:27:15.779 3205 3475 D AudioService: Stream muted, skip playback
07-18 11:27:15.780 3205 8023 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.Pixel2Mod/com.android.camera.CameraLauncher bnds=[30,880][234,1172]} from uid 10026
07-18 11:27:15.835 3205 3963 I ActivityManager: Start proc 9448:com.google.android.Pixel2Mod/u0a122 for activity com.google.android.Pixel2Mod/com.android.camera.CameraLauncher
07-18 11:27:15.923 4495 4495 I MicroDetector: Keeping mic open: false
07-18 11:27:15.923 4495 4288 I DeviceStateChecker: DeviceStateChecker cancelled
07-18 11:27:15.923 4495 2001 I AudioController: internalShutdown
07-18 11:27:15.924 4495 9439 I MicroRecognitionRunner: Stopping hotword detection.
07-18 11:27:15.924 4495 1171 I MicroRecognitionRunner: Detection finished
07-18 11:27:15.952 720 7863 D audio_hw_primary: in_standby: enter: stream (0xe64c4800) usecase(18: audio-record)
07-18 11:27:15.993 9448 9466 I CameraManagerGlobal: Connecting to camera service
07-18 11:27:16.000 9448 9466 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 2
07-18 11:27:16.001 9448 9466 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 3
07-18 11:27:16.003 833 891 I mmid : select timeout: wait for receiving msg
07-18 11:27:16.007 720 7863 D audio_hw_primary: disable_audio_route: reset and update mixer path: audio-record
07-18 11:27:16.008 720 7863 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 18 of type 1 for Event 2, with Raise=0
07-18 11:27:16.008 720 7863 D hardware_info: hw_info_append_hw_type : device_name = voice-rec-mic
07-18 11:27:16.008 720 7863 D audio_hw_primary: disable_snd_device: snd_device(95: voice-rec-mic)
07-18 11:27:16.008 720 7863 D msm8916_platform: platform_split_snd_device: snd_device(95) num devices(0) new_snd_devices(0)
07-18 11:27:16.011 720 7863 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x5f of type 1 for Event 0, with Raise=1
07-18 11:27:16.011 720 7863 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: concurrency active 0, tx 0, rx 0, concurrency session_allowed 1
07-18 11:27:16.013 722 1748 I QCamera : <HAL><INFO> getCameraInfo: 397: Camera id 0 API version 256
07-18 11:27:16.013 722 1748 I QCamera : <HAL><INFO> getCamInfo: 10404: camera 0 resource cost is 100
07-18 11:27:16.013 720 7863 D audio_hw_primary: in_set_parameters: enter: kvpairs=routing=0
07-18 11:27:16.014 2715 3296 I SoundTriggerHwService::Module: onCallbackEvent no clients
07-18 11:27:16.015 4495 2002 I MicrophoneInputStream: mic_close SR : 16000 CC : 16 SO : 1999
07-18 11:27:16.017 720 7863 D audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xe64c4800)
07-18 11:27:16.017 720 7863 D audio_hw_primary: in_standby: enter: stream (0xe64c4800) usecase(18: audio-record)
07-18 11:27:16.035 9448 9466 I CAM_MaxNativeMemory: Max native memory overridden (device): 1160
07-18 11:27:16.036 9448 9466 I CAM_MemoryManager: Max native memory: 1160000000 bytes. (1160MB).
07-18 11:27:16.046 9448 9448 I CAM_Instrumentation: CameraActivity: App OnCreate duration: 8ms
07-18 11:27:16.047 9448 9448 I CAM_Instrumentation: CameraActivity: App OnCreate End to Activity OnCreate Start: 24ms
07-18 11:27:16.047 9448 9448 I CAM_GcaActivity: [f75a52b] GcaActivity#onCreate
07-18 11:27:16.050 9448 9466 W linker : "/data/app/com.google.android.Pixel2Mod-jEj88MEA0xdz3YI6ZIKzOA==/lib/arm64/libgcam_swig_jni.so" unused DT entry: type 0xf arg 0x46e68
07-18 11:27:16.054 722 1748 I QCamera : <HAL><INFO> getCameraInfo: 397: Camera id 1 API version 256
07-18 11:27:16.054 722 1748 I QCamera : <HAL><INFO> getCamInfo: 10404: camera 1 resource cost is 100
07-18 11:27:16.064 9448 9448 I CAM_CameraUiInflater: Initializing Window Flags
07-18 11:27:16.066 9448 9467 I CAM_PermissionsChecker: Checking for critical permissions.
07-18 11:27:16.076 3205 3963 I ActivityManager: START u0 {act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.android.packageinstaller cmp=com.android.packageinstaller/.permission.ui.GrantPermissionsActivity (has extras)} from uid 10122
07-18 11:27:16.104 9448 9448 I CAM_CameraUiInflater: Initializing Camera Ui
07-18 11:27:16.106 9448 9466 I CAM_MemoryManager: Registering feature: HDR_PLUS
07-18 11:27:16.108 9448 9466 I CAM_MemoryManager: State updated. Free Memory: 1160000000
07-18 11:27:16.203 9448 9448 I CAM_CameraUiInflater: Initializing Action Bar
07-18 11:27:16.213 9448 9448 I CAM_Instrumentation: CameraActivity: OnCreate duration: 166ms
07-18 11:27:16.213 9448 9448 I CAM_GcaActivity: [f75a52b] GcaActivity#onStart
07-18 11:27:16.215 9448 9448 I CAM_Instrumentation: CameraActivity: OnCreate End to OnResume Start: 2ms
07-18 11:27:16.215 9448 9448 I CAM_GcaActivity: [f75a52b] GcaActivity#onResume
07-18 11:27:16.216 9448 9448 I CAM_Instrumentation: CameraActivity: OnResume duration: 0ms
07-18 11:27:16.220 9448 9474 D OpenGLRenderer: HWUI GL Pipeline
07-18 11:27:16.226 9448 9448 I CAM_GcaActivity: [f75a52b] GcaActivity#onPause
07-18 11:27:16.239 9448 9448 I CAM_MemoryManager: State updated. Free Memory: 1160000000
07-18 11:27:16.239 9448 9448 I CAM_MemoryManager: State updated. Free Memory: 1160000000
07-18 11:27:16.239 9448 9448 D AndroidRuntime: Shutting down VM
07-18 11:27:16.239 9448 9448 E AndroidRuntime: FATAL EXCEPTION: main
07-18 11:27:16.239 9448 9448 E AndroidRuntime: Process: com.google.android.Pixel2Mod, PID: 9448
07-18 11:27:16.239 9448 9448 E AndroidRuntime: java.lang.NullPointerException: Attempt to get length of null array
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at cok.a(Unknown Source:166)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at ccv.a(Unknown Source:54)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at com.a(Unknown Source:58)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at jxg.a(Unknown Source:15)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at con.run(Unknown Source:36)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at gvc.run(Unknown Source:8)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at hzy.run(Unknown Source:2)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at java.lang.Thread.run(Thread.java:764)
07-18 11:27:16.239 9448 9448 E AndroidRuntime:	at avv.run(Unknown Source:5)
07-18 11:27:16.244 9448 9448 E CAM_SilentFeedback: Could not find SilentFeedbackService, not sending crash info.
07-18 11:27:16.248 3205 3298 I ActivityManager: Showing crash dialog for package com.google.android.Pixel2Mod u0
07-18 11:27:17.333 14120 14231 D ClClient: Not sending keepalive. Current connection state=STOPPED
07-18 11:27:18.877 4495 1171 I EventLogSendingHelper: Sending log events.
07-18 11:27:19.006 833 891 I mmid : select timeout: wait for receiving msg
07-18 11:27:19.195 4470 4525 I cr_BindingManager: Release moderate connections: 1
07-18 11:27:22.009 833 891 I mmid : select timeout: wait for receiving msg
07-18 11:27:25.811 3205 3295 W ActivityManager: Launch timeout has expired, giving up wake lock!
07-18 11:27:25.012 833 891 I mmid : select timeout: wait for receiving msg
07-18 11:27:27.333 14120 14231 D ClClient: Not sending keepalive. Current connection state=STOPPED
07-18 11:27:28.015 833 891 I mmid : select timeout: wait for receiving msg

It immediately crashes right after I open it. It just asks for camera and microphone permissions. I think there is some internal issue (maybe?). Crashing at:

java.lang.NullPointerException: Attempt to get length of null array