[One (M7) Android Development] Manugal:
Full wiped again with TWRP 2.8, but camera still doesn't work. It says "Can't connect to camera". It could be my daily ROM if the camera worked. [emoji31]

I attach the logcat of the error for your inspection.

Thank you.

11-28 19:08:55.363 I/ActivityManager(523): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=com.android.camera2 cmp=com.android.camera2/com.android.camera.CameraLauncher bnds=[648,1676][849,1928] (has extras)} from uid 10023 on display 0

11-28 19:08:55.430 I/ActivityManager(523): Start proc com.android.camera2 for activity com.android.camera2/com.android.camera.CameraLauncher: pid=10665 uid=10031 gids={50031, 9997, 3003, 1028, 1015} abi=armeabi-v7a

11-28 19:08:55.615 E/Vold (194): Failed to find mounted volume for /storage/usbdisk/Android/data/com.android.camera2/cache/

11-28 19:08:55.617 E/Vold (194): Failed to find mounted volume for /storage/usbdisk/Android/data/com.android.camera2/files/

11-28 19:09:05.341 W/ActivityManager(523): Activity pause timeout for ActivityRecord{3a70050d u0 com.android.camera2/com.android.camera.CameraLauncher t10 f}

11-28 19:09:16.953 I/ActivityManager(523): START u0 {act=android.intent.action.DELETE dat=package:com.google.android.GoogleCamera flg=0x10800000 cmp=com.android.packageinstaller/.UninstallerActivity (has extras)} from uid 10023 on display 0

11-28 19:09:23.884 I/ActivityManager(523): START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:com.android.camera2 flg=0x10808000 cmp=com.android.settings/.applications.InstalledAppDetails} from uid 1000 on display 0

11-28 19:09:52.204 I/ActivityManager(523): Killing 10665:com.android.camera2/u0a31 (adj 15): empty #17

11-28 19:20:41.089 I/ActivityManager(523): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=com.android.camera2 cmp=com.android.camera2/com.android.camera.CameraLauncher bnds=[648,1676][849,1928] (has extras)} from uid 10023 on display 0

11-28 19:20:41.207 I/ActivityManager(523): Start proc com.android.camera2 for activity com.android.camera2/com.android.camera.CameraLauncher: pid=19756 uid=10031 gids={50031, 9997, 3003, 1028, 1015} abi=armeabi-v7a

11-28 19:20:41.408 E/Vold (194): Failed to find mounted volume for /storage/usbdisk/Android/data/com.android.camera2/cache/

11-28 19:20:41.411 E/Vold (194): Failed to find mounted volume for /storage/usbdisk/Android/data/com.android.camera2/files/

11-28 19:20:51.315 W/ActivityManager(523): Activity pause timeout for ActivityRecord{1a9d5197 u0 com.android.camera2/com.android.camera.CameraLauncher t30 f}

11-28 19:20:53.336 E/AndroidRuntime(19756): Process: com.android.camera2, PID: 19756

11-28 19:20:53.336 E/AndroidRuntime(19756): java.lang.RuntimeException: Unable to pause activity {com.android.camera2/com.android.camera.CameraLauncher}: java.lang.IllegalStateException: Timeout waiting 2500ms for stop preview

11-28 19:20:53.336 E/AndroidRuntime(19756): at com.android.ex.camera2.portability.DispatchThread.runJobSync(DispatchThread.java:81)

11-28 19:20:53.336 E/AndroidRuntime(19756): at com.android.ex.camera2.portability.CameraAgent$CameraProxy.stopPreview(CameraAgent.java:542)

11-28 19:20:53.336 E/AndroidRuntime(19756): at com.android.camera.PhotoModule.stopPreview(PhotoModule.java:2011)

11-28 19:20:53.336 E/AndroidRuntime(19756): at com.android.camera.PhotoModule.pause(PhotoModule.java:1736)

11-28 19:20:53.336 E/AndroidRuntime(19756): at com.android.camera.CameraActivity.onPause(CameraActivity.java:1639)

11-28 19:20:54.919 I/WindowState(523): WIN DEATH: Window{9398f95 u0 com.android.camera2/com.android.camera.CameraLauncher}

11-28 19:20:54.989 I/ActivityManager(523): Process com.android.camera2 (pid 19756) has died

11-28 19:22:43.247 I/Timeline(6184): Timeline: Activity_launch_request id:com.android.camera2 time:1337608

11-28 19:22:43.248 I/ActivityManager(523): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=com.android.camera2 cmp=com.android.camera2/com.android.camera.CameraLauncher bnds=[648,1676][849,1928] (has extras)} from uid 10023 on display 0

11-28 19:22:43.368 I/ActivityManager(523): Start proc com.android.camera2 for activity com.android.camera2/com.android.camera.CameraLauncher: pid=22264 uid=10031 gids={50031, 9997, 3003, 1028, 1015} abi=armeabi-v7a

11-28 19:22:43.548 E/Vold (194): Failed to find mounted volume for /storage/usbdisk/Android/data/com.android.camera2/cache/

11-28 19:22:43.549 W/ContextImpl(22264): Failed to ensure directory: /storage/usbdisk/Android/data/com.android.camera2/cache

11-28 19:22:43.550 E/Vold (194): Failed to find mounted volume for /storage/usbdisk/Android/data/com.android.camera2/files/

11-28 19:22:43.550 W/ContextImpl(22264): Failed to ensure directory: /storage/usbdisk/Android/data/com.android.camera2/files

11-28 19:22:43.699 I/CameraService(20687): getCameraCharacteristics: Switching to HAL1 shim implementation...

11-28 19:22:43.707 D/AwesomePlayer(20687): printFileName /system/media/audio/ui/camera_click.ogg

11-28 19:22:59.565 I/CameraClient(20687): Opening camera 0

11-28 19:23:00.920 I/CameraClient(20687): Destroying camera 0

11-28 19:23:01.216 I/CameraService(20687): getCameraCharacteristics: Switching to HAL1 shim implementation...

11-28 19:23:01.217 D/AwesomePlayer(20687): printFileName /system/media/audio/ui/camera_click.ogg

11-28 19:23:01.264 I/CameraClient(20687): Opening camera 1

11-28 19:23:02.764 I/CameraClient(20687): Destroying camera 1

11-28 19:23:03.197 D/AwesomePlayer(20687): printFileName fd(22) -> /system/media/audio/ui/camera_click.ogg

11-28 19:23:03.370 D/AwesomePlayer(20687): printFileName fd(29) -> /system/app/Camera2/Camera2.apk

11-28 19:23:03.381 I/CAM2PORT_AndCam2AgntImp(22264): Opening camera index 0 (id 0) with camera2 API

11-28 19:23:03.405 I/CameraManager(22264): Using legacy camera HAL.

11-28 19:23:03.424 D/AwesomePlayer(20687): printFileName /system/media/audio/ui/camera_click.ogg

11-28 19:23:03.493 I/CameraClient(20687): Opening camera 0

11-28 19:23:03.713 I/CAM_PhotoModule(22264): attempted to start preview before camera device

11-28 19:23:03.748 I/ActivityManager(523): Displayed com.android.camera2/com.android.camera.CameraLauncher: +20s404ms

11-28 19:23:03.749 I/Timeline(523): Timeline: Activity_windows_visible id: ActivityRecord{33641ea9 u0 com.android.camera2/com.android.camera.CameraLauncher t32} time:1358109

11-28 19:23:03.865 I/CAM_PhotoModule(22264): onCameraAvailable

11-28 19:23:03.921 I/CameraDeviceState(22264): Legacy camera service transitioning to state CONFIGURING

11-28 19:23:04.039 D/Camera (22264): app passed NULL surface

11-28 19:23:04.094 D/AwesomePlayer(20687): printFileName fd(29) -> /system/app/Camera2/Camera2.apk

11-28 19:23:04.159 I/CameraDeviceState(22264): Legacy camera service transitioning to state IDLE

11-28 19:23:06.551 I/ServiceManager(193): service 'media.camera' died

11-28 19:23:06.551 W/CameraBase(22264): mediaserver's remote binder Camera object died

11-28 19:23:06.552 E/Camera (22264): Error 100

11-28 19:23:06.552 E/RequestThread-0(22264): Received error 100 from the Camera1 ErrorCallback

11-28 19:23:06.552 I/CameraDeviceState(22264): Legacy camera service transitioning to state ERROR

11-28 19:23:06.553 E/CAM2PORT_AndCam2AgntImp(22264): Camera device '0' encountered error code '1'

11-28 19:23:06.554 W/CAM_CameraActivity(22264): Camera open failure: HIST_ID0_-1_1_303_502_302_305_303_204_101_102_303_204_HEND

11-28 19:23:06.557 W/CameraBase(22264): Camera service died!

11-28 19:23:06.557 E/RequestThread-0(22264): at android.hardware.Camera.native_getParameters(Native Method)

11-28 19:23:06.557 E/RequestThread-0(22264): at android.hardware.Camera.getParameters(Camera.java:1944)

11-28 19:23:06.557 E/RequestThread-0(22264): at android.hardware.camera2.legacy.RequestThreadManager$5.handleMessage(RequestThreadManager.java:807)

11-28 19:23:06.751 I/CameraService(22864): CameraService started (pid=22864)

11-28 19:23:06.752 I/CameraService(22864): Loaded "M7 Camera Wrapper" camera module

11-28 19:23:08.181 E/CAM2PORT_AndCam2AgntImp(22264): android.hardware.camera2.CameraAccessException: The camera device has encountered a serious error

11-28 19:23:08.181 E/CAM2PORT_AndCam2AgntImp(22264): at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:1478)

11-28 19:23:08.181 E/CAM2PORT_AndCam2AgntImp(22264): at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:476)

11-28 19:23:08.181 E/CAM2PORT_AndCam2AgntImp(22264): at com.android.ex.camera2.utils.Camera2RequestSettingsSet.createRequest(Camera2RequestSettingsSet.java:234)

11-28 19:23:08.181 E/CAM2PORT_AndCam2AgntImp(22264): at com.android.ex.camera2.portability.AndroidCamera2AgentImpl$Camera2Handler.handleMessage(AndroidCamera2AgentImpl.java:464)

11-28 19:23:08.666 W/ActivityManager(523): Activity pause timeout for ActivityRecord{33641ea9 u0 com.android.camera2/com.android.camera.CameraLauncher t32 f}

11-28 19:23:09.579 I/CameraDeviceState(22264): Legacy camera service transitioning to state CAPTURING

11-28 19:23:09.579 E/CameraDeviceState(22264): Cannot call capture while in state: 0

11-28 19:23:09.580 I/CameraDeviceState(22264): Legacy camera service transitioning to state CAPTURING

11-28 19:23:09.580 E/CameraDeviceState(22264): Cannot call capture while in state: 0

11-28 19:23:09.648 W/CAM2PORT_AndCam2AgntImp(22264): Cannot handle message 2, mCamera is null

11-28 19:23:09.674 W/CAM2PORT_AndCamAgntImp(22264): Releasing camera without any camera opened.

11-28 19:23:14.229 W/MessageQueue(22264): at android.hardware.camera2.legacy.RequestThreadManager.quit(RequestThreadManager.java:941)

11-28 19:23:14.229 W/MessageQueue(22264): at android.hardware.camera2.legacy.LegacyCameraDevice.close(LegacyCameraDevice.java:444)

11-28 19:23:14.229 W/MessageQueue(22264): at android.hardware.camera2.legacy.LegacyCameraDevice.finalize(LegacyCameraDevice.java:468)

11-28 19:23:24.260 I/ServiceManager(193): service 'media.camera' died

11-28 19:23:24.482 I/CameraService(23582): CameraService started (pid=23582)

11-28 19:23:24.483 I/CameraService(23582): Loaded "M7 Camera Wrapper" camera module

11-28 19:23:29.131 W/PackageManager(885): Failure retrieving resources for com.android.camera2: Resource ID #0x0