-
Notifications
You must be signed in to change notification settings - Fork 0
Connection Health Monitor #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
62bb209
auto-claude: subtask-1-1 - Add WorkManager dependency to app/build.gr…
PhenixStar d9c1456
auto-claude: subtask-2-1 - Create HealthCheckWorker that verifies ADB…
PhenixStar 216b6d0
auto-claude: subtask-3-1 - Create ConnectionHealthManager singleton f…
PhenixStar b9bd622
auto-claude: subtask-4-1 - Add health monitoring preferences to Prefs…
PhenixStar a4c008f
auto-claude: subtask-5-1 - Update AdbService to create health notific…
PhenixStar c4fdbeb
auto-claude: subtask-6-1 - Add health indicator icons to drawable res…
PhenixStar f6e2fd4
auto-claude: subtask-6-2 - Update AdbViewModel to expose health monit…
PhenixStar 80919bc
auto-claude: subtask-6-3 - Update ControlFragment to show health indi…
PhenixStar 2a413fe
auto-claude: subtask-6-4 - Update ControlFragment settings section to…
PhenixStar 05da36f
auto-claude: subtask-7-1 - Verify AndroidManifest WorkManager configu…
PhenixStar c9c0ef5
auto-claude: subtask-8-1 - Start health monitoring when ADB is enable…
PhenixStar a5f6e5d
auto-claude: subtask-8-2 - End-to-end verification of health monitori…
PhenixStar 3420857
fix: Address QA issues (qa-requested)
PhenixStar c73c224
Merge main into branch to resolve conflicts
PhenixStar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,162 @@ | ||
| { | ||
| "base_commands": [ | ||
| ".", | ||
| "[", | ||
| "[[", | ||
| "ag", | ||
| "awk", | ||
| "basename", | ||
| "bash", | ||
| "bc", | ||
| "break", | ||
| "cat", | ||
| "cd", | ||
| "chmod", | ||
| "clear", | ||
| "cmp", | ||
| "column", | ||
| "comm", | ||
| "command", | ||
| "continue", | ||
| "cp", | ||
| "curl", | ||
| "cut", | ||
| "date", | ||
| "df", | ||
| "diff", | ||
| "dig", | ||
| "dirname", | ||
| "du", | ||
| "echo", | ||
| "egrep", | ||
| "env", | ||
| "eval", | ||
| "exec", | ||
| "exit", | ||
| "expand", | ||
| "export", | ||
| "expr", | ||
| "false", | ||
| "fd", | ||
| "fgrep", | ||
| "file", | ||
| "find", | ||
| "fmt", | ||
| "fold", | ||
| "gawk", | ||
| "gh", | ||
| "git", | ||
| "grep", | ||
| "gunzip", | ||
| "gzip", | ||
| "head", | ||
| "help", | ||
| "host", | ||
| "iconv", | ||
| "id", | ||
| "jobs", | ||
| "join", | ||
| "jq", | ||
| "kill", | ||
| "killall", | ||
| "less", | ||
| "let", | ||
| "ln", | ||
| "ls", | ||
| "lsof", | ||
| "man", | ||
| "mkdir", | ||
| "mktemp", | ||
| "more", | ||
| "mv", | ||
| "nl", | ||
| "paste", | ||
| "pgrep", | ||
| "ping", | ||
| "pkill", | ||
| "popd", | ||
| "printenv", | ||
| "printf", | ||
| "ps", | ||
| "pushd", | ||
| "pwd", | ||
| "read", | ||
| "readlink", | ||
| "realpath", | ||
| "reset", | ||
| "return", | ||
| "rev", | ||
| "rg", | ||
| "rm", | ||
| "rmdir", | ||
| "sed", | ||
| "seq", | ||
| "set", | ||
| "sh", | ||
| "shuf", | ||
| "sleep", | ||
| "sort", | ||
| "source", | ||
| "split", | ||
| "stat", | ||
| "tail", | ||
| "tar", | ||
| "tee", | ||
| "test", | ||
| "time", | ||
| "timeout", | ||
| "touch", | ||
| "tr", | ||
| "tree", | ||
| "true", | ||
| "type", | ||
| "uname", | ||
| "unexpand", | ||
| "uniq", | ||
| "unset", | ||
| "unzip", | ||
| "watch", | ||
| "wc", | ||
| "wget", | ||
| "whereis", | ||
| "which", | ||
| "whoami", | ||
| "xargs", | ||
| "yes", | ||
| "yq", | ||
| "zip", | ||
| "zsh" | ||
| ], | ||
| "stack_commands": [ | ||
| "gradle", | ||
| "gradlew", | ||
| "kotlin", | ||
| "kotlinc" | ||
| ], | ||
| "script_commands": [], | ||
| "custom_commands": [], | ||
| "detected_stack": { | ||
| "languages": [ | ||
| "kotlin" | ||
| ], | ||
| "package_managers": [ | ||
| "gradle" | ||
| ], | ||
| "frameworks": [], | ||
| "databases": [], | ||
| "infrastructure": [], | ||
| "cloud_providers": [], | ||
| "code_quality_tools": [], | ||
| "version_managers": [] | ||
| }, | ||
| "custom_scripts": { | ||
| "npm_scripts": [], | ||
| "make_targets": [], | ||
| "poetry_scripts": [], | ||
| "cargo_aliases": [], | ||
| "shell_scripts": [] | ||
| }, | ||
| "project_dir": "D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor", | ||
| "created_at": "2026-02-07T02:58:57.659663", | ||
| "project_hash": "e16dedeca885a75056448cf91f33beba" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "active": true, | ||
| "spec": "005-connection-health-monitor", | ||
| "state": "building", | ||
| "subtasks": { | ||
| "completed": 11, | ||
| "total": 12, | ||
| "in_progress": 1, | ||
| "failed": 0 | ||
| }, | ||
| "phase": { | ||
| "current": "Integration & Testing", | ||
| "id": null, | ||
| "total": 2 | ||
| }, | ||
| "workers": { | ||
| "active": 0, | ||
| "max": 1 | ||
| }, | ||
| "session": { | ||
| "number": 14, | ||
| "started_at": "2026-02-07T02:58:43.952923" | ||
| }, | ||
| "last_update": "2026-02-07T03:45:20.171135" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "sandbox": { | ||
| "enabled": true, | ||
| "autoAllowBashIfSandboxed": true | ||
| }, | ||
| "permissions": { | ||
| "defaultMode": "acceptEdits", | ||
| "allow": [ | ||
| "Read(./**)", | ||
| "Write(./**)", | ||
| "Edit(./**)", | ||
| "Glob(./**)", | ||
| "Grep(./**)", | ||
| "Read(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor/**)", | ||
| "Write(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor/**)", | ||
| "Edit(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor/**)", | ||
| "Glob(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor/**)", | ||
| "Grep(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor/**)", | ||
| "Read(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor\\.auto-claude\\specs\\005-connection-health-monitor/**)", | ||
| "Write(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor\\.auto-claude\\specs\\005-connection-health-monitor/**)", | ||
| "Edit(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude\\worktrees\\tasks\\005-connection-health-monitor\\.auto-claude\\specs\\005-connection-health-monitor/**)", | ||
| "Read(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude/**)", | ||
| "Write(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude/**)", | ||
| "Edit(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude/**)", | ||
| "Glob(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude/**)", | ||
| "Grep(D:\\AI\\Android\\APK\\Android-Apps\\apps\\wirelessadb\\.auto-claude/**)", | ||
| "Bash(*)", | ||
| "WebFetch(*)", | ||
| "WebSearch(*)", | ||
| "mcp__context7__resolve-library-id(*)", | ||
| "mcp__context7__get-library-docs(*)", | ||
| "mcp__graphiti-memory__search_nodes(*)", | ||
| "mcp__graphiti-memory__search_facts(*)", | ||
| "mcp__graphiti-memory__add_episode(*)", | ||
| "mcp__graphiti-memory__get_episodes(*)", | ||
| "mcp__graphiti-memory__get_entity_edge(*)" | ||
| ] | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,33 @@ | ||
| # Gradle | ||
| .gradle/ | ||
| build/ | ||
| !gradle/wrapper/gradle-wrapper.jar | ||
|
|
||
| # Android | ||
| *.apk | ||
| *.aab | ||
| *.ap_ | ||
| *.dex | ||
| local.properties | ||
|
|
||
| # IDE | ||
| .idea/ | ||
| *.iml | ||
| .DS_Store | ||
|
|
||
| # Research (local notes, not for repo) | ||
| research/ | ||
|
|
||
| # Signing secrets (NEVER commit!) | ||
| *.keystore | ||
| *.jks | ||
| .env | ||
|
|
||
| # Screenshots and temp files | ||
| screenshot*.png | ||
| temp/ | ||
| nul | ||
| .serena/ | ||
| # Gradle | ||
| .gradle/ | ||
| build/ | ||
| !gradle/wrapper/gradle-wrapper.jar | ||
|
|
||
| # Android | ||
| *.apk | ||
| *.aab | ||
| *.ap_ | ||
| *.dex | ||
| local.properties | ||
|
|
||
| # IDE | ||
| .idea/ | ||
| *.iml | ||
| .DS_Store | ||
|
|
||
| # Research (local notes, not for repo) | ||
| research/ | ||
|
|
||
| # Signing secrets (NEVER commit!) | ||
| *.keystore | ||
| *.jks | ||
| .env | ||
|
|
||
| # Screenshots and temp files | ||
| screenshot*.png | ||
| temp/ | ||
| nul | ||
| .serena/ | ||
|
|
||
| # Auto Claude data directory | ||
| .auto-claude/ |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch posts a notification and returns without calling
startForeground(). Because health alerts are triggered viastartForegroundService(...)(seeConnectionHealthManager.triggerHealthNotification), Android O+ will throwForegroundServiceDidNotStartInTimeExceptionif the service wasn’t already running, causing a crash whenever a health alert fires while ADB service is stopped. Either usestartServicefor this action or callstartForegroundwhen handling the health-degradation intent.Useful? React with 👍 / 👎.