Skip to main content

Android 13 May Finally Let Users Control the Flashlight Level on Their Phones


Early last month, Google announced the first development preview version of the upcoming Android version, Android 13, which brought with it many new features, both at the system interface level and in application programming interfaces, to enable users to customize the Android experience on their devices more freely, and providing new possibilities for developers to create and develop innovative applications and services to enrich the users' experience and make their lives easier. 

Among the many APIs in Android 13, Mishaal Rahman from esper, discovered that the next version of Android has two new APIs getTorchStrengthLevel and turnOnTorchWithStrengthLevel. The first API returns the LED flash brightness level, while the second one sets the flash brightness level LED from a minimum of ‘1’ to a maximum determined by the device hardware. 

These two APIs can be exploited by developers to create apps that control flash brightness level in Android smartphones, while previously, apps could only turn the flashlight on or off using the setTorchMode API. 


However, not all devices running Android 13 will be able to get this feature, as it requires an update of the Camera Hardware Abstraction Layer (HAL) to version 3.8.  

Although this sounds simple, manufacturers may not update HAL for their devices since Google allows them to freeze the version of HAL for up to three generations from the Android version that the device comes with, under what is called “the Google Requirements Freeze program”. 

To make it more clear, suppose that a company releases a phone with Android 11 and HAL version 3.7, this company will be able to release Android 12, 13, and 14 updates for the phone without the need to update the HAL to a higher version (necessarily, it can update it, But it is not forced to do so), which means, for example, that this phone will not support the flash level control feature that we are talking about here, although it will receive an update to Android 13 and even Android 14. 


It is not yet clear which of the current Android phones will support this feature, but most likely, phone manufacturers will update the HAL on their flagship phones released this year at least (if desired) to support Flash control. 

Finally, it should be noted that the flash level control feature, unlike Android, is not something new for iPhone owners, as Apple has integrated it into its devices since the first versions of its mobile operating system, iOS. 

Comments

Popular posts from this blog

DEKUVE Colors 0.1 is a beautiful and promising Linux distro based on Debian

As we said in a previous article, the most important characteristic of GNU Linux operating systems is its versatility, as there is a Linux distribution for everything and every taste and all types and specifications of hardware, it is an operating system that you can run in everything, whatever it is or is. Most of these distributions are derived or based from one of these parent distributions: Debian (like Ubuntu, Linux Mint, MX Linux...), Arch Linux (like Manjaro, EndeavourOS, Garuda Linux...), and Red Hat Enterprise Linux aka RHEL (like Fedora, CentOS, ClearOS...).  These derivative distributions are also divided into two types: the first one, where developers take the base of one of the other Linux distributions and build their distribution on it, by adding their packages and desktop environment, such as a Linux Mint distribution, for example, which develops the Cinnamon desktop interface and uses it in its main release, or uses a desktop interface already exists as Manjaro do, whi

Deepin Linux 20.2.2 Released With A Brand-New App Store, Android Apps Support, And More

The developers of the Chinese distribution of GNU Linux, Deepin, based on the stable version of Debian, announced the availability of a new version of the most beautiful distribution in the Linux world.  Deepin OS version 20.2.2 brings a set of new features and bug fixes for various components and components of the operating system to improve system consistency and stability and enhanced the overall user experience.  As usual for most Chinese projects, despite its useful features and beautiful design, Deepin Linux distribution suffers from a partial lack of translation into foreign languages, so we find some core operating system applications and components are in the Chinese language, and this is unfortunate, and we hope to be fixed in the Next versions of this beautiful Linux distro.  The first great and new feature in Deepin Linux 20.2.2, is that the OS comes now with Secure Boot support.  Secure Boot is a security standard developed by members of the PC industry to help ensure that

Rufus 3.18 Beta Adds The Bypass Of Windows 11 Restrictions To In-place Upgrades

A new beta version of the Rufus installation images burning tool was recently released with several new features, the most important of which is the ability to bypass Windows 11 restrictions for in-place upgrades. Rufus is a free and open-source tool that helps create bootable USB flash drives from ISO images. It supports most Linux distributions, in addition to Windows, and to MS-DOS compatible operating systems. This tool supports burning Windows installation images, from Windows XP SP2 and above, including the recently released Windows 11. After the release of Windows 11, Microsoft announced an update to the minimum specifications required to install the new system, the most important of which is that the computer must have a modern processor, TPM 2.0, and it must support secure boot too, to be compatible with Windows 11.  Many users did not like this, which made Microsoft allow Windows 11 to be installed on non-compatible devices by making some modifications in the system registry.