GrayPause 1.4: grayscale color breaks for Android

Timers that switch grayscale off and restore it on their own: presets and
custom h/m/s timers, Quick Settings tile, launcher shortcuts, countdown
notification, reboot recovery, and optional always-in-color apps via an
accessibility service. WRITE_SECURE_SETTINGS is granted once via Shizuku
or adb.

Gradle project for F-Droid with fastlane metadata and a draft fdroiddata
recipe; build.sh keeps the Gradle-free on-phone Termux build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Loïc Wisniewski 2026-10-04 20:07:49 +02:00
commit 5d7d84eaca
38 changed files with 2419 additions and 1 deletions

View file

@ -0,0 +1 @@
First public release: color-break timers, custom timers, Quick Settings tile, launcher shortcuts, color apps, Shizuku-assisted setup.

View file

@ -0,0 +1,21 @@
<p>Grayscale makes a phone much less tempting to pick up. The hard part is the moment you need color for a minute — a photo, a map, a chart — and then forget to turn grayscale back on.</p>
<p>GrayPause gives you <b>color breaks</b>: grayscale switches off for the time you choose and comes back on by itself.</p>
<ul>
<li><b>One-tap timers</b> — 1, 5, 10, 15, 30 min by default. Add your own with hours, minutes and seconds; delete any of them.</li>
<li><b>Quick Settings tile</b> — starts a break of the last length you used; tap again to end it early.</li>
<li><b>App shortcuts</b> — long-press the launcher icon to start a timer without opening the app.</li>
<li><b>Countdown notification</b> with "Grayscale now" and "+5 min" buttons.</li>
<li><b>Color apps</b> (optional) — pick apps such as your gallery or camera that are always shown in color. Grayscale switches off while one of them is open and back on when you leave it.</li>
<li>Survives reboots: a running break is resumed, or grayscale restored if the time is up.</li>
</ul>
<p><b>One-time setup.</b> Android only lets system apps switch grayscale, so GrayPause needs the <i>WRITE_SECURE_SETTINGS</i> permission. It cannot be granted from Settings, only once, either:</p>
<ul>
<li>with <b>Shizuku</b> running: tap "Grant with Shizuku" in the app, or</li>
<li>over adb: <tt>adb shell pm grant com.lpw.graypause android.permission.WRITE_SECURE_SETTINGS</tt></li>
</ul>
<p>The permission is kept across reboots and updates; Shizuku is not needed afterwards.</p>
<p><b>Accessibility service.</b> The optional "Color apps" feature uses an accessibility service only to learn which app is in the foreground. It does not read screen content, and nothing leaves your device: GrayPause has no internet permission.</p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,000 KiB

View file

@ -0,0 +1 @@
Keep your phone in grayscale, take short color breaks that end by themselves

View file

@ -0,0 +1 @@
GrayPause