Open Fazarel opened 2 years ago
If I put device in fastboot mode (power button + vol down) then the ubports installer shows another error :
Error: plugin wait(): Error: {"message":"Unexpected getvar return: getvar:product FAILED (remote","name":"fastboot"}
Fastboot doesn't seem to work since I installed Android 9 (recommended file jasmine_sprout_stock_android9.zip, build=xiaomi/jasmine/jasmine_sprout:9/PKQ1.180904.001/V10.0.2.0.PDIMIFJ)
$ fastboot boot twrp-3.6.0_9-0-jasmine_sprout.img Sending 'boot.img' (31684 KB) FAILED (remote : 'unknown command')
fastboot : error : Command failed
Other messages in ubports installer (device in fastboot mode, "select device manually"):
Error: preparing: TypeError: Cannot read property 'codename' of null
Error: uncaught exception at uncaughtException: TypeError: Cannot read property 'condition' of undefined
Error: fastboot:format: Error: formatting failed: Error: {"error":{"code":1,"cmd":"fastboot format:ext4 system"},"stderr":"FAILED (remote: 'unknown command')\nfastboot: error: Command failed"}
I was able to install Ubports using another computer that is running Windows 10.
At first the installer was stuck on "Cleaning up / Formatting partitions..." and did not seem to recognize the phone in fastboot mode ("Waiting device..."). The solution was to install the fastboot driver for the phone. When plugged in and in fastboot mode, device manager > right click on the device: search for the driver with windows update > install the driver ("Google, Inc. - Other hardware - Android Bootloader Interface"). Then, the installation went smoothly and Ubports works :). Thanks to the Ubports family!
So I wonder what I could have done with Linux (Debian 11): how to install the drivers to use this phone (Xiaomi Mi A2) in fastboot mode with Debian or another Linux?
Again, thanks for your work.
(If it helps: my idea when I tried with another computer was because I read on forums that people had the same problem, which would come from the USB 3 port and that the solution was to try on a USB 2 port...)
I had similar problem on Ubuntu laptop, some people were suggesting this is problem with USB 3.0, I took older Mac to try installing on it - and it worked (could be worth trying using other machine if available - even if idea sounds "funny")
UBports Installer
0.8.9-beta
(AppImage) Environment:Debian GNU/Linux 11 bullseye linux 5.10.0-9-amd64 x64 NodeJS v12.18.3
Device: jasmine_sprout Target OS: Ubuntu Touch Settings:undefined
OPEN-CUTS run: N/A Log: N/AInstall with ubports installer
Error: