[Xperia Z4/Z3+ Q&A, Help & Troubleshooting] ccxex29:
Yesterday, I reopen the housing of my phone. The camera was OK.

I reapply the adhesive to make it tidier and screw 2 holes i hadnt screwed.

Then, i saw my phone hung after boot and had to wait for several minutes.

Then, i reflash to Lineage to test if it's probably software fault. But, it didn't hang on boot but the camera app looks blank or black (the same thing happened in camera stock 5.11) 3rd party camera doesnt help at all.

Every app hangs on camera. Messenger,Instagram,Camera,Camera FV-5,etc

Here is the partial logcat from Camera launch until it forcedly closed:

04-19 10:04:14.928 519 4737 I mm-camera: module_sensor_start_session:1352session 1
04-19 10:04:14.935 519 4739 E mm-camera-isp2: isp_module_start_session:851 num_session_opened 1
04-19 10:04:14.960 519 4737 E mm-camera-sensor: sony_sensor_i2c_write:491 failed
04-19 10:04:14.960 519 4737 E mm-camera-sensor: sony_sensor_i2c_write:491 failed
04-19 10:04:14.960 519 4737 E mm-camera-sensor: sony_sensor_i2c_write:491 failed
04-19 10:04:14.960 519 4737 E somc-camera-driver: SOCAM_ERR: sony_camera_reg_write: - sony_camera_reg_write: 0x105 is failed
04-19 10:04:14.960 519 4737 E somc-camera-driver: SOCAM_ERR: sony_camera_set_load_table: - sony_camera_set_load_table: Load Table[0] Error!
04-19 10:04:14.960 519 4737 E somc-camera-driver: SOCAM_ERR: sony_camera_module_sensor_init: Failed to init a sensor driver
04-19 10:04:14.960 519 4737 E mm-camera-sensor: sony_sensor_process_init:1973
04-19 10:04:15.171 519 4737 E mm-camera: module_sensor_init_session:1162failed rc -1
04-19 10:04:15.171 519 4737 E somc-camera-driver: SOCAM_ERR: sony_camera_module_queue_deinit: Invalid argument.
04-19 10:04:15.171 519 4737 E somc-camera-driver: SOCAM_ERR: sony_camera_module_queue_deinit: Invalid argument.
04-19 10:04:15.171 519 4737 E somc-camera-driver: SOCAM_ERR: sony_camera_module_queue_deinit: Invalid argument.
04-19 10:04:15.172 519 4737 E mm-camera-sensor: sony_sensor_power_down:1278
04-19 10:04:15.172 519 4737 E mm-camera: module_sensor_init_session:1258failed
04-19 10:04:15.172 519 4737 E mm-camera: module_sensor_start_session:1375failed
04-19 10:04:15.172 519 4737 E mm-camera: module_sensor_start_session:1403failed
04-19 10:04:15.173 519 519 E mm-camera-sensor: sony_sensor_process:2315
04-19 10:04:15.173 519 519 E mm-camera: module_sensor_query_mod:5531failed rc -4
04-19 10:04:15.173 519 519 E mm-camera: mct: mct_pipeline_query_modules: query_mod failed on sensor
04-19 10:04:15.173 519 519 I mm-camera: module_module_set_session_data:5890max delay 0 report delay 0 retry skip 0
04-19 10:04:15.173 519 519 I mm-camera: module_iface_set_mod_func: set module type = 8, identity 1000f
04-19 10:04:15.173 519 519 I mm-camera-sensor: port_sensor_caps_reserve:151ide 1000f stream type 10 w*h 0*0
04-19 10:04:15.173 519 519 I mm-camera-sensor: port_sensor_ext_link_func:271ide 1000f
04-19 10:04:15.178 519 519 E mm-camera: mct: mct_controller_new: Start session failed with status 1
04-19 10:04:15.179 519 519 I mm-camera-sensor: port_sensor_unlink_func:293ide 1000f
04-19 10:04:15.179 519 519 I mm-camera: port_iface_ext_unlink_func: E, identity = 0x1000f, port = 0xf48aad20, direction = 2
04-19 10:04:15.179 519 519 I mm-camera-sensor: port_sensor_caps_unreserve:204ide 1000f
04-19 10:04:15.179 519 519 I mm-camera: port_iface_check_caps_unreserve_func: E, identity = 0x1000f, port = 0xf48aad20, direction = 2
04-19 10:04:15.179 519 519 E mm-camera: iface_unreserve_sink_port: stream_id f mode 0
04-19 10:04:15.179 519 519 I mm-camera: port_iface_ext_unlink_func: E, identity = 0x1000f, port = 0xf48ab020, direction = 1
04-19 10:04:15.179 519 519 I mm-camera: port_iface_check_caps_unreserve_func: E, identity = 0x1000f, port = 0xf48ab020, direction = 1
04-19 10:04:15.179 519 519 E mm-camera: isp_util_get_session_stream_param_from_type:6764 failed: l_stream_params 0x0 for stream type 10
04-19 10:04:15.179 519 4754 I mm-camera: module_sensor_stop_session:1422session 1
04-19 10:04:15.179 519 4754 E mm-camera: module_sensor_deinit_session:1282ref count 0
04-19 10:04:15.179 519 4754 E mm-camera: module_sensor_stop_session:1441failed
04-19 10:04:15.179 519 4754 E mm-camera: module_sensor_stop_session:1458failed
04-19 10:04:15.179 519 4754 E mm-camera: mct: mct_pipeline_stop_session_thread: Failed to stop module name: sensor
04-19 10:04:15.186 519 519 E mm-camera: main: New session [1] creation failed with error
04-19 10:04:15.186 519 519 E mm-camera: main: camera daemon notify error
04-19 10:04:16.725 489 489 I MSM-irqbalance: Decided to move IRQ195 from CPU3 to CPU0
04-19 10:04:18.025 500 830 D audio_hw_primary: out_standby: enter: stream (0xf5b98000) usecase(1: low-latency-playback)
04-19 10:04:18.069 500 830 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
04-19 10:04:18.071 500 830 D hardware_info: hw_info_append_hw_type : device_name = speaker
04-19 10:04:18.072 500 830 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
04-19 10:04:21.726 489 489 I MSM-irqbalance: Decided to move IRQ196 from CPU3 to CPU0
04-19 10:04:24.821 1186 1827 W ActivityManager: Launch timeout has expired, giving up wake lock!
04-19 10:04:26.726 489 489 I MSM-irqbalance: Decided to move IRQ51 from CPU2 to CPU0
04-19 10:04:28.923 501 501 E mm-camera-intf: mm_camera_open: cannot open control fd of '/dev/video1' (Connection timed out)
04-19 10:04:28.923 501 501 E mm-camera-intf: camera_open: mm_camera_open err = -1
04-19 10:04:28.923 501 501 E cammw : E: cammw_platform_camera_open: camera open error
04-19 10:04:28.923 501 501 E cammw : E: cammw_camera_open: platform camera open error
04-19 10:04:28.923 501 501 E cald : 377321086573 excal_system.cpp (390) 501 E [EXC] Camera can't open.
04-19 10:04:28.923 501 501 E camera-hal: camera_module.cpp(291):getCameraInfo: Getting systemInfo error
04-19 10:04:28.923 501 501 I camera-hal: camera_hal.cpp(473):module_api_get_camera_info: cameraId 0 ret -19
04-19 10:04:28.925 4718 4718 D AndroidRuntime: Shutting down VM
04-19 10:04:28.927 4718 4718 E AndroidRuntime: FATAL EXCEPTION: main
04-19 10:04:28.927 4718 4718 E AndroidRuntime: Process: org.cyanogenmod.snap, PID: 4718
04-19 10:04:28.927 4718 4718 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.cyanogenmod.snap/com.android.camera.CameraActivity}: java.lang.RuntimeException: Fail to get camera info
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2681)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2742)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.app.ActivityThread.-wrap12(ActivityThread.java)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1489)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:102)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6178)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
04-19 10:04:28.927 4718 4718 E AndroidRuntime: Caused by: java.lang.RuntimeException: Fail to get camera info
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.hardware.Camera._getCameraInfo(Native Method)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.hardware.Camera.getCameraInfo(Camera.java:288)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.camera.CameraHolder.<init>(CameraHolder.java:173)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.camera.CameraHolder.instance(CameraHolder.java:127)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.camera.CameraSettings.readPreferredCameraId(CameraSettings.java:1353)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.camera.CameraSettings.upgradeCameraId(CameraSettings.java:1341)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.camera.CameraSettings.upgradeGlobalPreferences(CameraSettings.java:1284)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.camera.SettingsManager.<init>(SettingsManager.java:143)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at com.android.camera.CameraActivity.onCreate(CameraActivity.java:1469)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.app.Activity.performCreate(Activity.java:6682)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2634)
04-19 10:04:28.927 4718 4718 E AndroidRuntime:	... 9 more
04-19 10:04:28.930 1186 3362 W ActivityManager: Force finishing activity org.cyanogenmod.snap/com.android.camera.CameraLauncher
04-19 10:04:28.944 1186 3362 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:877 com.android.server.am.AppErrors.crashApplicationInner:375 com.android.server.am.AppErrors.crashApplication:309 com.android.server.am.ActivityManagerService.handleApplicationCrashInner:13735 com.android.server.am.ActivityManagerService.handleApplicationCrash:13717
04-19 10:04:28.945 1186 3362 E ActivityManager: Sending non-protected broadcast projekt.substratum.APP_CRASHED from system 1186:system/1000 pkg android
04-19 10:04:28.945 1186 3362 E ActivityManager: java.lang.Throwable
04-19 10:04:28.945 1186 3362 E ActivityManager:	at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:18155)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18744)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18835)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at android.app.ContextImpl.sendBroadcast(ContextImpl.java:881)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:375)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at com.android.server.am.AppErrors.crashApplication(AppErrors.java:309)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:13735)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at com.android.server.am.ActivityManagerService.handleApplicationCrash(ActivityManagerService.java:13717)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:1660)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2984)
04-19 10:04:28.945 1186 3362 E ActivityManager:	at android.os.Binder.execTransact(Binder.java:565)
04-19 10:04:29.021 1186 4043 I OpenGLRenderer: Initialized EGL, version 1.4
04-19 10:04:29.021 1186 4043 D OpenGLRenderer: Swap behavior 1
04-19 10:04:29.444 1186 1827 W ActivityManager: Activity pause timeout for ActivityRecord{a80e5a1 u0 org.cyanogenmod.snap/com.android.camera.CameraLauncher t32 f}
04-19 10:04:29.469 1186 1827 I WindowManager: Failed to capture screenshot of Token{a5f03c6 ActivityRecord{a80e5a1 u0 org.cyanogenmod.snap/com.android.camera.CameraLauncher t32 f}} appWin=Window{c2787f u0 Starting org.cyanogenmod.snap} drawState=4
04-19 10:04:29.997 1186 1986 W WindowManager: Failed looking up window
04-19 10:04:29.997 1186 1986 W WindowManager: java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@394c59e does not exist
04-19 10:04:29.997 1186 1986 W WindowManager:	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9484)
04-19 10:04:29.997 1186 1986 W WindowManager:	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9475)
04-19 10:04:29.997 1186 1986 W WindowManager:	at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2396)
04-19 10:04:29.997 1186 1986 W WindowManager:	at com.android.server.wm.Session.remove(Session.java:193)
04-19 10:04:29.997 1186 1986 W WindowManager:	at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3290)
04-19 10:04:29.997 1186 1986 W WindowManager:	at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5923)
04-19 10:04:29.997 1186 1986 W WindowManager:	at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3629)
04-19 10:04:29.997 1186 1986 W WindowManager:	at android.os.Handler.dispatchMessage(Handler.java:102)
04-19 10:04:29.997 1186 1986 W WindowManager:	at android.os.Looper.loop(Looper.java:154)
04-19 10:04:29.997 1186 1986 W WindowManager:	at android.os.HandlerThread.run(HandlerThread.java:61)
04-19 10:04:29.997 1186 1986 W WindowManager:	at com.android.server.ServiceThread.run(ServiceThread.java:46)
04-19 10:04:30.111 3385 3504 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
04-19 10:04:30.111 3385 3504 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
04-19 10:04:31.727 489 489 I MSM-irqbalance: Decided to move IRQ224 from CPU3 to CPU0
04-19 10:04:33.160 3281 3440 W MediaScanner: Error opening directory '/storage/0000-0000/.android_secure/', skipping: Permission denied.
04-19 10:04:33.254 1186 2702 I ActivityManager: Killing 3248:org.lineageos.customtiles/1000 (adj 906): empty #17
04-19 10:04:33.275 1186 3361 D ActivityManager: cleanUpApplicationRecord -- 3248
04-19 10:04:36.754 489 489 I MSM-irqbalance: Decided to move IRQ57 from CPU3 to CPU0
04-19 10:04:39.797 1186 1827 W ActivityManager: Activity destroy timeout for ActivityRecord{a80e5a1 u0 org.cyanogenmod.snap/com.android.camera.CameraLauncher t32 f}

Any help would be appreciated! Thanks :)