• 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
Google Pay Is Finally Working in Kenya, But There Is a Catch

Google Pay Is Finally Working in Kenya, But There Is a Catch

October 7, 2026
Infinix Hot 30 review: Budget excellence

Infinix Hot 30 review: Budget excellence

November 17, 2023
My-Airtel-app

Airtel confirms it’s working on offline mode for My Airtel app

January 16, 2025
Android devices victims of preinstalled malware, new report shows

Tool that added Google Play to Windows 11 secretly installed malware

April 21, 2022
WhatsApp Now Lets You Call People Who Don’t Have an Account

WhatsApp Now Lets You Call People Who Don’t Have an Account

0
Google Pay Is Finally Working in Kenya, But There Is a Catch

Google Pay Is Finally Working in Kenya, But There Is a Catch

0
Samsung Galaxy Tab S12 Series Gets Major Upgrades, But There Is a Catch

Samsung Galaxy Tab S12 Series Gets Major Upgrades, But There Is a Catch

0
Samsung Galaxy SmartTag3 Can Track Your Stuff for More Than Two Years

Samsung Galaxy SmartTag3 Can Track Your Stuff for More Than Two Years

0
WhatsApp Now Lets You Call People Who Don’t Have an Account

WhatsApp Now Lets You Call People Who Don’t Have an Account

October 14, 2026
Google Pay Is Finally Working in Kenya, But There Is a Catch

Google Pay Is Finally Working in Kenya, But There Is a Catch

October 7, 2026
Samsung Galaxy Tab S12 Series Gets Major Upgrades, But There Is a Catch

Samsung Galaxy Tab S12 Series Gets Major Upgrades, But There Is a Catch

September 30, 2026
Samsung Galaxy SmartTag3 Can Track Your Stuff for More Than Two Years

Samsung Galaxy SmartTag3 Can Track Your Stuff for More Than Two Years

September 30, 2026
  • About
  • Advertise
  • Privacy Policy
  • Contact

© 2026 Android Kenya

No Result
View All Result

© 2026 Android Kenya