Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dwfinkelstein
Copy link

Summary

Adds a password field to the Android app's manual gateway settings, allowing users to connect to password-protected gateways.

Changes

  • SecurePrefs.kt — Added manualPassword storage
  • NodeRuntime.kt — Exposed password and use it for manual connections
  • MainViewModel.kt — Exposed password to UI
  • SettingsSheet.kt — Added password input field in Advanced section (uses PasswordVisualTransformation)

Testing

Tested locally with a password-protected gateway running in LAN mode.


Split from #2219 which contained unrelated changes.

Copilot AI review requested due to automatic review settings January 26, 2026 13:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds password authentication support for manual gateway connections in the Android app, allowing users to connect to password-protected gateways through the Advanced settings section.

Changes:

  • Added encrypted storage for manual gateway password in SecurePrefs
  • Implemented password selection logic in NodeRuntime that uses the manual password for manual endpoints and falls back to the stored gateway password otherwise
  • Exposed password field through MainViewModel to the UI layer
  • Added a password input field with masking in the Advanced settings section

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
apps/android/app/src/main/java/com/clawdbot/android/SecurePrefs.kt Adds encrypted storage for manualPassword with trimming, consistent with other manual gateway settings
apps/android/app/src/main/java/com/clawdbot/android/NodeRuntime.kt Exposes manualPassword and implements conditional password logic for manual endpoint connections
apps/android/app/src/main/java/com/clawdbot/android/MainViewModel.kt Passes through manualPassword state and setter from runtime to UI
apps/android/app/src/main/java/com/clawdbot/android/ui/SettingsSheet.kt Adds password input field with PasswordVisualTransformation in the Advanced section

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@moltbot-barnacle moltbot-barnacle bot added the app: android App: android label Jan 26, 2026
@sebslight
Copy link
Member

Closing due to merge conflicts. Please rebase on main and reopen if you'd like to continue with this contribution.

@sebslight sebslight closed this Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants