Anteater

Find the photos and videos you can delete

Anteater finds the photos and videos on your Android phone that you can delete or recompress: blurry shots, duplicates, short clips, screenshots and files that messaging apps leave behind. It suggests and you decide. Nothing is deleted without your confirmation, removed files wait in a trash you can restore from, and nothing leaves the phone.

Requires Android 11 or newer. Free software under GPL-3.0.

The suggestions are tuned on one person's library, so expect some wrong ones and some misses. Cloud libraries such as Google Photos, iOS and desktop are not covered.

Photos tab of Clean with the space that can be freed and the photo categories, each with a count and a size
Photo categories
Blurry category as a grid of photos, most of them marked for the trash, with a Trash button under it
Review grid
Similar copies as groups of three photos, the best copy of each group labelled Best and most of the others marked
Copies in groups
A photo at full size with the reason it was flagged and an option to skip its folder from now on
Full size, with the reason
Videos tab of Clean with Largest videos and the video categories, each with a count and a size
Video categories
Short clips page, a grid of video tiles that show the length and the size, marked for the trash
Short clips
A video at full size with play controls and a strip of five frames to jump to
Video at full size
Compress tab with the quality slider, the photos sorted largest first and three selected
Compress list
Compression summary with a slider that compares the original and the copy, and what the copy loses
Before and after
Trash screen with the days left on each photo and a button to empty it
Trash
Settings with trash retention, excluded folders, the storage map, haptics and the night scan switches
Settings
Storage map, a treemap of the folders with their sizes and file counts
Storage map

The images in the screenshots are drawn in code, and the counts are made up.

Photos: what it finds

Anteater scans your storage, including folders that gallery apps skip, such as WhatsApp's. The Photos tab of Clean lists nine categories. A category opens into a grid with the suggested photos already marked. Tap one to keep it, hold it to see it at full size and why it was flagged, and press the button under the grid to move the marked ones to the trash.

Exact copies
The same file saved twice. Anteater marks the extra ones.
Similar copies
Recompressed, resized or edited copies of one photo. It suggests keeping the best one.
Bursts
Photos taken a few seconds apart. It suggests keeping the sharpest shot.
Blurry
Photos where the subject is out of focus. Portraits with a soft background are not flagged.
Too dark or too bright
Pocket shots, black frames and blown-out photos.
Screenshots
Screen captures.
Documents and notes
Slides, whiteboards, handwriting, receipts and printed pages.
Forwarded
Memes and greeting images from messaging apps.
WhatsApp stickers
Files in the sticker folders of messaging apps.

Exact copies, similar copies and bursts open as groups. Anteater picks the best copy and shows it beside the others, and you can change which one stays.

Videos

The Videos tab has its own Scan videos button, its own counts and its own total. A video tile shows a frame, the length and the size, and holding it opens the video in the app with a strip of frames to jump to. Large videos come first.

Largest videos
Every video you have not reviewed yet, biggest first.
Exact copies
The same video saved twice.
Similar copies
The smaller copy WhatsApp keeps in its Sent folder. Anteater keeps the camera original.
Blurry, too dark or too bright
Videos that are out of focus or badly exposed, with thresholds of their own.
Forwarded
Videos in the folders of messaging apps, Sent included.
Takes of one moment
Several takes recorded one after the other. None is preselected, because Anteater cannot tell which is best.
Short clips
Clips under 15 seconds, such as a failed take, a pocket recording or a silent clip in a chat folder. The first tiles on screen loop muted, so you can decide at a glance.

Photo compression

The Compress tab recompresses large camera JPEGs instead of deleting them. It lists photos, largest first, and selects none.

Three quality levels
High quality keeps the full resolution. Balanced scales photos above 50 MP down to 50 MP, and Smallest scales photos above 12 MP down to 12 MP. In the lab, Balanced saved a median 47% on one phone's camera photos.
Before and after
A slider shows the original next to the real compressed result, and zooms down to single pixels. You can check up to three photos before you confirm.
What the copy keeps
The date, the place and the camera details stay, and so does the Ultra HDR gain map on Android 14 and newer. Some extras are lost, such as the shooting mode info. The summary lists them before you confirm. If the photo was a gallery favourite, Android asks you to mark the copy as a favourite again.
Background batches
A batch runs with a notification, and pauses while the phone is very hot. Videos cannot be compressed yet.

What happens to your files

Nothing is deleted without your confirmation. Files you remove go to a trash folder on the phone, and you can restore them until the retention ends, 30 days by default.

Where it goes
The button under a page moves the files to a trash folder on the phone. They still take space until they are deleted for good, and the folder stays if you uninstall the app.
Restore
Restore a file from the trash and it goes back to its original folder. It never overwrites another file.
Deleted for good
Only when the retention ends, when you delete files from the trash, or when you tap "Free X now". The last two ask first.
Free X now
After a page that trashes more than 1 GB, the Undo snackbar offers to free that space right away. It asks first, and deletes only the files of that page.
Compression
The original of a compressed photo goes to the trash too, and one button undoes the whole batch.
Favourites
Photos and videos you hearted in the gallery show a heart and start unmarked. A page that marks one for the trash asks first.

Settings and storage map

Trash retention
30 days by default. Choose 7, 14, 60 or 90 days.
Detection thresholds
A slider for most categories, with live counts of the candidates.
Excluded folders
Folders left out of the review and the map. You can also exclude one from the full size view.
Storage map
A treemap of the photo and video space, folder by folder. Tap a block for its size and file count, open it, or exclude the folder.
Night scan
Scans new photos once a night while the phone charges, and new videos too once you have run Scan videos. Two switches turn each one off. With both off, the night run only empties the expired trash.
Language and look
Haptics on or off, English or Italian on Android 13 and newer, and the phone's dark theme.

What to expect

Simple to use
Open a category, check what is marked, and press one button.
It errs on showing too much
You may see a photo worth keeping, and you can keep it with a tap. Anteater would rather show it than hide clutter from you.
Private by design
Everything runs on your phone. Nothing is uploaded, and the app cannot connect to a network.
Nothing is lost by accident
Nothing is deleted without your confirmation. Trashed files stay restorable until the retention ends.

Permissions

Gallery apps only see the folders Android indexes, and skip folders with a .nomedia file, such as WhatsApp's sent media. Anteater asks for All files access, so it can read those folders and manage its trash.

Google Play allows that permission only for a few kinds of apps, such as file managers, so Anteater is a direct APK download on GitHub. The app has no network permission, so it cannot send anything anywhere.

Install

  1. 1

    Download the APK

    Get the latest release from the GitHub releases page. To check the download, compare its SHA-256 digest:

    sha256sum -c *.apk.sha256
  2. 2

    Allow unknown apps

    Open the downloaded file. When Android asks to allow installs from your browser or file manager, confirm.

  3. 3

    Grant storage access

    On first launch, Android sends you to a system screen. Turn on All files access for Anteater.

  4. 4

    Scan and review

    Tap Scan now for photos and Scan videos for videos. After that, Anteater also scans new files once a night while the phone charges. Then open a category to review it, or recompress large photos from the Compress tab.

Source code and license

Anteater is free software under the GNU General Public License v3.0. The source, the technical details and the design notes are on GitHub: https://github.com/Bert0ns/anteater