polodarb / Flashlight-Tiramisu

An application that allows you to smoothly adjust the brightness of the flashlight on some devices on Android 13+
Apache License 2.0
160 stars 9 forks source link

Reports unsupported on supported device. #10

Open RokeJulianLockhart opened 10 months ago

RokeJulianLockhart commented 10 months ago

https://forum.fairphone.com/t/support-the-a13-flashlight-brightness-apis-for-the-fp4/101790/7?u=rokejulianlockhart

polodarb commented 10 months ago

Information about device support is returned by the API itself, so if it writes that there is no support, there is nothing you can do about it

RokeJulianLockhart commented 10 months ago

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

Yet, per https://github.com/polodarb/Flashlight-Tiramisu/issues/10#issue-1956350451, @polodarb, https://forum.fairphone.com/t/support-the-a13-flashlight-brightness-apis-for-the-fp4/101790/7?u=rokejulianlockhart explains that https://f-droid.org/packages/com.cyb3rko.flashdim/ is able to do so.

polodarb commented 10 months ago

FlashDim will simply allow you to turn the flashlight on and off, but not change the brightness if your phone does not support it

RokeJulianLockhart commented 10 months ago

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

@polodarb, the relevant A13 API reports a brightness of 1 (rather than the min 0 to max 256 range supported) so this should be able to handle it even if there's no variable brightness to speak of. Do you mean instead that the FP4 doesn't report support for this API whatsoever?