Replies: 1 comment 4 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently writing a minimal demo with Redux based on the
v0.0.20version. However, when I was trying to callspawnAndWait(), it always warned me aboutSocket open failed. But when I tryshell(), it returned something.Here's a function that handles my "Run Command" button:
In the code above – as previously mentioned – it works only when I ran with
const result = await currentDevice.subprocess.shell(["ls"]);, and it returns aAdbSubprocessNoneProtocolobject, which is something look like this:When I ran with
const result = await currentDevice.subprocess.spawnAndWait(["ls", "/opt"])orconst result = await currentDevice.rm("/mnt/UDISK/hello.py"), it prompted an error modal and doesn't return anything, , here's how it looks:I also tried the native
adb shell lsin my terminal, and it worked very well. Is there something I missed? Please help me figure out this problem, thanks!Here's my full code
Beta Was this translation helpful? Give feedback.
All reactions