Cannot install UT on my One plus one
-
Hello guys, i am new to the forum. I need your help.
I was very enthusiastic about using Ubuntu Touch, but i have to admit the installation is challenging to me.Here is what i tried so far:
I installed Minimal ADB Fastboot on my Windows PC
I have enabled Developer mode, along with ABD over network everytime i rebootI had trouble with using UBports installer, sometimes it asked for ffmpeg.dll
I've downloaded it and put it in the same folder with ubports-installer.
Didnt have trouble with that since then.I have a quality usb cable connected to my phone from my pc. I dont think that is an issue.
Once i start up the UBport installer it automatically recognizes my phone
(Note: I havent flashed my OS, or reset it to fabric settings/wiped Would that be an issue?)
I tried different options on this this step including: trying different channels, starting and install without either "Wipe Userdata" or without "Bootstrap"When i go to the option without Bootstrap, it automatically gets me into recovery mode on my phone...
Ubport Installer is searching for device continuously, while on my Phone i have in recovery mode a few options now:- Reboot system now
- Apply update
- Factory reset
- Advanced
I usually go with "Apply update" option > "Apply from ADB" Then it gives me the ADB Sideload screen
This is what i get as a result of trying to install, i will copy paste the error messageError: adb:preparesystemimage: Error : {"error":{"code":1, "cmd" : "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2ESF6YwUwSZQEc14I55fIb1nr2x\\resources\\app.asar.unpacked\\node_modules\\android-tools-bin\\dist\\win32\\x86\\adb.exe - P 5037 shell mkdir -p /cache/recovery"}, "stderr":"error: closed"}
All i can do from there is cancel the sideload and reboot my phone.
If i go with Boostrap, it just gets me to the window with name "Fast Bootloader" or something like that and its stuck forever on that screen while on UBport loader is updating firmware...
I must have missed something or havent installed it... hope what i shared with you can help you help me.
Thanks in advance
Edit: I also recieved this error just now, on this step:
-
@regular_guy I had this issue with Windows too. Try on Ubuntu or on a VM with shared USB ports.
-
@ikoz said in Cannot install UT on my One plus one:
@regular_guy I had this issue with Windows too. Try on Ubuntu or on a VM with shared USB ports.
So you think Windows may be the culprit? Thank you. I will try that solution rn with some VM/usb Ubuntu
-
@regular_guy It will install on Windows. The mistake most people make is installing old or wrong drivers. Download and install Android Studio. This will put the latest Fastboot and ADB drivers on your system. Then navigate to the Platform-Tools folder (which is usually hidden in Windows) and run anything you need to use ADB and Fastboot from there in terminal (but NOT the UT installer).
If this is your first time installing UT, don't get involved with the command line as it will tie you in knots.
The OnePlus ONE is a legacy device and is really easy to install too (I have had an issue once). Go into recovery and advanced. Clear Cache and Data. Reboot to the boot loader. Disconnect the device, start the UT installer, plug the device back in and in the Choose Your Device box choose the Oneplus One and follow the instructions.
Unless it goes badly wrong and you have to wipe and reinstall Android you don't need the command line with this device.
Don't run the UT installer from the command line as it cause permissions issues. Tick the boxes for the Fastboot bootstrap and wipe data on the installer, this is important on the first install and the fastboot bootstrap is important on all installs.
-
@regular_guy As you haven't mentioned it just double checking the bootloader is unlocked and that is was on the original OS before you started.
-
@lakotaubp Yes exactly. But since i am doubting everything might be good to double check
Edit: I checked everything, bootloader was on. The OS is Cyanogen OS version 13.1.2
Android Version: 6.0.1 -
@regular_guy By on do you mean unlocked? which is what is needed.
-
@lakotaubp Yes.
@MrT10001 Does Android studio install the drivers by default or do i have to install them?
When i go into Recovery mode > Advanced i dont have the option to Clear Cache and Data -
@regular_guy It might be Factory reset . Android Studio gives you the drivers by default. However, install Android Studio and try again.
For the nay sayers, since I have installed Android Studio, I have had very few if any issues with Fastboot and ADB. I messed around at the start of my road with phones and tablets and installed many different drivers and had loads of issues. Installing Android Studio has been a boon for me.
-
@mrt10001 In Factory Reset theres two options
-Full factory reset
-Wipe cache partitionI went with the second option just few minutes ago, rebooted and started the process all over again, still : Fastboot Mode stuck screen, UBports still looking for the device...
-
@regular_guy unplug the device and plug it back in again at that point.
-
@regular_guy and or try another usb cable.
-
@lakotaubp said in Cannot install UT on my One plus one:
try another usb cable
and/or a different USB port.
-
@moem
Or try plugging in a USB 2.0 hub. It may be due to usb 3.0. -
@chris_bavaria I've tried all the different solutions you guys suggested with usb ports previously.
Got the same errors, i am going to try to boot it from Ubuntu in Virtual Box.On another note i didnt update Win 10 with the latest update, so that possibly might be an issue...
-
@regular_guy Try it, but it shouldn't make a difference.
I would be tempted to start from scratch. Re-install Android, then try again. That way you can go back and see at which point causes the issue (done this a few times, esp on the Xiaomi phones).
-
@mrt10001 Flashed the OS and its still stuck on both UBports and Fastboot mode...
I am clueless on how to do this at this point to be honest, such a shame i really wanted a Linux distro phone... -
I think the problem is with ADB and Fastboot, drivers probably simply dont work.
-
I tried another solution on my different PC. When i try to run "fastboot devices" from PowerShell it gives me a response of unrecognized commands. So both of my PCs dont seem to recognize the drivers. One of the drivers i tried to install manually onto my OnePlus said that these drivers are too new for this phone
Edit: I was almost successful, it started flashing my phone before getting another error.Would downloading older versions of UBports might help perhaps?
-
@regular_guy Not really. What is your PC running, Windows or Linux (or MacOS)? I have used all three with very few issues. If it is Windows 7, ditch it and upgrade to Windows 10 (you can do this with your windows 7 license key as windows 7 is way past it's use by date).
The UT installer 0.9.7 is working fine with all devices I have flashed.
The OnePlus One should install pretty much straightforwardly. So... Take steps back.
Install Android Studio (on Windows or Linux) that will give you the latest drivers for ADB and fastboot. They rarely cause problems with old devices (I have absolutely none with my Moto G's etc.)
Ensure the boot loader is unlocked (which it is as you are getting so far).
Install TWRP: download from here.
Install TWRP from the bootloader using :
fastboot flash recovery <location of your TWRP img.>
Then at the bootloader select recovery.
In TWRP go to WIPE and format the data partition.
Go back to home screen and WIPE and choose Advanced wipe. Select DATA and choose to repair or change file system. MAKE SURE IT IS ON EXT4. If it is on something else UT will fail to install with odd errors.
GO back to the TWRP HOME page and and WIPE, Advanced wipe and tick the Cache, System and DALVIK/CACHE boxes and wipe them.
Reboot to the bootloader and try the UT installer again.
If it fails you need to reinstall Android CM 13.1.2 on the device and start again.
If you have had a custom ROM on the device in its past history, this can alter the partition size and UT won't install. Reverting to stock Android for that device usually resolves.
EDIT:
You must run terminal from the folder where the fastboot and ADB drivers are, so if you have installed Android Studio and you are on Windows, unhide your hidden folders and navigate to:
C:\Users\<user name>\AppData\Local\Android\Sdk\platform-tools
Read here to go back to Stock: