Repository navigation
Conversation
Make message plates expandable and customizable (width, height, lines, font size)
…e battery metrics (voltage, percent, current, power)
Add independent charging ring timers, display settings, and toggleable battery metrics (voltage, percent, current, power)
…, and charger callbacks
…, thread-safe LedController, and docs sync
… ProGuard/R8 rules
…utGeometry, SettingsBackup, and NotificationStore
…erer for 11 animation styles
…kup preview, silent filter, and snooze
The in-app updater still pointed at the upstream repo (ankitchanki/LED), so a running fork build would download and install the upstream APK over it - silently dropping every fork change, since the applicationId matches. - API and releases page now point at mx57/LED - RELEASE_SHA256 no longer pins the upstream certificate: it is left empty until the fork's own key digest is filled in, and verify() fails closed (with a note in the event log) instead of ever accepting an upstream key
The download badge, the install link and the version badge all led to ankitchanki/LED - i.e. the upstream APK, not this fork's builds. - all download links now go to mx57/LED releases - 'All downloads' no longer points at the deleted releases/ directory - the signing-key note no longer shows the upstream certificate - LICENSE keeps the upstream copyright (MIT requires it) and adds mx57's
The 'Use committed signed APK' step read APKs from the releases/ directory, which was deleted from this repo (f35032e..3cec726), so it could never succeed - and its certificate gate still expected the upstream signing key. Removing it leaves only the secrets-based signing path, which publishes nothing when the secrets are missing.
Without keystore.properties or the signing env vars, 'assembleRelease' fell back to the debug signing config without a word - exactly what the current CI artifacts are. For an APK app with a self-updating install flow that both breaks updates (the updater pins the release cert) and publishes builds that look trustworthy but are not. - with the release keystore: signs with it, as before - on CI pull requests (fork PRs get no secrets): builds a clearly marked '-test' APK instead of failing the check; the publish gate never publishes it - anywhere else without the keystore: fails with instructions After this, a plain push to main turns CI red until the GLOWLED_KEYSTORE_BASE64 / GLOWLED_KEYSTORE_PASSWORD / GLOWLED_KEY_ALIAS / GLOWLED_KEY_PASSWORD secrets are configured - that is intentional.
UpdateCheckJob writes prefs from a raw background thread, and SharedPreferences notifies listeners on the writer's thread. The MainActivity prefsListener then touched views (RecyclerView adapter notify, LedView, applyAppTheme) straight from that thread - a CalledFromWrongThreadException waiting to happen whenever the job ran while the settings screen was open (it does, every ~6 h). The listener body now hops to the UI thread via runOnUiThread and ignores events once the activity is destroyed. The body itself is unchanged; the pending slider-tick debounce is P1-12, not this fix.
Three copies of the same bug: a dialog callback firing after the activity was destroyed. - AppsActivity: the colour-picker callback called bindColor, which submitted to the io executor already shut down in onDestroy -> RejectedExecutionException. The picker is now tracked and dismissed in onDestroy, its callback is guarded, and the two io.execute sites check isDestroyed/isShutdown first. - MainActivity: the quiet-hours TimePickerDialog chain showed its second dialog from the first one's callback - after a rotation that built a dialog on a dead activity (BadTokenException). Both pickers are tracked, dismissed in onDestroy and their callbacks guarded. - MainActivity: the tutorial dialogs are tracked and dismissed too. - ColorPickerDialog.show() now returns the dialog it showed, so callers can dismiss it; existing call sites are unaffected.
CHANGELOG.md already describes v2.11.1 while versionName was still 2.11.0 (versionCode 35): the release notes CI cut for the 'newest' section belong to a version the app never reports. With the matching applicationId and a self-updater this also feeds a permanent 'update available' loop. - versionName 2.11.0 -> 2.11.1, versionCode 35 -> 36 - new CI step fails when versionName and the newest CHANGELOG entry disagree, so this cannot regress silently
fix: P0 critical fixes (fork identity, UI-thread prefs listener, release signing, dialog crashes, version)
lintDebug aborted the CI build with 32 MissingTranslation errors: the expandable-messages, tap-zone and charging-metrics strings shipped only in English and Russian. Adds translations for pt-rBR, es, fr, de, it, tr, ar, hi, in, ja and zh-rCN (32 strings and 2 label arrays each), keeping the existing tone and the %s/%d placeholders. Lint stays strict on purpose: MissingTranslation is not disabled, so a future untranslated key fails the build instead of shipping English.
RELEASE_SHA256 now carries the SHA-256 of the certificate the mx57/LED release workflow signs with (the GLOWLED_KEYSTORE_* repository secrets), so the in-app updater accepts this fork's own signed updates and still refuses APKs signed with the upstream key that used to be pinned here.
i18n: complete all locales + pin the fork release certificate (fixes the red CI on main)
…sts (conflicts resolved) Merges the audit-implementation branch (P0-P3 phases) on top of the P0 fixes already in main. Conflicts resolved by hand: - app/build.gradle.kts: keep versionName 2.11.1 / versionCode 36 from main plus PR3's UPDATE_REPO / EXPECTED_SIGNING_SHA256 buildConfigFields; the release-signing guard from main and the org.json test dependency from PR3 are both kept. - Updater.kt: PR3's BuildConfig-driven repo/URLs and connection handling win; RELEASE_SHA256 stays pinned to THIS fork's certificate (PR3 had let it fall back to the upstream key - that path is gone). verify() accepts the fork certificate, the explicitly configured one, or the key the running install itself is signed with. - releases/: the rebuilt in-repo APKs from PR3 are dropped - main removed the releases/ directory and GitHub Releases is the channel now. - lint: 'disable MissingTranslation' from PR3 is NOT kept - all 17 new keys are translated into the 11 non-Russian locales instead, so lint stays strict. - CHANGELOG: PR3's new sections moved from the 2.11.0 entry (its branch predates 2.11.1) into the 2.11.1 entry that is actually shipping. Auto-merged and verified: MainActivity (runOnUiThread prefs listener + snooze/deviceSp changes), UpdateCheckJob, LedController, Prefs (sp/deviceSp split), and the new tests. testDebugUnitTest, lintDebug and assembleRelease all pass locally; the APK is signed with the fork key matching Updater.RELEASE_SHA256.
…ng env exists The 'refuse debug-signed release' guard threw during CONFIGURATION of the release build type, so any gradle invocation without the keystore failed - including testDebugUnitTest and lintDebug. On push events CI runs those two before the workflow decodes the keystore secret into GLOWLED_KEYSTORE, so every push to main died at the first gradle step (pull_request runs were saved by the GITHUB_EVENT_NAME escape hatch). The guard now fires only when the invocation actually requests release output (assembleRelease / bundle / build); lint and unit tests configure the release type with a dormant debug signing config instead. Verified locally both ways: without keystore.properties, testDebugUnitTest and lintDebug pass; with it, assembleRelease still signs with the fork key (the one pinned in Updater.RELEASE_SHA256).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ses (v2.11.0)