Yahoo
Skip to main content
Advertisement
Advertisement
Advertisement
Advertisement

4 things your phone secretly does only while it's charging at night

Android phone charging on a bedside wireless charger while a person sleeps.
Lucas Gouveia / Android Police | New Africa / Shutterstock

About a decade ago, if you plugged your phone in to charge overnight, it did nothing but do just that. It would steadily spike to 100% and keep baking the battery at max voltage the rest of the night.

The point is that the smartphone in its idle state at night, plugged in and online, wasn't any different from charging it during the rest of the day. That's no longer true.

For one, Android phones have widely adopted "smart" charging systems .

Advertisement
Advertisement

When a phone is held at 100% for hours under maximum voltage and heat, it degrades the battery inside it.

Modern charging systems intelligently calculate when you will wake up and pick up the phone. Using that estimate, it relies on trickle-and-pause charging past 80% to make sure the battery hits 100% as you are about to wake up.

That's only one of the things your phone secretly does while it's charging at night. While you sleep, your phone is hard at work doing all kinds of jobs.

Gboard's AI training sessions

The secret sauce for Google's prediction features

When your phone is charging at night, idle, and connected to Wi-Fi, a hidden Android service wakes up. It's called the JobScheduler.

Advertisement
Advertisement

JobScheduler pings Gboard that your device is available for nightly downtime tasks. At that point, Gboard becomes active, and the servers send out an AI model to your device.

Your phone downloads this AI model along with training instructions. This model then trains on your typing data.

All day long, Google's Gboard app has been recording and saving your typed words and phrases, autocorrect interactions, accepted autocomplete suggestions, and so on. This data is sitting in your device's local storage.

The AI model trains on this locally stored typing information to produce mathematical data points called weight gradients. These gradients represent the sum total of the model's learning.

Advertisement
Advertisement

Only these mathematical gradients (not your actual typing data) are sent to Google's servers and used to improve Gboard.

Hands typing on a Gboard keyboard correcting the word 'Typpo', flanked by a Google logo and a undo icon.

Lucas Gouveia / Android Police

Technically, it's possible to reverse-engineer the typed keywords the AI was trained on by using those gradients.

That's why Google scrambles the data with random noise and encrypts it alongside other users' data to protect your keystrokes.

The design seems secure on paper, but the defenses aren't perfect. Researchers have filtered out the noise and recovered the exact words and phrases the user typed into their keyboard.

It does housekeeping work

Frees up storage and keeps it healthy

The longer you've kept and used a phone, the slower its storage gets. I'm talking about the actual flash storage hardware.

Advertisement
Advertisement

That hardware also accumulates junk or ghost files and useless system logs that waste storage space .

Also, your phone apps store their data in special databases which can balloon in size over time, causing apps to stutter and lag.

Your phone performs regular system maintenance to prevent those problems.

Once again, our friend, the JobScheduler, recognizes when the phone is idle and charging to trigger the maintenance routines.

First, the maintenance service takes care of uncleared storage blocks on the flash storage. This keeps the storage hardware running at optimum speeds.

The Android mascot standing next to a bucket and a broom, set against a pink and purple background with blurred app icons.

Lucas Gouveia / Android Police | Vector Only / Shutterstock

The app databases come next. The operating system reorganizes and cleans up messy databases, so apps can access them without unexpected lags.

Advertisement
Advertisement

Finally, it erases garbage and orphaned files to free up space.

You might have noticed your phone's gallery app neatly sorts and tags photos of people and pets by their faces.

The gallery app can also identify blurry or poorly framed photos and recommend deleting them to save space. It's also how you can search photos in your gallery using natural language.

A Google Pixel phone showing the face groups section in Google Photos app

It's all thanks to the invisible heavy work your phone does at night.

Intelligently scanning hundreds of photos to group them by faces and tagging them for natural language searches eats a lot of device resources.

That's why the JobScheduler verifies that your phone is idle at night, plugged in, and connected to Wi-Fi before any AI sorting begins.

Advertisement
Advertisement

A media scanning service scans new, edited, and deleted media files in your phone's storage. It saves relevant metadata from these files in the central MediaStore repository on the device.

The on-device AI crawls your media library for photos with facial features. It then produces mathematical vectors based on those facial features, which helps the AI cluster faces together. That's how the sort by facefeature works.

The photos don't contain any information about the image contents themselves.

To make images searchable by subject matter, they have to be tagged appropriately. So relevant photos (say ones with animalsor cars) can be surfaced by typing those words in the search field.

Advertisement
Advertisement

An AI model classifies images based on their contents, and an OCR (optical character recognition) model scans your media gallery and creates a local searchable index. AI vision models also isolate screenshots, duplicates, and blurry photos.

An image highlighting Google Photos' current and upcoming Search interface.

Android Authority

Unlike Gboard's federated learning system, however, these models run entirely on a device.

Overnight app tuning

So your favorite apps launch faster

If you've used older Android systems, you might remember the agonizing lag between tapping an app shortcut and the app actually launching.

For many people, it was a defining difference between iOS and Android because apps on iOS launched in a snap. That gap has mostly closed over the years.

Advertisement
Advertisement

You might guess that it's because of modern hardware (and that is heavily in the mix), but even modest Android phones don't suffer that same lag anymore. It's all thanks to even more invisible work your Android device does overnight.

Normally, the app code has to be translated into CPU-readable code on the fly as it loads and launches. That's where that lag comes from.

Starting with Android Nougat (version 7), the operating system took a new approach towards app launches.

During the day, the phone internally tracks your most-used apps (using Android Runtime, or ART). Not only the most-used apps, but also the most-used features and interfaces within those apps.

Smartphone showing a custom Octopi Launcher home screen with app icons, against an abstract geometric background.

Lucas Gouveia / Android Police

At night while your phone charges, a background service silently optimizes app launches ahead of time, based on the data it collected during the day.

Advertisement
Advertisement

The result is that the next day, the same app loads and launches a little bit faster.

Your phone may look idle charging overnight, but in truth it's anything but

When you leave it plugged in by the bedside, your phone manages its charging speed to protect the battery inside.

It's cleaning house and optimizing app launch times. Plus, the sophisticated features of the gallery and keyboard apps are powered by overnight machine learning.

Advertisement
Advertisement
Mobilize your Website
View Site in Mobile | Classic
Share by: