[LineageOS Questions & Answers] KK2333:
Torch does not work.:crying:

How can I fix it?

Error code:

11-14 12:03:37.221 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
11-14 12:03:40.236 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
11-14 12:03:41.490 432-435/? E/ANDR-PERF-OPTSHANDLER: Sched boost lock is already acquired, concurrency is not supported for this resource
11-14 12:03:41.490 432-435/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 3, 0]
11-14 12:03:43.249 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
11-14 12:03:46.264 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats

[ 11-14 12:03:47.008 535: 535 E/ ]
open camera flash failed
11-14 12:03:47.008 535-535/? E/CameraService: setTorchMode: Setting torch mode of camera "0" to 0 failed: Invalid argument (-22)
11-14 12:03:47.014 1693-1920/com.android.systemui E/FlashlightController: Couldn't set torch mode
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): setTorchMode:1449: Setting torch mode of camera "0" to 0 failed: Invalid argument (-22)
at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:702)
at android.hardware.camera2.CameraManager$CameraManagerGlobal.setTorchMode(CameraManager.java:970)
at android.hardware.camera2.CameraManager.setTorchMode(CameraManager.java:563)
at com.android.systemui.statusbar.policy.FlashlightController.setFlashlight(FlashlightController.java:119)
at com.android.systemui.qs.tiles.FlashlightTile.handleClick(FlashlightTile.java:88)
at com.android.systemui.qs.QSTile.handleSecondaryClick(QSTile.java:244)
at com.android.systemui.qs.QSTile$H.handleMessage(QSTile.java:382)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: android.os.ServiceSpecificException: setTorchMode:1449: Setting torch mode of camera "0" to 0 failed: Invalid argument (-22)
at android.os.Parcel.readException(Parcel.java:1698)
at android.os.Parcel.readException(Parcel.java:1637)
at android.hardware.ICameraService$Stub$Proxy.setTorchMode(ICameraService.java:497)
at android.hardware.camera2.CameraManager$CameraManagerGlobal.setTorchMode(CameraManager.java:968)
at android.hardware.camera2.CameraManager.setTorchMode(CameraManager.java:563)*
at com.android.systemui.statusbar.policy.FlashlightController.setFlashlight(FlashlightController.java:119)*
at com.android.systemui.qs.tiles.FlashlightTile.handleClick(FlashlightTile.java:88)*
at com.android.systemui.qs.QSTile.handleSecondaryClick(QSTile.java:244)*
at com.android.systemui.qs.QSTile$H.handleMessage(QSTile.java:382)*
at android.os.Handler.dispatchMessage(Handler.java:102)*
at android.os.Looper.loop(Looper.java:154)*
at android.os.HandlerThread.run(HandlerThread.java:61)*
11-14 12:03:49.284 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
11-14 12:03:52.312 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats

My device is Coolpad Changer S1. C105's info: Snapdragon 821, 4g ram, 64g rom, etc. C105 is similar to zl1 except its appearance. For more information, you can google "LeShi and Coolpad". C105 can use zl1's ROM when C105 uses zl1's aboot firmware.

Torch works well:

1. official lineageos rom, such as lineage-14.1-20171111-nightly-zl1-signed.zip.

2. unofficial lineageos rom, such as lineage-14.1-20171113_161359-UNOFFICIAL-zl1.zip, which is built by myself without replacing the keyword "zl1" with "ares" in some makefiles.

Torch doesn't work:

1. unofficial lineageos rom, such as lineage-14.1-20171113_161359-UNOFFICIAL-ares.zip, which is built by myself and I replace the keyword "zl1" with "ares" in all makefiles. For more details, you can view the source codes.

Source codes:

It is a pity that I'm a new user and can't post post outside links. Please add headers by yourself.

1. github.com/KK666666/local_manifests.git

2.github.com/KK666666/android_device_coolpad_ares.git

3. github.com/KK666666/android_device_coolpad_msm8996-common.git

4. github.com/KK666666/android_vendor_leeco_ares.git

5. github.com/KK666666/android_vendor_leeco_msm8996-common.git

I like lineageos very much!