Skip to content
/ caff Public

Caffeine Mode functionality for Android (Quick Settings Tile)

License

Notifications You must be signed in to change notification settings

goll72/caff

Repository files navigation

Caff

Caff is a minimal Android application that provides a quick settings tile implementing Caffeine Mode functionality (similar to LineageOS).

Get it on F-Droid

F-Droid Release GitHub Release


SHA256 signing key fingerprint: 5F:7C:F6:44:98:2B:E2:1C:28:B6:78:FB:64:8E:D0:61:77:48:2E:2D:92:98:D6:EE:16:E8:BF:D1:9C:27:24:89

Usage

Tapping the quick settings tile will toggle caffeine and cycle through different durations. If the tile is unavailable, you will have to disable battery optimizations (see notes). Long-pressing the tile will show a preferences menu, where custom durations can be added/removed.

Building

If you have nix, you can get a development shell with all dependencies set up by running:

$ nix develop

If you don't have nix you will have to install the dependencies manually.

Then, to build the project, run

$ gradle build

The APK will be available in app/build/outputs/apk/.

Screenshots

Caffeine disabled

Caffeine enabled

Infinite duration

Preferences menu

Notes

For the app to work properly in Android 12 or later, you will have to disable battery optimizations for the app (go to App info $\rightarrow$ App battery usage and set it to Unrestricted).

This app only supports Android 8 or later and it is intended to be very minimal. If you want support for older versions of Android or a more featureful option, check out Caffeinate. Feel free to open an issue or send a PR for stuff like new features or fixes for quirky OEMs though, as long as they're not too disruptive.

About

Caffeine Mode functionality for Android (Quick Settings Tile)

Resources

License

Stars

Watchers

Forks

Packages

No packages published