Benjamin-Loison / android

0 stars 0 forks source link

Control torch intensity #92

Open Benjamin-Loison opened 2 weeks ago

Benjamin-Loison commented 2 weeks ago

https://crdroid.net does not mention it.

Holding Quick Settings tile does not help.

Search settings flashlight does not help.

+3

Benjamin-Loison commented 2 weeks ago

https://wiki.termux.com/wiki/Termux:API

only mentions

https://wiki.termux.com/wiki/Termux-torch

which has a boolean argument.

termux-torch
Illegal param count
Usage: termux-torch [on | off]
Toggle LED Torch on device
termux-torch --help
Illegal parameter: --help
Usage: termux-torch [on | off]
Toggle LED Torch on device
Benjamin-Loison commented 2 weeks ago

https://9to5google.com/2022/03/01/android-13-flashlight-brightness-control/ seems implementation precise. I can build and run an app to check how many brightness steps is available on Fairphone 4 (if more than 2 states).

Could also investigate F-Droid apps.

Benjamin-Loison commented 2 weeks ago

On Fairphone 4 LineageOS:

image

https://f-droid.org/packages/com.pdb82.flashlighttiramisu/

Flashlight-Tiramisu

https://www.xda-developers.com/adjust-flashlight-brightness-android-13-devices/

Benjamin-Loison commented 2 weeks ago

https://github.com/polodarb/Flashlight-Tiramisu/issues/10

https://forum.fairphone.com/t/support-the-a13-flashlight-brightness-apis-for-the-fp4/101790 does not help.

Benjamin-Loison commented 2 weeks ago

flashdim/blob/e77d4883b9475380e2d4082c2be4577a6183a9ae/README.md?plain=1#L228 describes Fairphone 4 as not supported for https://f-droid.org/packages/com.cyb3rko.flashdim/.

Benjamin-Loison commented 2 weeks ago

I do not understand https://github.com/polodarb/Flashlight-Tiramisu/issues/10#issuecomment-1776306151

Benjamin-Loison commented 1 week ago

DuckDuckGo and Google first page results for Flashlight brightness Fairphone 4 does not bring more interesting results. I guess the feature should be added at the firmware level, is Fairphone 4 firmware open-source?

https://github.com/WeAreFairphone

The following 2 repositories seem to be the only ones concerning Fairphone 4:

WeAreFairphone/android_device_fairphone_FP4)

WeAreFairphone/android_kernel_fairphone_sm7225

Benjamin-Loison commented 1 week ago

Is there a native (i.e. without additional app) LineageOS flashlight variable brightness controller for compatible phones?