How to automatically switch Android themes using your ambient light sensor


System-wide dark mode is an awesome Android feature, but it’s not perfect. One of the big limitations is automation—your options are a rigid schedule or sunrise/sunset. With a simple app, you can make dark mode (and light mode) switch with the lighting around you.

The app is called “Adaptive Theme: Auto Dark Mode,” and while it’s not as simple as toggling a switch, you can set it up in less than two minutes. All you need is a USB cable and a secondary device with the Chrome browser (it can even be another Android phone). Let’s get started.

Automatically switch Android’s dark mode using your light sensor

It’s easier than you might think

Begin by downloading “Adaptive Theme: Auto Dark Mode” from the Play Store on your Android device. Open the app and tap “Start Setup.” The first thing you need to do is enable Developer Options if you haven’t already—tap “Open Settings” to do so. Once that’s done, you’ll need to enable “USB Debugging” in the Developer Options.

Next, you need a second device with a Chromium-based browser. This can be a PC or another Android device, and Chrome or Microsoft Edge will work. Connect the devices with a USB cable and tap “Continue” in the app. You’ll be instructed to go to lexip.dev/setup on the secondary device.

Once you’re on the setup page in the browser on your secondary device, select “Start Setup.” A pop-up menu with available devices will appear—choose your phone and “Connect.” You’ll be asked to “Allow USB debugging” on your primary device. Then, back in the browser, select “Grant Permission,” and you’re all ready to go.

Illustration of Android Developer Options with a large Android mascot head in the center, surrounded by various toggle options, all set against a blue background with two large brackets on each side.


Every Android Developer Option Explained

Modern Android phones hide a menu called Developer Options. Most people never touch it. But if you’ve ever wanted to understand what your phone is doing under the hood, this is where you look.

Customizing the lighting threshold

Decide the brightness levels for dark and light mode

After the setup process is done, you’ll be kicked back to the main screen in the Adaptive Theme app. Toggle it on if it’s not already. Now, it’s time to decide how the themes will switch with the “Brightness Threshold” slider. A higher threshold means dark mode will be enabled in most conditions, whereas lowering the threshold makes it easier for light mode to be enabled.

The “Current Brightness” scale shows the real-time ambient brightness—use this to figure out when you might want light mode to kick in. Simply find somewhere with ambient lighting that’s bright enough for when you want light mode, then match the slider to that Lux number. Tap the three-dot menu in the top right to enter “Custom threshold.”

One thing to keep in mind is the second sentence on the app’s main screen:

Changes only occur immediately after the screen is turned on, provided the sensor is not covered.

This means you won’t see the theme change instantly while using your phone. The app takes a reading from the light sensor when you wake the screen, and then the theme is adjusted accordingly. However, the theme doesn’t change if the light sensor is covered.

That’s it! You just have to decide if you want a primarily dark or light experience. Personally, I prefer light mode unless it’s almost completely pitch dark. So, my threshold is set to 30 lx. However, if you prefer dark mode except under direct sunlight, you’d want a threshold more like 1,000 lx. Now you have the power to choose how it works!

  • Pixel 10

    Brand

    Google

    SoC

    Google Tensor G5

    Display

    6.3-inch Actua OLED, 20:9

    RAM

    12 GB RAM

    Storage

    128 GB / 256 GB

    Battery

    4970mAh

    Looking to upgrade to a Pixel but not sure if you need all the bells and whistles of the more expensive models? You won’t be disappointed with the standard Pixel 10 model. Coming in striking colors, Gemini features, and seven years of updates, you can’t go wrong with this purchase.


  • S26 product image

    SoC

    Snapdragon 8 Elite Gen 5

    Display

    6.3-inch Dynamic AMOLED 2x

    RAM

    12 GB

    Storage

    256 or 512 GB

    Battery

    4,300 mAh

    Operating System

    Android


Android mascot standing next to a smartphone, with a robotic arm holding a message icon on a conveyor belt.


9 Tasks You Can Automate on Your Android Phone

Not everything on your Android phone has to be turned on or off manually. You can automate many tasks on your phone, letting it do useful things on its own. Here are some useful automations to use on your device.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


The Windows Insider Program is about to get much easier

Ed Bott / Elyse Betters Picaro / ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET’s key takeaways

  • Microsoft is making the Insider Program less complicated.
  • Beta channel will be a more reliable preview of the next retail release.
  • Other changes will allow testers to quickly enable/disable new features.

Last month, Microsoft took official notice of its customers’ many complaints about Windows 11. Pavan Davaluri, the executive vice president who runs the Windows and Devices group, promised sweeping changes to Windows 11. Today, the company announced the first of those changes in a post authored by Alec Oot, who’s been the principal group product manager for the Windows Insider Program since January 2024.

Those changes will streamline the Insider program, which has lost sight of its original goals in the past few years. (For a brief history of the program and what had gone wrong, see my post from last November: “The Windows Insider Program is a confusing mess.”)

Also: If Microsoft really wants to fix Windows 11, it should do these four things ASAP

If you’re currently participating in the Windows Insider Program, these are meaningful changes. Here’s what you can expect.

Simplifying the Insider channel lineup

Throughout the Windows 11 era, signing up for the Insider program has required choosing one of four channels using a dialog in Windows Settings. Here’s what those options look like today on one of my test PCs.

insider-program-channels-lineup-old

The current Insider channel lineup is confusing, to say the least.

Screenshot by Ed Bott/ZDNET

Which channel should you choose? As the company admitted in today’s post, “the channel structure became confusing. It was not clear what channel to pick based on what you wanted to get out of the program.”

The new lineup consists of two primary channels: Experimental and Beta. The Release Preview channel will still be available, primarily for the benefit of corporate customers who want early access to production builds a few days before their official release. That option will be available under the Advanced Options section.

windows-insider-channel-lineup-new

This simplified lineup is easier to follow. Beta is the upcoming retail release, Experimental is for the adventurous.

Screenshot courtesy of Microsoft

Here’s Microsoft’s official description of what’s in each channel now, with the company’s emphasis retained:

  • Experimental replaces what were previously the Dev and Canary channels. The name is deliberate: you’re getting early access to features under active development, with the understanding that what you see may change, get delayed, or not ship at all. We’ve heard your feedback that you want to access and contribute to features early in development and this is the channel to do that.
  • Beta is a refresh of the previous Beta Channel and previews what we plan to ship in the coming weeks. The big change: we’re ending gradual feature rollouts in Beta. When we announce a feature in a Beta update and you take that update, you will have that feature. You may occasionally see small differences within a feature as we test variations, but the feature itself will always be on your device.

These changes will apply to the Windows Insider Program for Business as well.

Offering a choice of platforms

For those testers who want to tinker with the bleeding edge of Windows development, a few additional options will be available in the Experimental channel. These advanced options will allow you to choose from a platform that’s aligned to a currently supported retail build. Currently, that’s Windows 11 version 25H2 or 26H1, with the latter being exclusively for new hardware arriving soon with Snapdragon X2 Arm chips.

Also: Microsoft account vs. local account: How to choose

There will also be a Future Platforms option, which represents a preview build that is not aligned to a retail version of Windows. According to today’s announcement, this option is “aimed at users who are looking to be at the forefront of platform development. Insiders looking for the earliest access to features should remain on a version aligned to a retail build.”

windows-insider-advanced-options-new

The Future Platforms option is the equivalent of the current Canary channel

Screenshot courtesy of Microsoft

Minimizing the chaos of Controlled Feature Rollout

Last month, I urged Microsoft to stop using its Controlled Feature Rollout technology, especially for builds in the Beta channel. Apparently, someone in Redmond was listening.

One of the most common questions we receive from Insiders is “why don’t I have access to a feature that’s been announced in a WIP blog?” This is usually due to a technology called Controlled Feature Rollout (CFR), a gradual process of rolling out new features to ensure quality before releasing to wider audiences. These gradual rollouts are an industry standard that help us measure impact before releasing more broadly. But they also make your experience unpredictable and often mean you don’t get the new features that motivated many of you to join the Insider program to begin with.

Moving forward, Insider builds in the Beta channel will no longer suffer from this gradual rollout of features. Meanwhile, the company says, “Insiders in the Experimental channel will have a new ability to enable or disable specific features via the new Feature Flags page on the Windows Insider Program settings page.”

windows-insider-feature-flags

Builds in the Experimental channel will include the option to turn new features on or off.

Screenshot courtesy of Microsoft

Not every feature will be available from this list, but the intent is to add those flags for “visible new features” that are announced as part of a new Insider build.

Making it easier to change channels

The final change announced today is one I didn’t see coming. Historically, leaving the Windows Insider Program or downgrading a channel (from Dev to Beta, for example) has required a full wipe and reinstall. That’s a major hurdle and a big impediment to anyone who doesn’t have the time or technical skills to do that sort of migration.

Also: Why Microsoft is forcing Windows 11 25H2 update on all eligible PCs

Beginning with the new channel lineup, it should be easier to change channels or leave the program without jumping through a bunch of hoops.

To make this a more streamlined and consistent experience, we’re making some behind the scenes changes to enable Insider builds to use an in-place upgrade (IPU) to hop between versions. This will allow in most cases Insiders to move between Experimental, Beta, and Release Preview on the same Windows core version, or leave the program without a clean install. An IPU takes a bit more time than your normal update but migrates your apps, settings, and data in-place.

If you’ve chosen one of the future platforms from the Experimental channel, those options don’t apply. To move back to a supported retail platform, you’ll need to do a clean install.

Also: Apple, Google, and Microsoft join Anthropic’s Project Glasswing to defend world’s most critical software

The upshot of all these changes should make things a lot clearer for anyone trying to figure out what’s coming in the next big feature update. Beta channel updates, for example, should offer a more accurate preview of what’s coming in the next big feature update, so over the next month or two we should get a better picture of what’s coming in the 26H2 release, due in October.

When can we start to see those changes rolling out to the general public? Stay tuned.





Source link