Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
61cc30e
Add expandable notifications with individual replies and quick respon…
mx57 Nov 18, 2026
fec55f0
Add screen-on message overlay and configurable tap response zone
mx57 Nov 18, 2026
cbe9aaa
Merge branch 'work'
mx57 Nov 18, 2026
c3e5c07
Delete releases/GlowLED-v2.11.0.apk
mx57 Nov 18, 2026
06de6a9
Delete releases/GlowLED-v2.10.1.apk
mx57 Nov 18, 2026
5b6883a
Make message plates expandable and customizable (width, height, lines…
mx57 Nov 19, 2026
99a743c
Merge pull request #1 from mx57/feature/expandable-customizable-messages
mx57 Nov 19, 2026
c30f699
Add independent charging ring timers, display settings, and toggleabl…
mx57 Nov 19, 2026
8b65155
Merge pull request #2 from mx57:feature/charging-ring-timers-metrics
mx57 Nov 19, 2026
41d589c
Delete releases/GlowLED-latest.apk
mx57 Nov 19, 2026
3f47d22
Delete releases/GlowLED-v2.10.1-screen-on-messages-debug.apk
mx57 Nov 19, 2026
f35032e
Delete releases/GlowLED-v2.11.0.apk
mx57 Nov 19, 2026
7184c76
Delete releases/SHA256SUMS.txt
mx57 Nov 19, 2026
3cec726
Delete releases/README.md
mx57 Nov 19, 2026
4f48d2a
Add continuous CPU load indicator near ring with customizable positio…
mx57 Nov 20, 2026
bda7931
Fix CPU indicator shifting, window clipping and live updates
mx57 Nov 20, 2026
c06761a
Apply audit fixes: AOD icon layout, Russian mark-as-read, updater URL…
mx57 Nov 20, 2026
1ad1779
Phase 1: P0 critical fixes - updater repo/lifecycle, backup isolation…
mx57 Nov 21, 2026
bcfc0c4
Phase 2: P1 audit - add CI workflow template in tools/ and strengthen…
mx57 Nov 21, 2026
8b91f0b
Phase 3: P1 unit tests - add comprehensive tests for PowerGuard, Cuto…
mx57 Nov 21, 2026
ab44a00
Phase 4: P2 modularization - extract LedStateMachine and LedStyleRend…
mx57 Nov 21, 2026
457d6e2
Phase 5: P2-P3 features - burn-in protection, health diagnostics, bac…
mx57 Nov 21, 2026
0a0071b
Release: build v2.11.0 release APK and update checksums
mx57 Nov 21, 2026
384be4f
fix(updater): check updates against this fork's release channel
mx57 Nov 22, 2026
2cb6be8
docs: point downloads, badges and license at the fork
mx57 Nov 22, 2026
904790e
ci: drop the dead committed-APK step pinned to the upstream cert
mx57 Nov 22, 2026
e5545b6
fix(build): refuse release APKs silently signed with the debug key
mx57 Nov 22, 2026
bc86b77
fix(ui): run the prefs listener's view work on the UI thread
mx57 Nov 22, 2026
b626794
fix(ui): keep dialogs and the io executor from touching a dead activity
mx57 Nov 22, 2026
b4aafde
chore(version): align versionName/versionCode with the CHANGELOG
mx57 Nov 22, 2026
7e368c8
Merge pull request #4 from mx57/fix/p0-critical
mx57 Nov 22, 2026
9e37b71
i18n: translate the 32 missing keys in all 11 non-Russian locales
mx57 Nov 22, 2026
b39b911
chore(updater): pin this fork's release certificate
mx57 Nov 22, 2026
bf73cda
Merge pull request #5 from mx57/fix/p0-critical
mx57 Nov 22, 2026
98e1946
Merge pull request #3: charging timers, battery metrics, CPU load, te…
mx57 Nov 22, 2026
b28bb31
fix(build): let test/lint configure the release type before the signi…
mx57 Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 12 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ jobs:
- name: Unit tests & lint
run: ./gradlew --no-daemon testDebugUnitTest lintDebug

# The updater compares the app version with GitHub releases, and the release notes are cut
# from the newest CHANGELOG section - a mismatch ships wrong notes and a permanent
# "update available" nag. Fail early when they disagree.
- name: Check version consistency
run: |
APP_VERSION=$(grep -m1 'versionName' app/build.gradle.kts | sed -E 's/.*"([^"]*)".*/\1/')
CHANGELOG_VERSION=$(sed -n '1,5p' CHANGELOG.md | grep -m1 -oE '[0-9]+(\.[0-9]+){2}')
if [ "$APP_VERSION" != "$CHANGELOG_VERSION" ]; then
echo "::error::app versionName ($APP_VERSION) does not match the newest CHANGELOG entry ($CHANGELOG_VERSION)"
exit 1
fi

- name: Set up release signing
env:
KEYSTORE_BASE64: ${{ secrets.GLOWLED_KEYSTORE_BASE64 }}
Expand Down Expand Up @@ -53,29 +65,6 @@ jobs:
cp "dist/GlowLED-v${VERSION}.apk" dist/GlowLED-latest.apk
(cd dist && sha256sum *.apk > SHA256SUMS.txt)

# Without signing secrets, publish the signed APK already committed in releases/ instead -
# but only after checking it carries the official Glow LED signing certificate.
- name: Use committed signed APK
if: env.SIGNED != 'release'
run: |
APK="releases/GlowLED-v${VERSION}.apk"
if [ ! -f "$APK" ]; then
echo "::warning::No $APK committed and no signing secrets - skipping the release."
exit 0
fi
OFFICIAL="5d04de1a96a80107ec87658382b063f15c53cfea8043f554a339f285fe0c5023"
APKSIGNER="$(ls -d "$ANDROID_HOME"/build-tools/* | sort -V | tail -1)/apksigner"
CERT=$("$APKSIGNER" verify --print-certs "$APK" | grep -m1 'certificate SHA-256 digest' | awk '{print $NF}')
if [ "$CERT" != "$OFFICIAL" ]; then
echo "::error::$APK is not signed with the official key ($CERT) - not publishing."
exit 1
fi
rm -f dist/*.apk
cp "$APK" "dist/GlowLED-v${VERSION}.apk"
cp "dist/GlowLED-v${VERSION}.apk" dist/GlowLED-latest.apk
(cd dist && sha256sum *.apk > SHA256SUMS.txt)
echo "SIGNED=release" >> "$GITHUB_ENV"

# Release notes = only the newest section of CHANGELOG.md.
- name: Release notes
run: awk '/^---$/{exit} {print}' CHANGELOG.md > release-notes.md
Expand Down
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# Glow LED v2.11.1

## Expandable and customizable message cards
- **Expandable message cards with "Expand" ("Раскрыть") button:** message preview cards now feature an explicit expand button to reveal full message text, full timestamp, and all conversation messages.
- **Configurable dimensions & text size:** customize message plate width, max height, preview line length, and font size directly from Screen Off and Screen On settings.
- **Screen-on overlay parity:** full expandable notification support, timeout reset on touch, and mark-all-read batch action on the unlocked screen.

## Independent charging ring settings & battery metrics
- **Separate timers & controls:** independently configure charging ring display on active screen and always-on display (AOD).
- **Live battery metrics:** optional real-time display of battery percentage, voltage (V), current (mA), and charging power (W) with individual toggles.

## Live CPU load indicator
- **Continuous CPU monitoring:** optional real-time CPU usage near or below the camera cutout with customizable position (above, below, left, right), offset, and font size.

## Maintenance & stability
- **Fork updater support:** in-app updater now targets `mx57/LED` repository releases with guaranteed connection closing and package signing certificate verification.
- **Device state isolation:** device-specific and cached states separated into `device_state.xml` and excluded from Android Auto Backup.
- **Thread-safe controller initialization:** atomic guard and main-thread listener notifications prevent race conditions on cold start.
- **Complete translations:** the 32 keys that shipped only in English and Russian are now translated into the other 11 languages; MissingTranslation stays enabled, so an untranslated key fails the build.
- **Real release signing:** CI now signs releases with this fork's own key - no more silently debug-signed "release" APKs - and the updater pins that certificate, refusing upstream-signed builds.

---

# Glow LED v2.11.0

## Expandable messages with quick reply
- **Expandable notifications:** on the always-on / lock screen peek card, tap "Expand" (or the card) to view all unread messages from that app with full text and timestamps.
- **Individual replies:** reply to or mark as read any individual message in an expanded thread.
- **Mark all as read:** one-tap button to clear all pending messages for an app.
- **Enhanced quick reply sheet:** view conversation history and tap quick-response chips (👍, OK, Thanks, etc.) for instant replies.
- **Interactive timeout reset:** reading or scrolling through notifications automatically extends the peek duration.
- **New settings toggle:** easily enable or disable expandable messages in Screen Off → Messages.

---

# Glow LED v2.10.1

✅ **Signed build** (official Glow LED key, SHA-256 `5D:04:DE:1A…0C:50:23`). Installs over v1.3.0 and
Expand Down
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2026 ankitchanki
Copyright (c) 2026 mx57 (Glow LED fork)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
**The notification light your phone forgot.**<br/>
A soft ring glows around the camera hole when something needs you, on any brand, at almost no battery cost.

<a href="https://github.com/ankitchanki/LED/releases/latest/download/GlowLED-latest.apk"><img src="https://img.shields.io/badge/Download-latest%20APK-00E5FF?style=for-the-badge&logo=android&logoColor=black" alt="Download the latest APK" /></a>
<a href="https://github.com/mx57/LED/releases/latest/download/GlowLED-latest.apk"><img src="https://img.shields.io/badge/Download-latest%20APK-00E5FF?style=for-the-badge&logo=android&logoColor=black" alt="Download the latest APK" /></a>

<img src="https://img.shields.io/github/v/release/ankitchanki/LED?style=flat-square&label=version&color=00E5FF" alt="Latest version" />
<img src="https://img.shields.io/github/v/release/mx57/LED?style=flat-square&label=version&color=00E5FF" alt="Latest version" />
<img src="https://img.shields.io/badge/Android-10%2B-34A853?style=flat-square&logo=android&logoColor=white" alt="Android 10 and up" />
<img src="https://img.shields.io/badge/languages-13-5E5CE6?style=flat-square" alt="13 languages" />
<img src="https://img.shields.io/badge/license-MIT-8E8E93?style=flat-square" alt="MIT license" />
Expand Down Expand Up @@ -121,13 +121,13 @@ direction. The icon sits in a small gap at the bottom of the ring, in the ring's

## Install

1. Download **[GlowLED-latest.apk](https://github.com/ankitchanki/LED/releases/latest/download/GlowLED-latest.apk)** and open it.
1. Download **[GlowLED-latest.apk](https://github.com/mx57/LED/releases/latest/download/GlowLED-latest.apk)** and open it.
2. Open Glow LED and go through **Setup**: *Notification access* (required), *Display over other apps*,
*Unrestricted battery*, and on Xiaomi/OPPO/vivo and similar *Autostart*. *Accessibility* is optional.
3. **Style → Camera position → Auto-detect**, then tap the floating **Test** pill and turn the screen off.

Later versions install from **Settings → Updates**, inside the app. Every APK is signed with the
official key (SHA-256 `5D:04:DE:1A…0C:50:23`), so updates keep your settings.
Later versions install from **Settings → Updates**, inside the app. Every APK is signed with this
fork's release key, so updates keep your settings.

<details>
<summary><b>"App blocked to protect your device" (Play Protect)</b></summary>
Expand Down Expand Up @@ -227,6 +227,6 @@ NotificationListenerService ──► NotificationStore ──► LedController

<div align="center">

[Changelog](CHANGELOG.md) · [All downloads](releases/) · [MIT License](LICENSE)
[Changelog](CHANGELOG.md) · [All downloads](https://github.com/mx57/LED/releases) · [MIT License](LICENSE)

</div>
51 changes: 47 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ android {
applicationId = "com.glowled.app"
minSdk = 29
targetSdk = 35
versionCode = 34
versionName = "2.10.1"
versionCode = 36
versionName = "2.11.1"

val updateRepo = (project.findProperty("UPDATE_REPO") as? String) ?: "mx57/LED"
val expectedSha = (project.findProperty("EXPECTED_SIGNING_SHA256") as? String) ?: ""
buildConfigField("String", "UPDATE_REPO", "\"$updateRepo\"")
buildConfigField("String", "EXPECTED_SIGNING_SHA256", "\"$expectedSha\"")
}

signingConfigs {
Expand All @@ -47,8 +52,38 @@ android {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
val release = signingConfigs.getByName("release")
signingConfig = if (release.storeFile != null) release else signingConfigs.getByName("debug")
val releaseSign = signingConfigs.getByName("release")
// The guard only fires when the invocation actually wants release OUTPUT
// (assembleRelease / bundle / build). Lint and unit tests also configure the
// release build type, and must stay runnable before the signing env exists -
// on a push event CI runs them before the keystore step decodes the secret.
val wantsReleaseOutput = gradle.startParameter.taskNames.any { name ->
val t = name.substringAfterLast(':')
t.equals("build", true) || t.equals("assemble", true) || t.equals("bundle", true) ||
t.contains("Release", true) || t.contains("Bundle", true)
}
when {
releaseSign.storeFile != null -> signingConfig = releaseSign
// Pull requests from other forks see no signing secrets: build a clearly marked
// test APK instead of failing the check. It is debug-signed and the CI publish
// gate (SIGNED != 'release' in build.yml) never publishes it.
System.getenv("GITHUB_EVENT_NAME") == "pull_request" -> {
signingConfig = signingConfigs.getByName("debug")
versionNameSuffix = "-test"
logger.warn("Glow LED: no release keystore on CI - building a TEST APK signed with the debug key; never publish it.")
}
// A release artifact without the release keystore fails loudly: a debug-signed
// 'release' breaks in-app updates (the updater pins the release certificate)
// and looks like a trustworthy build while it is not.
wantsReleaseOutput -> throw GradleException(
"Glow LED: no release keystore found (keystore.properties locally, or the " +
"GLOWLED_KEYSTORE env variables on CI). Refusing to build a release APK signed " +
"with the debug key. Configure release signing first, or build assembleDebug instead.",
)
// Lint/test only configure the release type; no release-signed output is
// produced, so let them run with the dormant debug signing config.
else -> signingConfig = signingConfigs.getByName("debug")
}
}
debug {
applicationIdSuffix = ".debug"
Expand All @@ -69,6 +104,13 @@ android {
testOptions {
unitTests.isReturnDefaultValues = true
}
lint {
// MissingTranslation stays ENABLED: every string must ship translated into all 12
// languages, and CI fails the build otherwise. (A blanket disable hid 32 untranslated
// keys in 11 locales for two releases.)
abortOnError = true
checkReleaseBuilds = false
}
dependenciesInfo {
includeInApk = false
includeInBundle = false
Expand All @@ -84,4 +126,5 @@ dependencies {
implementation("androidx.viewpager2:viewpager2:1.1.0")

testImplementation("junit:junit:4.13.2")
testImplementation("org.json:json:20240303")
}
29 changes: 28 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# Services, receivers, activities and XML-inflated views are kept via the manifest/aapt rules.
# Services, receivers, activities and XML-inflated views are kept via manifest/aapt rules,
# but explicit rules ensure R8 optimizer doesn't strip constructors, reflection targets, or data classes.

# Preserve line numbers and source files for readable stacktraces in DebugLog and issue reports
-keepattributes SourceFile,LineNumberTable

# Custom Views instantiated programmatically or from XML
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
}

# Explicitly preserve all BroadcastReceivers and Services
-keep class * extends android.content.BroadcastReceiver { *; }
-keep class * extends android.app.Service { *; }

# Data models used in updater, battery telemetry, and notification store
-keep class com.glowled.app.core.Updater$Release { *; }
-keep class com.glowled.app.core.BatteryInfo { *; }
-keep class com.glowled.app.core.NotificationStore$Entry { *; }
-keep class com.glowled.app.core.NotificationStore$AppEntry { *; }

# Preserve Enums used in settings (e.g. LedStyle, CutoutShape, MultiMode)
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<application
android:name=".GlowApp"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand Down
Loading