[Miscellaneous Android Development] forumber2:
CyanogenMod 12.1 (Android 5.1.1) for ZTE Blade Vec (4G)

Bugs

- Camera not working at all.

- CPU-Z application doesn't start and causes sensor failure.

- Sensors stops working randomly, and fixes itself randomly too.

- If the screen turns off while call, there's no way to turn it on unless end the call.

- Maybe more? You tell me.

How to flash

First of all, you need TWRPv2.8.7.0 installed for your device.

- Just do factory reset and flash the zip via TWRP. No need to flash gapps, included already.

Download: http://d-h.st/KFIp

Technical details for bugs

- For camera; All libraries loads successfully, but when I try to access the camera, it crashes. There's something wrong while setting parameters during startup. Here's the log;

E/QCameraParameters( 234): Invalid preview size requested: -1x-1
E/QCameraParameters( 234): No Record Size requested, use the preview dimensions
E/QCameraParameters( 234): Invalid video size requested: -1x-1
E/QCameraParameters( 234): Invalid picture size requested: -1x-1
E/QCameraParameters( 234): Invalid preview format value: NULL
E/QCameraParameters( 234): Invalid picture format value: NULL
D/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setJpegThumbnailSize(const qcamera::QCameraParameters&): Could not find optimal size
E/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setJpegQuality(const qcamera::QCameraParameters&): Invalid jpeg quality=-1
E/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setJpegQuality(const qcamera::QCameraParameters&): Invalid jpeg thumbnail quality=-1
D/QCameraParameters( 234): Param m_bNoDisplayMode = 0
E/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): FpsRange Values:(7500, 30000)
E/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): Requested FpsRange Values:(-1, -1)
E/QCameraParameters( 234): bool qcamera::QCameraParameters::UpdateHFRFrameRate(const qcamera::QCameraParameters&): CameraParameters - : minFps = 7500, maxFps = 30000
E/QCameraParameters( 234): bool qcamera::QCameraParameters::UpdateHFRFrameRate(const qcamera::QCameraParameters&): Requested params - : minFps = -1, maxFps = -1
E/QCameraParameters( 234): bool qcamera::QCameraParameters::UpdateHFRFrameRate(const qcamera::QCameraParameters&): prevHfrStr - off, hfrStr = (null)
E/QCameraParameters( 234): HFR mode is OFF
E/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): UpdateHFRFrameRate 0
E/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setPreviewFpsRange(const qcamera::QCameraParameters&): error: FPS range value not supported
D/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setBrightness(const qcamera::QCameraParameters&): Brigtness not set by App
E/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setZoom(const qcamera::QCameraParameters&): invalid value -1 out of (0, 60)
D/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setSharpness(const qcamera::QCameraParameters&): Sharpness not set by App
D/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setSaturation(const qcamera::QCameraParameters&): Saturation not set by App
D/QCameraParameters( 234): int32_t qcamera::QCameraParameters::setContrast(const qcamera::QCameraParameters&): Contrast not set by App
--------- beginning of crash
F/libc ( 234): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 1226 (Binder_2)
I/DEBUG ( 231): property debug.db.uid not set; NOT waiting for gdb.
I/DEBUG ( 231): HINT: adb shell setprop debug.db.uid 100000
I/DEBUG ( 231): HINT: adb forward tcp:5039 tcp:5039
I/DEBUG ( 231): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 231): Build fingerprint: 'zte/cm_bladevec4g/unknown:5.1.1/LVY48C/57ccd15130:userdebug/test-keys'
I/DEBUG ( 231): Revision: '0'
I/DEBUG ( 231): ABI: 'arm'
I/DEBUG ( 231): pid: 234, tid: 1226, name: Binder_2 >>> /system/bin/mediaserver <<<
I/DEBUG ( 231): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
I/DEBUG ( 231): r0 00000000 r1 b6b0d320 r2 00000067 r3 00000001
I/DEBUG ( 231): r4 b5f73e04 r5 00000000 r6 ffffffff r7 00000000
I/DEBUG ( 231): r8 b3504b30 r9 b74ad624 sl b74ada30 fp b3504dd0
I/DEBUG ( 231): ip b6b0d320 sp b3504ae8 lr b5f61577 pc b6deb274 cpsr a00f0010
I/DEBUG ( 231):
I/DEBUG ( 231): backtrace:
I/DEBUG ( 231): #00 pc 00010274 /system/lib/libc.so (strcmp+48)
I/DEBUG ( 231): #01 pc 0002f573 /system/lib/hw/camera.msm8226.so (qcamera::QCameraParameters::setFocusMode(qcamera::QCameraParameters const&)+50)
I/DEBUG ( 231): #02 pc 000315a7 /system/lib/hw/camera.msm8226.so (qcamera::QCameraParameters::updateParameters(qcamera::QCameraParameters&, bool&)+382)
I/DEBUG ( 231): #03 pc 0001cf0b /system/lib/hw/camera.msm8226.so (qcamera::QCamera2HardwareInterface::updateParameters(char const*, bool&)+66)
I/DEBUG ( 231): #04 pc 00021071 /system/lib/hw/camera.msm8226.so (qcamera::QCameraStateMachine::procEvtPreviewStoppedState(qcamera::qcamera_sm_evt_enum_t, void*)+196)
I/DEBUG ( 231): #05 pc 0002283d /system/lib/hw/camera.msm8226.so (qcamera::QCameraStateMachine::smEvtProcRoutine(void*)+136)
I/DEBUG ( 231): #06 pc 0001552b /system/lib/libc.so (__pthread_start(void*)+38)
I/DEBUG ( 231): #07 pc 0001252b /system/lib/libc.so (__start_thread+10)
I/DEBUG ( 231):
I/DEBUG ( 231): Tombstone written to: /data/tombstones/tombstone_04

- for CPU-Z; Sensor causing hang up the application.

- for Sensors; I really don't know what's the problem. I think we need a better sensor hal. I'll provide a log for this soon.

- for Calls; Proximity sensor doesn't report 0, or system can't get it.

Source

https://github.com/forumber