Repository navigation
Open
Description
App
Phone
- Samsung Galaxy Note 4 SM-N910H
- Android 7.1.1 Nougat (API 25)
- armeabi-v7a
Desktop
- Windows 11
- x86-64
- Pro for Workstations
- 25H2
- 10.0.26200.7171
Logs
Windows Terminal
set "RUST_LOG=trace"
set "RUST_BACKTRACE=full"
cd /d "%LOCALAPPDATA%\Kodular Starter\"
"starter.exe" > "starter.exe.log" 2>&1starter.exe.log
�[2m2025-11-17T02:20:33.806151Z�[0m �[35mTRACE�[0m �[2mmio::poll�[0m�[2m:�[0m registering event source with poller: token=Token(1623474573184), interests=READABLE | WRITABLE
�[2m2025-11-17T02:20:37.973618Z�[0m �[34mDEBUG�[0m �[2madb_client::device::adb_usb_device�[0m�[2m:�[0m Autodetect device 04e8:6860
Error: UsbError(NotSupported)
�[2m2025-11-17T02:20:38.249792Z�[0m �[35mTRACE�[0m �[2mmio::poll�[0m�[2m:�[0m registering event source with poller: token=Token(1623495284480), interests=READABLE | WRITABLE
�[2m2025-11-17T02:20:38.462673Z�[0m �[35mTRACE�[0m �[2mmio::poll�[0m�[2m:�[0m registering event source with poller: token=Token(1623495885568), interests=READABLE | WRITABLE
�[2m2025-11-17T02:20:41.482278Z�[0m �[34mDEBUG�[0m �[2madb_client::device::adb_usb_device�[0m�[2m:�[0m Autodetect device 04e8:6860
Error: UsbError(NotSupported)
�[2m2025-11-17T02:20:45.641150Z�[0m �[34mDEBUG�[0m �[2madb_client::device::adb_usb_device�[0m�[2m:�[0m Autodetect device 04e8:6860
Error: UsbError(NotSupported)
�[2m2025-11-17T02:20:49.402021Z�[0m �[34mDEBUG�[0m �[2madb_client::device::adb_usb_device�[0m�[2m:�[0m Autodetect device 04e8:6860
Error: UsbError(NotSupported)
�[2m2025-11-17T02:20:52.671678Z�[0m �[34mDEBUG�[0m �[2madb_client::device::adb_usb_device�[0m�[2m:�[0m Autodetect device 04e8:6860
Error: UsbError(NotSupported)
�[2m2025-11-17T02:20:55.945930Z�[0m �[34mDEBUG�[0m �[2madb_client::device::adb_usb_device�[0m�[2m:�[0m Autodetect device 04e8:6860
Error: UsbError(NotSupported)
�[2m2025-11-17T02:20:59.264835Z�[0m �[34mDEBUG�[0m �[2madb_client::device::adb_usb_device�[0m�[2m:�[0m Autodetect device 04e8:6860
Error: UsbError(NotSupported)
�[2m2025-11-17T02:21:00.302097Z�[0m �[35mTRACE�[0m �[2mmio::poll�[0m�[2m:�[0m deregistering event source from poller
�[2m2025-11-17T02:21:00.302315Z�[0m �[35mTRACE�[0m �[2mmio::poll�[0m�[2m:�[0m deregistering event source from poller Screenshots
Problems
The Kodular Starter couldn't detect the phone.
Latest Samsung USB Driver is installed.
USB Debugging is enabled.
Typical adb commands with the latest SDK Platfrom Tools are working.
So the issue is clearly on the Kodular Starter.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Unknown78 commentedon Nov 17, 2025
Suggestions
Starter/src-tauri/Cargo.toml
Line 30 in 59eaafb
First, Perhaps updating the
adb_clientmight help.Second, implement fallback mechanism to use external
adbfrom SDK Platform Tools.End-users could install it by themselves, and then there will be environment variable or GUI settings to set where the
adbbinary is.Unknown78 commentedon May 5, 2026
@pavi2410 @barreeeiroo Please help.
Further reference:
#26 (comment)
pavi2410 commentedon May 5, 2026
Sorry, I missed looking at this issue. I'll have a look later today.
pavi2410 commentedon May 7, 2026
#26 (comment)
pavi2410 commentedon May 7, 2026
#28
Opened this PR with the aforementioned options to use system and custom ADB and use builtin one as a fallback.
Unknown78 commentedon May 8, 2026
Sorry for the wait, I need to test it properly.
I use
GitHub Codespaceto obtain the binary.The full path output is:
So far it looks good.
The app is able to locate the
adbvia environmentPATH.And
starter.kodular.iois able to detect the app and the phone just fine.Unknown78 commentedon May 8, 2026
However there are issues.
First
The UI to set the adb path is different from the environment
PATHDo you want the user to set a custom path and then
Kodular Starterlooks up the image/binary?Or do you want the user to set an image path of
adb?The direct custom image path is working

But the custom path is not working

Second
With the UI settings of custom image path of
adbThere will be an error periodically on the log even though the server is running fine.
Third
Assume I don't use the external adb and I'd just like to test the
Starterserver.Then if I launch multiple instance of
Kodular Starterorstarter.exeprocesses, then first one remains but the second one throws an exception instead of exiting gracefully.https://github.com/Kodular/Starter/blob/feat/adb-path-detection/src-tauri/src/server.rs#L45
Fourth
Assume I have already launched the
Starterapp and the ADB server is running.First, if I close the app, then the
adb.exeprocess is still remains.Second, and if I try to launch the app again, it will throw an exception just like the third issue.
My suggestions:
adb.exeserver may be shared with another processes such asgnirehtetorAndroid Studio, there could be a UI checkbox setting whether to gracefully kill the server at exit or not.Unknown78 commentedon May 8, 2026
https://github.com/Kodular/Starter/blob/feat/adb-path-detection/src-tauri/src/server.rs#L45
0.0.0.0is an unspecified address in Windows unlike localhost in Linux, do you really think it won't cause issues?It reminds me of a similar issue: tramhao/termusic#356 (comment)
pavi2410 commentedon May 8, 2026
I would allow both:
I would also extend the UI to check and display validity of the detected adb under the custom path.
pavi2410 commentedon May 8, 2026
Just yesterday, this came up in my head to force single of the Starter app. Multiple instances wouldn't be any useful in our case. There is a Tauri plugin that helps with that - https://tauri.app/plugin/single-instance/
Unknown78 commentedon May 9, 2026
Okay, I'll be glad to test it.
pavi2410 commentedon May 9, 2026
Changed from the original suggestion — instead of supporting both directory and file paths, the custom path now expects a direct path to the ADB binary. The System mode has also been removed; there are now just two modes: Auto and Built-in only.
Auto mode walks a detection chain — custom binary → $ANDROID_HOME/platform-tools/adb → $PATH → built-in fallback — so most users won't need to set anything manually. When a custom path is set, the app immediately tests it with adb version and shows the result inline — ✓ with the version string, or ✗ with a "Test again" button. Save is blocked until the path is valid or cleared.
Unknown78 commentedon May 9, 2026
Okay, I've just tested it based on the current head of 224b697
The adb detection from the system PATH and custom binary path is working,
The single instance plugin is also working, no more exception for multiple instance.
However there are still issues.
Multiple error of these are still appearing in the log despite being shown to be detected in the GUI setting screen.
The setting screen performance due to testing needs to be improved.
I observe that it launched
adb versionbut I don't understand why the test should be that long.I can't switch to the main screen back and forth fast enough.
If a better performance solution couldn't be found, then maybe a toggle switch + button to manually detect adb is also fine.
The previous Fourth issue is still remains, but now it does not crash the app,
Weirdly, it crashed the
Starter serverinstead of theADB service.Unknown78 commentedon May 10, 2026
I've just tested it based on the current head of 0bdab36
Okay some are fixed.
Killing ADB server...afterExiting Starter...is working.A trivial thing that I notice is that, after clicking the
Testbutton, the text of✓ Android Debug Bridge version 1.0.41appeared on the left side of the button instead on the right or the bottom of it, I don't know if that's intentional or not.Now the last one still isn't fixed.
Assume I have no
adb.exeprocesses initially in the background.Then I launch
Kodular Starterand disable/untick the setting ofKill ADB server when app closes.Then I close the app. The results is that the
adb.exeprocess is still remains.Now, if I launch the app again, then it will throw a binding error.
Which resulted in the
Starter Serverbeing stopped as shown by the screenshot as above.With
System Informer, it it shown that that the address of127.0.0.1:8004is inherited by theadb.exefrom the app.Why does ADB need to inherit that address in the first place?
Does the solution involve disabling address inheritance for the child process?
Or is it possible to make the handle lock of the child process for that address vanishes when the kodular process stopped?
Most of all, what types of TCP-based communications are needed between
kodular-starter.exeandadb.exe?pavi2410 commentedon May 10, 2026
@Unknown78 this is gold! I must appreciate your thankless efforts in testing out this Kodular Starter.
Last day, I had to restructure the whole of codebase to express the intent better and improve performance by not doing silly things. Looking back, what was once a single-file Python script, has now turn into a full-blown desktop app. This goes to say how hard is to make robust and reliable software. There is always a new learning everyday :)
Getting back to this issue, there are couple of issues to solve outside Windows support too, which I will test later once I have this fully working on macOS. One issue is that there is a bug in Kodular Creator that makes USB connection non-functional. I have tried to explore that and I think I now what's broken. I just have to spend time to find the cause and fix that.
I noticed this too, but have ignored this to work on core issues. I will iron them out in the final pass.
child process do inherit open sockets. A quick search says that Rust/Tokio prevent inheritence by default. It will be interesting to find out what's going on.
Yes, I have to look through the code for proper closing and cleaning up resources, especially the background jobs (local server and adb monitor).
sequenceDiagram box Kodular Creator participant KC as Browser end box Kodular Starter participant AXM as HTTP Server (:8004) participant AC as ADB Client end box Host Machine participant ADBS as ADB Server (:5037) end box Android Device participant ADBD as adbd end KC-->>AXM: HTTP (localhost:8004) AXM->>AC: delegate ADB calls AC-->>ADBS: TCP (localhost:5037) ADBS-->>ADBD: USB ADBD-->>KC: TCP (:8001) forwarded via ADBpavi2410 commentedon May 10, 2026
I hit a road block at providing full builtin USB support using adb_client: cocool97/adb_client#201
Unknown78 commentedon May 10, 2026
No problem brother, it's also my pleasure to be able to help. ;)
Yeah I notice from the commit history that you have written everything from scratch, from Python to V to Rust. Each has its learning curve and caveat. It must have been a wonderful journey and you should cherish it ;)
Based on your diagram, the connection between
kodular-starter.exeandadb.exeis with the port of5037and not8004And I'll be glad to test later whether the
127.0.04:8004address is still being inherited or not.That's a pretty diagram anyway, I think it would be good to put it on
README.MDhttps://github.com/Kodular/Starter/blob/v3.0.0/src-tauri/Cargo.toml#L30
So since the
Kodular Starter v3.0.0does that mean thatADB over direct USBdoesn't work?If so, then why did you release it? Or is it a regression due to a newer version of
adb_client?I can't test it on my device due to the issues around
libusbas per earlier discussion.Unknown78 commentedon May 12, 2026
Found a new bug,
Assume I've had saved the ADB mode to be
BuiltinUsband then close the app.If I then launch the app, it shows that the
ADB Serviceis stopped, this is expected.Now if I go the settings, and then change the mode to
Auto, and then saves it.The
ADB Serviceis still stopped, and there is no log that indicates that the mode had changed.The log only appears around the app launch.
Weirdly, the
BuliltInUsbmode starts the ADB monitor.Unknown78 commentedon Jun 5, 2026
@pavi2410 It's been a month, please tell me what else can I test.
pavi2410 commentedon Jun 5, 2026
I apologise for that! I've been very busy and exhausted at my day job last few weeks.
Unknown78 commentedon Jun 5, 2026
There's nothing to apologize for, I just like to help. 😄
Unknown78 commentedon Nov 17, 2026
@pavi2410
cocool97/adb_client#201
It seems to have been implemented.
What do you think?
pavi2410 commentedon Nov 21, 2026
@Unknown78 This is now implemented in #30. Not tested on Windows and Linux.
Fixed
New
2026.05 (446), or "Not installed" if it's missing.Improved