-
Notifications
You must be signed in to change notification settings - Fork 120
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
Fix "Internet connection lost" errors #1913
Conversation
Windows 10 includes working adb drivers for many devices. The drivers we recommend people install are often more broken than these included ones. Fixes #1708
Prior to this change, it was possible for errors initializing or waiting on plugins to go undetected. Errors in wait() would bubble up to the "no-network" error, which has been even more confusing for users. Related, but does not fix: #1847
If Heimdall is started on Windows without the Microsoft Visual C++ 2012 Redistributable package installed, it will exit with status 3221225781. Since we're treating errors in wait() as fatal as of 3fa043c (and reinforced that decision in 4f3899c), catch and notify the user of this situation. They can choose to ignore it if they aren't installing on a Samsung device. I had to make some changes to the promise chains in the plugin index and in core.js. The changes to the plugin index caused several unit tests which were relying on very exact return values to fail, so they had to be refactored. Some tests didn't accurately describe or test their stated goals, so I fixed them up. This improves logging quite a lot.
Using 'npm install' causes npm to install the newest possible dependencies based on package.json. 'npm ci' uses package-lock.json instead. This ensures that releases are reproducible and so are test failures.
c6663df
to
67301f9
Compare
Codecov Report
@@ Coverage Diff @@
## master #1913 +/- ##
==========================================
+ Coverage 71.95% 72.28% +0.33%
==========================================
Files 25 25
Lines 845 884 +39
==========================================
+ Hits 608 639 +31
- Misses 237 245 +8
Continue to review full report at Codecov.
|
I've had successful installations on the Nexus 5, OnePlus One, and Volla Phone on macOS, Windows, and Linux (but not the Volla Phone on macOS because fastboot is broken there). |
I've uploaded the artifacts from the GitHub Actions run to https://nc.ubports.com/index.php/s/g7sB3xdRfPRsA53 for further testing. |
Fixes #1847, see there for more discussion of the issue.
(Done) Currently a draft PR. I haven't tested this fully on a Windows or macOS machine.
(Done) Requires ubports/promise-android-tools#56
(Done) Requires https://gitlab.com/ubports/installer/android-tools-bin is released