• About
  • Advertise
  • Privacy Policy
  • Contact
Android Kenya
  • Home
  • News
  • Apps
  • Gadgets
  • Reviews
  • Deals
  • How To
  • Knowledge Base
No Result
View All Result
  • Home
  • News
  • Apps
  • Gadgets
  • Reviews
  • Deals
  • How To
  • Knowledge Base
No Result
View All Result
Android Kenya
No Result
View All Result
Home News

Android 13 to add support for adjusting the flashlight’s brightness

Naftaly Kariuki by Naftaly Kariuki
March 3, 2022
in News
0
Android 13 Preview: What is new?
FacebookTwitterWhatsApp

Mobile LED flashes have become a staple on virtually all Android smartphones. If your smartphone has a rear camera, chances are it also has an LED flash module. This LED flash is designed to light up objects in low light to get better shots of them, but it can also double up as a general-purpose flashlight applicable in various use cases.

For the longest time, since they were introduced, you could only turn them off or on with no fine-tuning in between the two states by varying how much light is outputted by the flashlight. However, this will be changing with the release of Android 13 later this year.

Android 13 is adding a few APIs that among them contain the “getTorchStrengthLevel” and “turnOnTorchWithStrengthLevel” methods which will be added to the “CameraManager” class. As indicated by their names, The first method will be responsible for returning the brightness level of the LED flash, while the second method sets the brightness level of the LED flash from a minimum of “1” to a maximum determined by the hardware.

READ:  Android 13 Preview: What is new?

In the previous Android versions, the flashlight could only be toggled on or off by use of the “setTorchMode” API. The introduction of these new APIs in Android 13 will make it possible for apps to be able to fine-tune the flashlight’s brightness with more finesse and accuracy.

However, despite the introduction, not all devices running Android 13 will be able to use the feature. If an application needs to use the feature, it will first use the “CameraCharacteristics.FLASH_INFO_STRENGTH_MAXIMUM_LEVEL” command to check whether a value greater than “1” is returned.

If the value that is returned is greater than 1, then the brightness range will be between 1 and that value, however, if 1 is returned, then the device’s hardware does not allow for fine-tuning of its LED brightness level.

It is not necessarily a matter of powerful hardware that will support LED brightness tuning and less powerful ones will not, the reason is that the feature will require an update to the camera hardware abstraction layer (HAL) before a device can gain the new functionality. The HAL is the software that is located between the OS, Android in this case, and the underlying hardware. It forms a bridge between the hardware and the apps you interact with

In order for Android 13 to control the level of the flashlight’s brightness, an update for the HAL is required to make it possible for the OS to make commands directly to the hardware controlling the amount of brightness that is produced.

Since many OEMs do not develop HAL on their own but rather depend on sourcing the OS from different vendors before they can implement it in their devices, it only leaves manufacturers like Google with their Pixel line up to be the first to introduce the feature while other manufacturers will follow suit down the line once an update to the HAL has been rolled out.

For comparison, Apple, who have total control over both the hardware and software running on their iPhones, have had the feature to control the brightness level of their flashlights for years now, but it is better late than never for Android.

Join our Telegram channel
Previous Post

The Oppo Pad is the company’s first attempt at a tablet, will it succeed?

Next Post

Snapdragon version of the Samsung Galaxy S22 Ultra massively outperforms Exynos variant

Related Posts

News

This website lets you know whether your device will get an Android update

August 29, 2023
Nokia G20 starts selling in Kenya
News

Nokia G20 receiving Android 13 update in Kenya

April 21, 2023
Android 13 Beta 1 is live, here’s all you need to know about it
News

Over 12% of Android smartphones and tablets now running Android 13

April 18, 2023
Next Post
Samsung Galaxy S22 series announced, available for pre-order in Kenya on March 1st

Snapdragon version of the Samsung Galaxy S22 Ultra massively outperforms Exynos variant

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe to our newsletter

  • Trending
  • Comments
  • Latest
XAI-Grok

Trend of Grok users digitally undressing women on X sparks backlash

May 5, 2025
Redmi-Note-13-4G

Redmi Note 13 series guaranteed 4 years of Android software updates until 2028

January 30, 2024

Oppo A60 review: Rugged darling

June 10, 2024
Tecno Spark 3 Pro-10

How to fix OTG connected pop-up error on Tecno phones

July 28, 2019
XAI-Grok

Trend of Grok users digitally undressing women on X sparks backlash

0
Telegram-Android-Kenya

Telegram rolls out encrypted group calls, business automation, and gift upgrades

0
Oppo-A5-Pro-in-Kenya

Here’s the global average selling price of Android phones vs iPhones in Q1 2025

0
Vivo-X200-Pro

Vivo is Android’s revenue champion in Q1 2025, Samsung and Xiaomi hold ground on shipments

0
XAI-Grok

Trend of Grok users digitally undressing women on X sparks backlash

May 5, 2025
Telegram-Android-Kenya

Telegram rolls out encrypted group calls, business automation, and gift upgrades

May 5, 2025
Oppo-A5-Pro-in-Kenya

Here’s the global average selling price of Android phones vs iPhones in Q1 2025

May 5, 2025
Vivo-X200-Pro

Vivo is Android’s revenue champion in Q1 2025, Samsung and Xiaomi hold ground on shipments

May 5, 2025
  • About
  • Advertise
  • Privacy Policy
  • Contact

© 2025 Android Kenya

No Result
View All Result

© 2025 Android Kenya