[Galaxy Tab 4 Android Development] sebadamus:
Working good but no camera

Hello,

Just installed, its working good but no camera. I will try the Unicorn Dirty version that seems to be more up to date.

I attach here the log near the camera error and my device version.

Thanks!

Here my device:

build.board: MSM8226
build.bootloader: T530XXU1BOH5
build.brand: samsung
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: matissewifi
build.display: bliss_matissewifi-userdebug 6.0.1 MMB29T ec847b4105 test-keys
build.fingerprint: samsung/matissewifixx/matissewifi:5.0.2/LRX22G/T530XXU1BOD8:user/release-keys
build.hardware: qcom
build.host: grill
build.id: MMB29T
build.manufacturer: samsung
build.model: SM-T530
build.product: bliss_matissewifi
build.radio: unknown
build.serial: a11b8cb103635dfa
build.tags: test-keys
build.time: 1453841056000
build.type: userdebug
build.user: sub77
version.codename: REL
version.incremental: ec847b4105
version.release: 6.0.1
version.sdk_int: 23

And here the log just after opening the camera to see the error:

05:04:37.617 W/QCamera2HWI(271): [KPI Perf] closeCamera: X
05-28 05:04:37.618 W/QCamera2HWI(271): [KPI Perf] close_camera_device: X
05-28 05:04:37.620 I/CameraService(271): disconnect: Disconnected client for camera 0 for PID 18486
05-28 05:04:37.623 E/AndroidRuntime(18486): FATAL EXCEPTION: Camera Handler Thread
05-28 05:04:37.623 E/AndroidRuntime(18486): Process: org.cyanogenmod.snap, PID: 18486
05-28 05:04:37.623 E/AndroidRuntime(18486): java.lang.RuntimeException: startPreview failed
05-28 05:04:37.623 E/AndroidRuntime(18486):	at android.hardware.Camera.startPreview(Native Method)
05-28 05:04:37.623 E/AndroidRuntime(18486):	at com.android.camera.AndroidCameraManagerImpl$CameraHandler.handleMessage(AndroidCameraManagerImpl.java:286)
05-28 05:04:37.623 E/AndroidRuntime(18486):	at android.os.Handler.dispatchMessage(Handler.java:102)
05-28 05:04:37.623 E/AndroidRuntime(18486):	at android.os.Looper.loop(Looper.java:148)
05-28 05:04:37.623 E/AndroidRuntime(18486):	at android.os.HandlerThread.run(HandlerThread.java:61)
05-28 05:04:37.623 D/NuPlayerDriver(271): reset(0xb331f000)
05-28 05:04:37.623 D/NuPlayerDriver(271): notifyListener_l(0xb331f000), (8, 0, 0)
05-28 05:04:37.624 W/AMessage(271): failed to post message as target looper for handler 0 is gone.
05-28 05:04:37.624 D/NuPlayerDriver(271): notifyResetComplete(0xb331f000)
05-28 05:04:37.624 D/NuPlayerDriver(271): reset(0xb4371fc0)
05-28 05:04:37.625 D/NuPlayerDriver(271): notifyListener_l(0xb4371fc0), (8, 0, 0)
05-28 05:04:37.625 W/AMessage(271): failed to post message as target looper for handler 0 is gone.
05-28 05:04:37.625 D/NuPlayerDriver(271): notifyResetComplete(0xb4371fc0)
05-28 05:04:37.625 D/NuPlayerDriver(271): reset(0xb4372080)
05-28 05:04:37.625 D/NuPlayerDriver(271): notifyListener_l(0xb4372080), (8, 0, 0)
05-28 05:04:37.625 W/AMessage(271): failed to post message as target looper for handler 0 is gone.
05-28 05:04:37.626 W/ActivityManager(843): Force finishing activity org.cyanogenmod.snap/com.android.camera.CameraLauncher
05-28 05:04:37.626 D/NuPlayerDriver(271): notifyResetComplete(0xb4372080)
05-28 05:04:37.703 I/OpenGLRenderer(843): Initialized EGL, version 1.4
05-28 05:04:37.705 V/CAM_PhotoModule(18486): onCameraOpened
05-28 05:04:37.706 D/CameraSettings(18486): Using key for iso: iso
05-28 05:04:37.706 D/CameraSettings(18486): Using key for iso-values: iso-values
05-28 05:04:37.735 D/DropBoxEntryAddedChimeraService(3873): User is not opted-in to Usage & Diagnostics.
05-28 05:04:37.779 D/CameraSettings(18486): Supported iso values: auto,ISO_HJR,ISO100,ISO200,ISO400,ISO800,ISO1600,auto
05-28 05:04:37.801 I/art (843): Background partial concurrent mark sweep GC freed 14729(948KB) AllocSpace objects, 11(308KB) LOS objects, 33% free, 14MB/21MB, paused 5.757ms total 159.151ms
05-28 05:04:37.853 V/CAM_PhotoModule(18486): old picture_size = 2048 x 1536
05-28 05:04:37.853 V/CAM_PhotoModule(18486): new picture_size = 2048 x 1536
05-28 05:04:37.854 E/CAM_PhotoModule(18486): Invalid preview resolution:
05-28 05:04:37.854 V/CAM_PhotoModule(18486): Preview size is 1024x768
05-28 05:04:37.854 V/CAM_PhotoModule(18486): Thumbnail size is 512x384
05-28 05:04:37.855 V/CAM_PhotoModule(18486): Picture format value =jpeg
05-28 05:04:37.856 D/CameraSettings(18486): Supported iso values: auto,ISO_HJR,ISO100,ISO200,ISO400,ISO800,ISO1600,auto
05-28 05:04:37.856 V/CAM_PhotoModule(18486): Color effect value =none
05-28 05:04:37.856 V/CAM_PhotoModule(18486): Saturation value =5
05-28 05:04:37.857 V/CAM_PhotoModule(18486): Contrast value =5
05-28 05:04:37.857 V/CAM_PhotoModule(18486): Sharpness value =12
05-28 05:04:37.857 V/CAM_PhotoModule(18486): Face Recognition value = off
05-28 05:04:37.857 V/CAM_PhotoModule(18486): AE Bracketing value =Off
05-28 05:04:37.857 E/CAM_PhotoModule(18486): advancedFeature value =none
05-28 05:04:37.858 V/CAM_PhotoModule(18486): autoExposure value =frame-average
05-28 05:04:37.858 V/CAM_PhotoModule(18486): antiBanding value =auto
05-28 05:04:37.861 D/Util (18486): Parameters: [ae-bracket-hdr-values=Off,AE-Bracket, ae-bracket-hdr=Off, anti-shake=0, antibanding-values=off,60hz,50hz,auto, antibanding=auto, auto-exposure-lock-supported=true, auto-exposure-lock=false, auto-exposure-values=matrix,center,spot, auto-whitebalance-lock-supported=true, auto-whitebalance-lock=false, brightness-step=1, camera-mode=1, contrast-step=1, contrast=5, denoise-values=denoise-off,denoise-on, denoise=denoise-off, dis-values=enable,disable, dis=disable, dual_mode=0, dualrecording-hint=0, effect-values=none,emboss,sketch,neon, effect=none, exposure-compensation-step=0.5, exposure-compensation=0, face-detection-values=off,on, face-detection=on, face-recognition-values=off,on, face-recognition=off, fast-fps-mode=0, firmware-mode=none, flip-mode-values=off,flip-v,flip-h,flip-vh, fnumber-value-denominator=100, fnumber-value-numerator=260, focal-length=2.79, focallength-value-denominator=100, focallength-value-numerator=279, focus-distances=0.10,1.20,Infinity, focus-mode-values=fixed, focus-mode=fixed, hdr-need-1x=false, hfr-size-values=, histogram-values=enable,disable, histogram=disable, horizontal-view-angle=54.6, intelligent-mode=0, iso-values=auto,ISO_HJR,ISO100,ISO200,ISO400,ISO800,ISO1600,auto, iso=auto, jpeg-quality=85, jpeg-thumbnail-height=384, jpeg-thumbnail-quality=85, jpeg-thumbnail-size-values=512x288,480x288,256x154,432x288,512x384,352x288,320x240,176x144,160x160,0x0, jpeg-thumbnail-width=512, lensshade-values=enable,disable, lensshade=enable, llv_mode=0, long-shot=off, luma-adaptation=3, max-brightness=6, max-contrast=10, max-exposure-compensation=4, max-longshot-snap=-1, max-num-detected-faces-hw=2, max-num-detected-faces-sw=2, max-num-focus-areas=0, max-num-metering-areas=10, max-saturation=10, max-sce-factor=100, max-sharpness=36, maxaperture-value-denominator=100, maxaperture-value-numerator=276, mce-values=enable,disable, mce=enable, metering-areas=(0,0,0,0,0), metering=center, min-brightness=0, min-contrast=0, min-exposure-compensation=-4, min-saturation=0, min-sce-factor=-100,
05-28 05:04:37.862 D/Util (18486): Parameters: min-sharpness=0, num-snaps-per-shutter=1, picture-format-values=jpeg,bayer-qcom-10gbrg,bayer-qcom-10grbg,bayer-qcom-10rggb,bayer-qcom-10bggr,bayer-mipi-10gbrg,bayer-mipi-10grbg,bayer-mipi-10rggb,bayer-mipi-10bggr,yuv422sp,bayer-ideal-qcom-10grbg, picture-format=jpeg, picture-size-values=2048x1536,2048x1232,2048x1152,1600x1200,1280x960,1280x720,960x720,800x480,640x480, picture-size=2048x1536, preferred-preview-size-for-video=640x480, preview-flip=off, preview-format-values=yuv420sp,yuv420p, preview-format=yuv420sp, preview-fps-range-values=(7000,30000), preview-fps-range=7000,30000, preview-frame-rate-values=15,30, preview-frame-rate=30, preview-size-values=1024x768,1024x576,800x480,720x480,640x480,320x240,176x144, preview-size=1024x768, qc-camera-features=30, qc-max-num-requested-faces=2, raw-size=2048x1536, recording-hint=false, redeye-reduction-values=enable,disable, redeye-reduction=disable, rotation=0, saturation-step=1, saturation=5, sce-factor-step=10, scene-detect-values=off,on, scene-detect=off, selectable-zone-af-values=, selectable-zone-af=auto, sharpness-step=6, sharpness=12, shot-mode=0, skinToneEnhancement-values=enable,disable, skinToneEnhancement=0, smart-screen-exposure-values=vision-ae-normal,vision-ac-backlight, smart-screen-exposure=0, smooth-zoom-supported=false, snapshot-picture-flip=off, supported-live-snapshot-sizes=2048x1536,2048x1152,1920x1080,1600x1200,1440x1080,1280x768,1280x720,1024x768,800x600,800x480,800x450,720x480,640x480,352x288,320x240,176x144, supported-shot-modes=normal-shot,panorama-burst, touch-af-aec-values=touch-off,touch-on, touch-af-aec=touch-off, vertical-view-angle=42.9, video-flip=off, video-frame-format=yuv420sp, video-hfr-values=, video-hfr=off, video-size-values=640x480,1280x720,720x480,320x240,176x144, video-size=640x480, video-snapshot-supported=true, video-stabilization-supported=false, vtmode=0, whitebalance-values=auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight,twilight,shade, whitebalance=auto, zoom-supported=false,
05-28 05:04:37.862 D/Util (18486): Parameters: zsl-values=off,on, zsl=on]
05-28 05:04:38.154 W/ActivityManager(843): Activity pause timeout for ActivityRecord{50208bb u0 org.cyanogenmod.snap/com.android.camera.CameraLauncher t168 f}
05-28 05:04:38.212 I/InputReader(843): Reconfiguring input devices. changes=0x00000004
05-28 05:04:38.213 I/InputReader(843): Device reconfigured: id=2, name='sec_touchscreen', size 1280x800, orientation 0, mode 1, display id 0
05-28 05:04:38.213 I/InputReader(843): Reconfiguring input devices. changes=0x00000004
05-28 05:04:38.221 I/ActivityManager(843): Config changes=480 {1.0 ?mcc?mnc es_US ldltr sw800dp w1280dp h728dp 160dpi xlrg land finger -keyb/v/h -nav/h s.10 themeResource=null}
05-28 05:04:38.279 D/Launcher(3759): bindAppWidget: AppWidget(id=9)
05-28 05:04:38.279 D/Launcher(3759): bindAppWidget: id=9 belongs to component ComponentInfo{com.devexpert.weather/com.devexpert.weather.view.WidgetWeather4x3}
05-28 05:04:38.393 D/Launcher(3759): bound widget id=9 in 113ms
05-28 05:04:38.498 D/Event (3634): No subscribers registered for event class com.google.android.apps.muzei.event.SwitchingPhotosStateChangedEvent
05-28 05:04:38.498 D/Event (3634): No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
05-28 05:04:38.498 D/Event (3634): No subscribers registered for event class com.google.android.apps.muzei.event.ArtworkSizeChangedEvent
05-28 05:04:38.498 D/Event (3634): No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
05-28 05:04:38.522 D/Event (3634): No subscribers registered for event class com.google.android.apps.muzei.event.WallpaperSizeChangedEvent
05-28 05:04:38.522 D/Event (3634): No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
05-28 05:04:38.526 I/WindowManager(843): Screen frozen for +364ms due to Window{f93bd12 u0 com.google.android.apps.muzei.MuzeiWallpaperService}
05-28 05:04:38.556 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:38.556 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:38.557 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:38.583 I/ActivityManager(843): Killing 12613:com.termux/u0a126 (adj 15): empty #17
05-28 05:04:38.611 D/GraphicsStats(843): Buffer count: 9
05-28 05:04:38.659 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:38.660 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.641 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.641 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.642 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.676 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.676 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.699 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.700 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.703 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:39.720 I/ActivityManager(843): START u0 {act=com.android.systemui.recents.SHOW_RECENTS flg=0x10804000 cmp=com.android.systemui/.recents.RecentsActivity} from uid 10019 on display 0
05-28 05:04:40.126 D/Event (3634): No subscribers registered for event class com.google.android.apps.muzei.event.SwitchingPhotosStateChangedEvent
05-28 05:04:40.127 D/Event (3634): No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
05-28 05:04:40.127 D/Event (3634): No subscribers registered for event class com.google.android.apps.muzei.event.SwitchingPhotosStateChangedEvent
05-28 05:04:40.127 D/Event (3634): No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
05-28 05:04:40.127 D/Event (3634): No subscribers registered for event class com.google.android.apps.muzei.event.ArtworkSizeChangedEvent
05-28 05:04:40.127 D/Event (3634): No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
05-28 05:04:40.537 I/art (843): Starting a blocking GC Explicit
05-28 05:04:40.666 I/art (843): Explicit concurrent mark sweep GC freed 6864(382KB) AllocSpace objects, 4(152KB) LOS objects, 33% free, 14MB/21MB, paused 5.235ms total 120.644ms
05-28 05:04:41.183 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:41.183 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:41.184 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:41.227 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:41.227 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:41.251 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:41.251 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:41.751 D/Event (3634): No subscribers registered for event class com.google.android.apps.muzei.event.SwitchingPhotosStateChangedEvent
05-28 05:04:41.751 D/Event (3634): No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
05-28 05:04:42.754 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:42.754 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:42.754 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:42.815 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:42.815 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:42.841 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:42.841 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:42.876 D/NetlinkSocketObserver(843): NeighborEvent{elapsedMs=2036146, 20.0.0.1, [4C5E0CEB1B5B], RTM_NEWNEIGH, NUD_STALE}
05-28 05:04:42.926 I/Process (18486): Sending signal. PID: 18486 SIG: 9
05-28 05:04:42.950 D/GraphicsStats(843): Buffer count: 8
05-28 05:04:42.955 I/Sensors (843): SensorBase::batch handle(0), flags(0), period_ns(66667000), timeout(0)
05-28 05:04:42.955 I/Sensors (843): Accelerometer setDelay: mEnabled 1, handle 0, delay_ns 66667000
05-28 05:04:42.956 I/WindowState(843): WIN DEATH: Window{2ad1368 u0 org.cyanogenmod.snap/com.android.camera.CameraLauncher}
05-28 05:04:42.957 W/InputDispatcher(843): channel 'bddacaa org.cyanogenmod.snap/com.android.camera.CameraLauncher (server)' ~ Consumer closed input channel or an error occurred. events=0x9
05-28 05:04:42.957 E/InputDispatcher(843): channel 'bddacaa org.cyanogenmod.snap/com.android.camera.CameraLauncher (server)' ~ Channel is unrecoverably broken and will be disposed!
05-28 05:04:42.959 I/Sensors (843): SensorBase::batch handle(0), flags(0), period_ns(66667000), timeout(0)
05-28 05:04:42.959 I/Sensors (843): Accelerometer setDelay: mEnabled 1, handle 0, delay_ns 66667000
05-28 05:04:42.960 I/WindowState(843): WIN DEATH: Window{8c96f3f u0 SurfaceView}
05-28 05:04:42.963 I/WindowState(843): WIN DEATH: Window{bddacaa u0 org.cyanogenmod.snap/com.android.camera.CameraLauncher}
05-28 05:04:42.963 W/InputDispatcher(843): Attempted to unregister already unregistered input channel 'bddacaa org.cyanogenmod.snap/com.android.camera.CameraLauncher (server)'
05-28 05:04:42.965 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:42.982 I/ActivityManager(843): Process org.cyanogenmod.snap (pid 18486) has died
05-28 05:04:43.067 W/AppOps (843): Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
05-28 05:04:44.378 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:44.378 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:44.379 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:44.428 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:44.428 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:44.559 V/PhoneStatusBar(3214): setLightsOn(true)
05-28 05:04:44.739 V/PhoneStatusBar(3214): setLightsOn(true)
05-28 05:04:45.735 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:45.735 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:45.735 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:45.801 D/PowerHAL(843): power_hint: no power profile selected yet
05-28 05:04:45.802 D/PowerHAL(843): power_hint: no power profile selected yet