Skip to content
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

Failed install apk on device #321

Open
shri-0509 opened this issue Jul 13, 2022 · 2 comments
Open

Failed install apk on device #321

shri-0509 opened this issue Jul 13, 2022 · 2 comments

Comments

@shri-0509
Copy link

When I am trying to install apk on device ggetting below error
Installation of package failed PrematureEOFError: Premature end of stream, needed 1 more bytes
at Socket. (/app/node_modules/@devicefarmer/adbkit/lib/adb/parser.js:118:32)
at Socket.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)

Any help would be appreciated..

@pimterry
Copy link

I think this is caused by #366 - this is happening due to some kind of error on the device during install. One possible case is that the device is out of space, but there's probably many possible causes.

You'll need to install manually via ADB yourself, or patch adbkit to log its ADB output, if you want to see the full error message that Android is throwing.

@pimterry
Copy link

#366 has since been fixed, so failures like this should now have a clear error message that tells you why the install failed (so I think this can be closed).

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

No branches or pull requests

2 participants