Skip to content

Add Android Dev Settings app and CI - #1

Merged
RangelReale merged 5 commits into
masterfrom
feature/app
Nov 12, 2026
Merged

RangelReale merged 5 commits into
masterfrom
feature/app

Conversation

@RangelReale

Copy link
Copy Markdown
Contributor

Summary

Builds the app described in docs/PROMPT.md, plus CI.

  • Settings layer: DevSettingsRepository reads and writes Settings.Global through a SettingsStore interface. Unit tests use an in-memory fake.
  • Main screen: one row per setting, refreshed on resume and through a ContentObserver. A setup card shows the pm grant command with a copy button, and switches stay disabled until the permission is granted. A card explains how to turn on Developer options when they are off. Turning off USB or wireless debugging asks for confirmation. Wireless debugging shows the IP address and port for adb connect.
  • Keep screen on: a foreground service (specialUse) holds a screen wake lock. Its notification counts down and has a Stop action.
  • Quick Settings tiles: one tile per setting. The keep screen on tile cycles through the durations, then turns off. The debugging tiles ask to unlock first on a locked phone.
  • CI: ci.yml runs unit tests, lint and a debug build on pull requests and pushes to master. release.yml runs on v*.*.* tags, builds an APK signed with the release key and publishes a GitHub release.

Differences from the prompt

  • Without the permission, tiles show as inactive with "Setup needed" instead of unavailable. Android does not deliver taps to unavailable tiles, so "tap opens the setup card" would not work otherwise.
  • Android has no public intent for the wireless debugging pairing screen. The button opens Developer options with that row highlighted.

Before the first release

Set the repository secrets RELEASE_KEYSTORE_BASE64 and RELEASE_KEYSTORE_PASSWORD. The README explains both.

Testing

  • 18 unit tests and lint pass. Lint treats warnings as errors.
  • Checked on an API 36 emulator: the setup card and permission grant, live updates through the observer, the confirmation dialog, wireless debugging IP and port, the keep screen on service and wake lock, and the stay awake and keep screen on tiles.
  • Not tested: the USB and wireless debugging tiles, and the unlock prompt on a locked phone.
  • Built a signed release APK locally and confirmed the signature and the version taken from the tag.

🤖 Generated with Claude Code

RangelReale and others added 5 commits November 12, 2026 07:29
Gradle 8.14.3 wrapper, AGP 8.13.2, Kotlin 2.2.21, version catalog.
DevSettingsRepository reads and writes Settings.Global through a
SettingsStore interface; tests use an in-memory fake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main screen rows read the real Settings.Global values on resume and
through a ContentObserver. Setup card shows the pm grant command.
Turning off USB or wireless debugging asks for confirmation.
Wireless debugging shows the IP and port (getprop, then mDNS).
Four tiles; debugging tiles ask for unlock on a locked phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…low the network

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI runs unit tests, lint and a debug build on pull requests and pushes
to master. A v*.*.* tag builds an APK signed with the release key from
repository secrets and publishes it as a GitHub release. The version
name and code come from the tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI failed on AndroidGradlePluginVersion: lint fetched the latest Gradle
and AGP versions and reported the pinned ones as errors. The versions
are pinned on purpose, and online lookups make lint results change
over time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RangelReale
RangelReale merged commit da29be0 into master Nov 12, 2026
1 check passed
@RangelReale
RangelReale deleted the feature/app branch November 12, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant