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
Server still disconnects when transferring APK file on Android phone #76
Comments
Thanks for reporting, I will try to reproduce the issue and will get back
to you,
Claudio
Il mer 15 ago 2018, 19:14 Eric Fung <notifications@github.com> ha scritto:
… I'm opening this issue because:
-
I have found a bug
-
I want to request a feature
-
I have a question
-
Other
-
My Go version is: go version go1.10.3 darwin/amd64
-
My GOPATH <https://github.com/golang/go/wiki/GOPATH> is set to: ~/go
I'm using the latest version of the tool (I ran go get … last night) and
saw that #13
<#13> was
supposed to be resolved.
But I continue to experience problems.
I'm trying to transfer an APK file to an Android device. When I scan the
code with, say, Zxing, Google Assistant/Lens, or even Twitter, I get
redirected to a browser, which gives me a popup warning that the file is
potentially harmful (since it's an application not downloaded from Google
Play store). The connection drops at that point. Sometimes a partial
download occurs. (I'm guessing the browser application downloads the file
in the background, while the user answers the prompt.)
Is there anything I can do, to help you diagnose this issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#76>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA5fi7JskBn11PgfJogAU6rexEBD3YwGks5uRFbygaJpZM4V-eZF>
.
|
I'm able to reproduce the issue and agree with what you've guessed. As a quick workaround you can zip it before transfer, you can do that by passing the
|
the browser is canceling the download because it is a apk? i don't understand it. |
I'm not sure what's going on.
Very rarely, the transfer starts and is partially downloaded. And just
once, the entire download completed.
…On Thu, Aug 16, 2018, 9:27 AM Rafael Acioly ***@***.***> wrote:
the browser is canceling the download because it is a apk? i don't
understand it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#76 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASYJqXPRieqb6tkzi3tI6zjSN7OjmCrks5uRXMtgaJpZM4V-eZF>
.
|
Android can't natively handle ZIP files. The end goal is to be able to install an APK directly. |
@efung you can comment out lines @claudiodangelis How about adding a flag on which the server will work as much as the user wants? |
I'll try that workaround, and like the idea of a flag to control whether the server is kept alive. It could even have a potential use-case of allowing you to transfer the same file to multiple devices. But I'm still curious as to why the download is being aborted. |
I'm adding the |
Please check out PR #78
|
Hmm. I'm not sure what's going on: I followed that script to execute Not sure why the connection is being cooperative now, as opposed to last week. Perhaps I wasn't correctly installing the binary with the fix to #13 in it? Or perhaps some other change in this PR is making the transfer more reliable? |
Try renaming the file to a unique name at each trial, maybe there is some
caching going on? Weird, I'm pretty sure I've been able to reproduce the
problem you reported.
Il lun 20 ago 2018, 21:10 Eric Fung <notifications@github.com> ha scritto:
… Hmm. I'm not sure what's going on: I followed that script to execute
qr-filetransfer from the PR branch. The first time, I didn't specify any
-keep-alive flag at all, and was able to succesfully download APKs to my
Android device. I repeated using a different QR code app, and was
successful again. I tried a third time, using -keep-alive=false, and was
*still* successful. And if I specify -keep-alive=true, I can verify that
the server is kept alive so that I can transfer again.
Not sure why the connection is being cooperative now, as opposed to last
week. Perhaps I wasn't correctly installing the binary with the fix to #13
<#13> in it? Or
perhaps some other change in this PR is making the transfer more reliable?
¯\_(ツ)_/¯
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#76 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA5fi4j-2yFPT6mkuuxNjfwA0NRCTSjGks5uSwmpgaJpZM4V-eZF>
.
|
I've tried on two different WiFi networks, and there's no consistent pattern. Sometimes, the APK is transferred fully, sometimes not. But with the |
Sounds like an "issue fixed" to me! Please feel free to reopen the issue if it needed. |
(BTW, you can put |
Oooh, I forgot about that trick. Thanks! |
I'm opening this issue because:
I have found a bug
I want to request a feature
I have a question
Other
My Go version is:
go version go1.10.3 darwin/amd64
My GOPATH is set to:
~/go
I'm using the latest version of the tool (I ran
go get …
last night) and saw that #13 was supposed to be resolved.But I continue to experience problems.
I'm trying to transfer an APK file to an Android device. When I scan the code with, say, Zxing, Google Assistant/Lens, or even Twitter, I get redirected to a browser, which gives me a popup warning that the file is potentially harmful (since it's an application not downloaded from Google Play store). The connection drops at that point. Sometimes a partial download occurs. (I'm guessing the browser application downloads the file in the background, while the user answers the prompt.)
Is there anything I can do, to help you diagnose this issue?
The text was updated successfully, but these errors were encountered: