Skip to content

Support Windows usage of the echoctl tool - #4

Merged
ygelfand merged 3 commits into
ygelfand:mainfrom
baronfel:feature/windows-release
Aug 11, 2026
Merged

Support Windows usage of the echoctl tool#4
ygelfand merged 3 commits into
ygelfand:mainfrom
baronfel:feature/windows-release

Conversation

@baronfel

Copy link
Copy Markdown
Contributor

Hi! I did a bit of work to make your tool usable for Windows users to ease my own explorations, so I figured I'd contribute it back if you're interested.

The tool basically Just Worked - I only had to implement the free-space check in a Windows-friendly way, and ensure paths that the tool pushed to the device via adb used Posix-friendly path separators.

Everything else is just build infra to ensure publish the Windows binaries as part of your existing release process.

Cheers, this was fun to use on my own Dots :)

@ygelfand

Copy link
Copy Markdown
Owner

thanks, doing windows builds was on my todo list, but sort of pushed it back since I don't use it myself, and the actual twrp install was, on the surface at least, linux/macos only.

import "golang.org/x/sys/windows"

// Free is the space left on the filesystem holding path, in bytes.
func Free(path string) (int64, error) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

this is only used on the dot, no? So I'm not sure the point of splitting it off, since on there it would not be windows?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it's mostly because the windows build still used the layout package for embedded build time data like version, etc. it was a very quick compilation wrror, ran into it almost immediately.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

ah makes sense, Free shouldn't be in layout anyway probably. Should just go into dot-side code, like diag. I can move it there after if you want to keep it as-is for now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sounds good - do you need any action from me?

@ygelfand
ygelfand merged commit 42cd8d1 into ygelfand:main Aug 11, 2026
1 check passed
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.

2 participants