Lost all android files
-
I was running ubports on a oneplus one for about a month...all good. I downloaded some ringtones started glitching. I factory reset,downloaded ubports again, touchscreen was only working on upper half of the screen. I seem to have lost all android files. Maybe at factory reset?? How to I re-install android os?
-
@83jnsn Run the installer with the wipe option ticked that will give you a clean install of UT. if you need to keep anything on the phone back it up first.
-
To reinstall Android, you can follow any guide on installing the stock ROM or an alternative ROM on your device.
-
On Linux, to reflash a OnePlus One to stock, I unzip the last CyanogenOS update (which I'm pretty sure was "cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot.zip" which you can find on various Android file hosts around the net) and then run the following while the phone is in fastboot mode and plugged into the computer:
fastboot flash modem NON-HLOS.bin fastboot flash sbl1 sbl1.mbn fastboot flash dbi sdi.mbn fastboot flash aboot emmc_appsboot.mbn fastboot flash rpm rpm.mbn fastboot flash tz tz.mbn fastboot flash LOGO logo.bin fastboot flash oppostanvbk static_nvbk.bin fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash boot boot.img fastboot flash cache cache.img fastboot flash userdata userdata_64G.img
If you have the 16 GB version and not the 64 GB, substitute this for the last command instead:
userdata.img
I presume the commands are similar on Windows and OSX.
I'm not exactly sure how to get OxygenOS on there instead of CyanogenOS. Never ran it myself.
-
@trainailleur said in Lost all android files:
On Linux, to reflash a OnePlus One to stock, I unzip the last CyanogenOS update (which I'm pretty sure was "cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot.zip" which you can find on various Android file hosts around the net) and then run the following while the phone is in fastboot mode and plugged into the computer:
fastboot flash modem NON-HLOS.bin fastboot flash sbl1 sbl1.mbn fastboot flash dbi sdi.mbn fastboot flash aboot emmc_appsboot.mbn fastboot flash rpm rpm.mbn fastboot flash tz tz.mbn fastboot flash LOGO logo.bin fastboot flash oppostanvbk static_nvbk.bin fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash boot boot.img fastboot flash cache cache.img fastboot flash userdata userdata_64G.img
If you have the 16 GB version and not the 64 GB, substitute this for the last command instead:
userdata.img
I presume the commands are similar on Windows and OSX.
I'm not exactly sure how to get OxygenOS on there instead of CyanogenOS. Never ran it myself.
thanks for the info, I know it's been awhile. I've unzipped the update, plugged my phone in but not sure where to run these commands, doesn't appear to be in terminal. What to do next?
-
@83jnsn you need to run those commands in a CLI on your computer
-
@advocatux said in Lost all android files:
@83jnsn you need to run those commands in a CLI on your computer
Yes. In a Linux terminal, or very probably an OSX terminal too. Not sure about Windows.
You will need fastboot installed on your computer and 1) available in your path, 2) run from the directory where it's installed, or 3) qualify the path when you call fastboot (e.g., if it's in /home/foo/bin, then call it as /home/foo/bin/fastboot). I always just put it in my path.
-
@Lakotaubp Thanks I did try that. Touch screen still only works on the top half. I can turn the phone 180 degrees to use touch screen on other half. Still trying to get android back
-
@83jnsn If you want to reflash your Oneplus One back to android/cyanogen a quick internet search will solve that. Other than that after reinstalling UT with the wipe option your device will have all the same OS files on it again. So not sure why the screen is not working, unless that is unrelated to the first issue. Sorry if misreading your question.