Hi,
following situation: i need to go back to stock as I am selling the phone.
My phone was encrypted somehow...
I have installed TWRP
I did flash latest Oxygen 4.1.5 Full Rom succesfully.
Then, I started decryption by using fastboot command "fastboot erase userdata" which was successfull. The decryption was away. But: Phone does not boot anymore into Android. I can only go to Fastboot and TWRP.
In TWRP I cannot mount "data" partition ( not possible to even check it as mount-option) and cannot do a factory reset (I see many red error messages then). If I boot phone normally, it shows Oneplus logo and then reboot into recovery. I assume my data partition was deleted?! I
I tried ADB sideload and sideloaded the full rom again, which ended successfully, but I still cannot boot into Android, same happens: it restarts into recovery automatically
Any idea what I should do now?
Many thanks for any help from you guys!
Try fastboot format system and userdata and then try to sideload again.
Sent from my ONEPLUS A3003 using Tapatalk
i trief format data before posting here but ended in errors too
Now i trief format system and format userdata and sideloaded again. All is back working now, thx very much Explorer23!
Related
Hello I tried to install a new rom to my tablet today but have had nothing but problems. Here's a list of the events that happened:
1. Unlocked bootloader, rooted and installed TWRP
2. Flashed this rom and Gapps.
3. Rebooted and waited a long period of time at boot animation before powering down
4. Tried re-flashing multiple times with no luck
5. Restored TWRP backup to stock rooted
6. Flashed CWM touch
7. Flashed the same ROM and Gapps
8. Rebooted to the same issue as before
9. Attempted multiple re-flashes to no avail
10. Attempted to mount USB to try a different rom and was unable to mount usb
I don't know what to do next and I'm really worried that I've bricked my new tablet I'm relatively familiar with Android but I'm currently at a loss.
Any help would be greatly appreciated!
Thanks in advance!
You can flash the stock ROM using the appropriate file from here:
https://developers.google.com/android/nexus/images#razor
The flash-all.bat file within also flashes the stock recovery. You can flash TWRP after that, if you'd like.
Flash-all.bat should format things properly. However, for best results, I like using fastboot to do a full wipe before any flashing:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
Thanks that seems to have worked!
Nice Job PanDae
Hey guys, as the title states, I'm struggling to install a custom ROM on my Nexus 5X, and I was hoping you guys could read what I did and tell me where I'm going wrong. This is my first time rooting via fastboot commands as whenever I try to root via NRT, SuperSU doesn't flash.
I've had a few failed attempts where my phone has been stuck in bootloop and I've flashed stock using Nexus Root Toolkit. I'll list what I do when trying to root, and if you could tell me where I'm going wrong, that'd be brilliant.
- My first step was to install stock (build number: MTC19T) via NRT
- Connect to the device via fastboot
- Bootloader is already unlocked so I don't bother with that
- Download SuperSU 2.74 in the phone
- Flash over a modified boot.img (found one for my build number on XDA by Tigerstown) via the fastboot commands
***I did this because when I tried to install the SuperSU zip from TWRP 3.0.2, my phone would reboot halfway through the flash and not root***
- Flash over the custom recovery (TWRP 3.0.2 for bullhead)
- Enter recovery from the bootloader
- Install SuperSU via TWRP
- Reboot the phone
- Check if I have root via a Root Checker app in the Play Store
***This part usually goes fine, I've tried it without the boot.img, but TWRP keeps rebooting the system when I try flashing SuperSU***
- Once my phone is rooted, I download Dirty Unicorns 6.0.1 and Banks Dynamic GApps to my phone (I've got these 2 downloaded to my laptop and I just transfer them over to my phone)
- I go back into recovery, I wipe the system (but not internal storage)
- Go to install in TWRP and try to install DU 6.0.1
***My problem here is that TWRP reboots halfway through the installation. I can't flash GApps after the ROM. My phone takes a while to boot up, but when it does, I have DU 6.0.1 even though the installation in TWRP didn't finish***
- I then go back into recovery to install GApps, but the same thing happens to TWRP, it freezes for a second and then reboots my phone.
***However, unlike DU, my GApps won't install. I've tried different a GApps package (Opengapps) but TWRP does the same thing every time***
To summarize, after I root and flash my ROM, I'm left with DU with no GApps. The issue I seem to be having is with TWRP not flashing GApps and I've tried a different version of it but the same thing ends up happening, it freezes for a second and then reboots my phone. I've also tried using SuperSU 2.65 but the same thing happens.
I know this is a long read, but any help would be seriously appreciated!
I haven't heard of twrp rebooting halfway through a flashing sequence before so I'm going to guess that something is corrupted.
I'll try to help you out as much as I can here but if twrp continues to reboot during a flashing sequence I would try to RMA the device and get a new 5X.
Based off what you have typed it sounds like you already have adb access on your computer so I'm going to suggest that you completely wipe the device with these commands:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase vendor
fastboot erase userdata
Reboot the device into bootloader mode and use this command:
fastboot format userdata <--- This is a must do so that twrp will mount data
Re-download the latest TWRP to make sure the one you have isn't corrupted and then flash it to the device using this command: fastboot flash recovery (name of twrp.img here)
Then flash the Cache.img and Vendor.img that is needed for the DU rom with these commands:
fastboot flash cache cache.img
fastboot flash vendor vendor.img
After the flashing is done boot into recovery mode and wipe the device using twrp. Reboot into recovery mode again. <---- this is a must do so that the other partitions will mount
Transfer the DU rom, Gapps, and SuperSU to the device and flash them while in twrp in this order:
1.) DU rom
2.) SuperSU
3.) Gapps
Reboot the device and you will have the DU with your choice of Gapps and root. Guaranteed.
HesThatGuy said:
I haven't heard of twrp rebooting halfway through a flashing sequence before so I'm going to guess that something is corrupted.
I'll try to help you out as much as I can here but if twrp continues to reboot during a flashing sequence I would try to RMA the device and get a new 5X.
Based off what you have typed it sounds like you already have adb access on your computer so I'm going to suggest that you completely wipe the device with these commands:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase vendor
fastboot erase userdata
Reboot the device into bootloader mode and use this command:
fastboot format userdata <--- This is a must do so that twrp will mount data
Re-download the latest TWRP to make sure the one you have isn't corrupted and then flash it to the device using this command: fastboot flash recovery (name of twrp.img here)
Then flash the Cache.img and Vendor.img that is needed for the DU rom with these commands:
fastboot flash cache cache.img
fastboot flash vendor vendor.img
After the flashing is done boot into recovery mode and wipe the device using twrp. Reboot into recovery mode again. <---- this is a must do so that the other partitions will mount
Transfer the DU rom, Gapps, and SuperSU to the device and flash them while in twrp in this order:
1.) DU rom
2.) SuperSU
3.) Gapps
Reboot the device and you will have the DU with your choice of Gapps and root. Guaranteed.
Click to expand...
Click to collapse
First of all, just wanted to say thanks for the reply. Unfortunately, I have a few questions (because I'm pretty new at rooting without NRT, so sorry for all these questions)
1) When I fastboot erase everything, is that basically getting rid of the Android OS from my device? If so, would I be able to recover it all by reflashing stock via NRT? (Just in case this goes horribly wrong)
2) What do you mean by adb access? Is that the terminal where you enter commands like "fastboot flash boot <boot.img>" after shift + right clicking on the explorer in windows? (I've been calling that fastboot access)
3) Where would I find the cache.img and vendor.img for DU? I've looked on the DU bullhead page but can't seem to find it.
4) When transferring files after I've flashed TWRP, would I have to sideload the ROM, SuperSU and GApps? I haven't been able to get the hang of that yet, they way I'm doing this is:
- opening the console command
- "adb usb"
- "adb devices"
- going into TWRP, advanced, sideload adb and swiping right
- "adb push <file>" ***not sure if this line is correct
My problem here is that when I swipe in my recovery, I seem to lose adb access. Am I doing this in the wrong order? Are there any other ways of sideloading?
Again, sorry for all the questions but I'm new at all of this and I really want root on my Nexus 5X.
thatguynaveed said:
First of all, just wanted to say thanks for the reply. Unfortunately, I have a few questions (because I'm pretty new at rooting without NRT, so sorry for all these questions)
1) When I fastboot erase everything, is that basically getting rid of the Android OS from my device? If so, would I be able to recover it all by reflashing stock via NRT? (Just in case this goes horribly wrong)
2) What do you mean by adb access? Is that the terminal where you enter commands like "fastboot flash boot <boot.img>" after shift + right clicking on the explorer in windows? (I've been calling that fastboot access)
3) Where would I find the cache.img and vendor.img for DU? I've looked on the DU bullhead page but can't seem to find it.
4) When transferring files after I've flashed TWRP, would I have to sideload the ROM, SuperSU and GApps? I haven't been able to get the hang of that yet, they way I'm doing this is:
- opening the console command
- "adb usb"
- "adb devices"
- going into TWRP, advanced, sideload adb and swiping right
- "adb push <file>" ***not sure if this line is correct
My problem here is that when I swipe in my recovery, I seem to lose adb access. Am I doing this in the wrong order? Are there any other ways of sideloading?
Again, sorry for all the questions but I'm new at all of this and I really want root on my Nexus 5X.
Click to expand...
Click to collapse
1) yes
2) yes
3) factory image zip found here
4) no, when you are in TWRP connect the phone to the computer you will get a window pop up that allows you to brows the internal storage of your device (sd card) you can freely move files back and fourth.
If you didn't execute "Fast boot Flash System 'system.img" not erase System Partition vis Recovery then no, it will not erase the system partition of the device.
Sent from my Nexus 5X using XDA-Developers mobile app
HesThatGuy said:
I haven't heard of twrp rebooting halfway through a flashing sequence before so I'm going to guess that something is corrupted.
I'll try to help you out as much as I can here but if twrp continues to reboot during a flashing sequence I would try to RMA the device and get a new 5X.
Based off what you have typed it sounds like you already have adb access on your computer so I'm going to suggest that you completely wipe the device with these commands:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase vendor
fastboot erase userdata
Reboot the device into bootloader mode and use this command:
fastboot format userdata <--- This is a must do so that twrp will mount data
Re-download the latest TWRP to make sure the one you have isn't corrupted and then flash it to the device using this command: fastboot flash recovery (name of twrp.img here)
Then flash the Cache.img and Vendor.img that is needed for the DU rom with these commands:
fastboot flash cache cache.img
fastboot flash vendor vendor.img
After the flashing is done boot into recovery mode and wipe the device using twrp. Reboot into recovery mode again. <---- this is a must do so that the other partitions will mount
Transfer the DU rom, Gapps, and SuperSU to the device and flash them while in twrp in this order:
1.) DU rom
2.) SuperSU
3.) Gapps
Reboot the device and you will have the DU with your choice of Gapps and root. Guaranteed.
Click to expand...
Click to collapse
Tried this method this morning, no luck though
Same thing kept happening, TWRP freezes for a second halfway through installing SuperSU (at extracting files) and then rebooting without root.
Gutted I can't get root on my phone
Since TWRP continues to reboot halfway through the flashing sequence I would recommend that you RMA the device and get a new 5X. There could possibly be a hardware failure occurring and with those it's best to try not to fix them yourself.
thatguynaveed said:
Tried this method this morning, no luck though
Same thing kept happening, TWRP freezes for a second halfway through installing SuperSU (at extracting files) and then rebooting without root.
Gutted I can't get root on my phone
Click to expand...
Click to collapse
Are you accepting when TWRP offers to root the phone for you? Don't! That feature does not work on MM and I think they took it out in 3.0x
Download SuperSU from Chainfire's website, flash the zip in Twrp and then install the SuperSU app from Play
berndblb said:
Are you accepting when TWRP offers to root the phone for you? Don't! That feature does not work on MM and I think they took it out in 3.0x
Download SuperSU from Chainfire's website, flash the zip in Twrp and then install the SuperSU app from Play
Click to expand...
Click to collapse
No, I can't even get to that stage. TWRP reboots whilst I'm trying to install SuperSU.
And by flashing the SuperSU zip, wouldn't I already have SuperSU on my phone? Why would I have to install it form the Play Store?
Anyways, I've given up on trying to root my 5X, like HesThatGuy said, my phone probably has some hardware issues and seeing as I bought my phone second hand, I can't replace it. So I'm just sticking with stock.
Thanks for the reply though mate :good:
Why in Matias Duarte's name are you rooting your phone before flashing a custom ROM? That is a massive waste of time and effort. DU is rooted. You dont need to root the stock ROM first.
First, redownload and fastboot flash TWRP. Redownload DU and the recommended GAPPS while you are at it. If you want to be unencrypted go to WIPE and select Format Data (this will nuke all photos, video, music, whatever on your phone. Back it up first). Don't reboot. Now plug your phone into your computer. Move DU and the GAPPS package you redownloaded to your phone. Wipe everything but internal storage. Add both DU and GAPPS to the flash queue. Flash those buggers. Enjoy.
Well, Long story short, I flashed Freedom OS on my Oneplus 3 and things went poorly. I set up a passcode and when my device booted, the passcode was somehow changed to one other than what I had put. Not only that, I seem to have no recovery on my device either. Basically I can boot into my lockscreen where I'm basically screwed, and I can mess with fastboot but I'm unable to flash a rom, twrp wont flash either. Please help, will do anything.
bparisi15 said:
Well, Long story short, I flashed Freedom OS on my Oneplus 3 and things went poorly. I set up a passcode and when my device booted, the passcode was somehow changed to one other than what I had put. Not only that, I seem to have no recovery on my device either. Basically I can boot into my lockscreen where I'm basically screwed, and I can mess with fastboot but I'm unable to flash a rom, twrp wont flash either. Please help, will do anything.
Click to expand...
Click to collapse
Did you try the mega unbrick guide ? http://forum.xda-developers.com/oneplus-3/how-to/guide-mega-unbrick-guide-hard-bricked-t3405700
bparisi15 said:
Well, Long story short, I flashed Freedom OS on my Oneplus 3 and things went poorly. I set up a passcode and when my device booted, the passcode was somehow changed to one other than what I had put. Not only that, I seem to have no recovery on my device either. Basically I can boot into my lockscreen where I'm basically screwed, and I can mess with fastboot but I'm unable to flash a rom, twrp wont flash either. Please help, will do anything.
Click to expand...
Click to collapse
Recovery:
I assume you are on FreedomOS CE, have you flash the recovery who's recommended for the CE version?
If no, read the op: http://forum.xda-developers.com/oneplus-3/development/rom-freedomos-ce-1-7-t3470660
and use this command in fastboot:
Code:
fastboot flash recovery twrp-3.0.2-19-oneplus3.img
Lockscreen / data:
Because you have set a passcode at the booting time (not the basic lockscreen).
You can't restore all your data, because all the partition is now encrypted, the only way to access to that is to use the passcode.
The only way to fix that is to format your data partition in fastboot (not twrp).
Code:
fastboot format userdata
NevaX1 said:
Recovery:
I assume you are on FreedomOS CE, have you flash the recovery who's recommended for the CE version?
If no, read the op: http://forum.xda-developers.com/oneplus-3/development/rom-freedomos-ce-1-7-t3470660
and use this command in fastboot:
Code:
fastboot flash recovery twrp-3.0.2-19-oneplus3.img
Lockscreen / data:
Because you have set a passcode at the booting time (not the basic lockscreen).
You can't restore all your data, because all the partition is now encrypted, the only way to access to that is to use the passcode.
The only way to fix that is to format your data partition in fastboot (not twrp).
Code:
fastboot format userdata
Click to expand...
Click to collapse
THANK YOU SO MUCH! The data format completely fixed it for me, thank you so much!
I have rooted my OP3 and manually updated to 3.2.6 O2 os,but unfortunately device get unrooted and no custom recovery is there.But now i want to root and install custom recovery but Facing problem with ADB Interface Device can't be detected in Fastboot mode????please help me out.
Hi,
I unlocked Oneplus 3 and installed TWRP then OxygenOS Community 3.5.3
Everything was working fine, I had to reset mobile, so went to setting and reset.
It crashed Recovery. Now I am unable to boot into recovery, I tried to flash recovery using fastboot and it end successfully but still can't boot into recovery.
I tried to format recovery partition and got this error.
Formatting is not supported for filesystem with type ''.
Somehow filesystem of recovery isn't recognized.
Any help will be apperciated.
try using fastboot to flash different recovery, 3.5.3 messed me up the same way, I can't remember what I did but I remember having to fastboot different twrps i believe i ended up using 3.0.2.0-19 and it finally booted back into recovery. 3.5.3 firmware is known to break twrp. Fastboot different twrps until it boots into one and do not flash 3.5.3
Resolution and happy ending detailed in answer below.
I've been running 7.1 since its release. I've had Elemental X as my kernel, with SuperSU as well.
Today, I tried using the adb sideload for the ota.zip to 7.1.1. My computer here at work was refusing to recognize my XL when in recovery via ADB - ADB works just fine when the phone is booted, and fastboot works as well. Tried reinstalling Google drivers, and a different ADB/fastboot setup, and this didn't fix the issue.
Okay, so then I decide I'll try flashing the relevant .img's from the 7.1.1 NMF26O factory image. I flashed bootloader, radio, system, system_other, modem, and boot. I then flashed EX's kernel (elex.Image) instead of using the .zip for TWRP. I then booted the SR3 boot-to-root.img since I do not want to install TWRP at this time.
I got the few typical reboots, and now my phone goes directly to recovery and states "no command." Then the phone reboots itself after about 30 seconds, and keeps on doing this.
I tried re-flashing just the factory image files that I previously mentioned, without flashing EX and without booting the SuperSU img. I am still getting the same problem. I do not want to try a flash-all.bat and erase all my userdata if I don't have to. But I also saw someone else post that they ran into this issue of hitting "no command" on boot, and couldn't even flash the full factory image because it tries to flash recovery.img which is not part of the factory image files - what in the actual ****, why would the .bat try to flash recovery if it isn't there?
Right now I am trying to re-flash 7.1's files to see if I can just get back onto 7.1 with my userdata intact... but if anyone can provide insight on how I ****ed this up (because in my opinion, I did everything right), I'd appreciate it.
Edit: Tried flashing 7.1's files, and same issue... ridiculous. Trying the flash-all.bat and a factory reset now for 7.1.1.
Edit 2: Tried the flash-all.bat, and it successfully flashes bootloader and radio. It tries sending the .zip with the rest of the .img's, and fails because of insufficient space. I formatted userdata and did a factory reset in recovery as well, and am still having this issue... going to try the Unified Toolkit next to see if it can save me. This is bull**** though. Never have I had a Google device go this ballistic and unable to be EASILY recovered with the factory image!
Same thing happened to me. I don't know how I fixed mine, if that makes sense, but do you know what boot slot your on? A or B? Also what command are you using to flash all the images.
Are you doing
Code:
fastboot flash boot boot.img
or (x being the boot slot you are currently in)
Code:
fastboot flash boot_x boot.img
I chose this IMG as example. Nothing particular
I tried both. First was fastboot flash boot.img. Once I started having the recovery issue, I tried fastboot flash boot_a and boot_b with the factory images. I also just tried the flash-all.bat, and after it flashes the bootloader and radio, it says there is not enough space to send over the ~2 GB zip file with the other .img's to be flashed.
Using the Unified Toolkit with the factory image from Google worked. It does not use the flash-all.bat, and flashes each piece of the factory image with its own commands so there was no error relating to lack of storage space. Watching the flash commands go by, it appears my error may have been using "fastboot flash system system.img" because the Toolkit used "fastboot flash system_a system.img". I was using system_b for the system_other.img, but not system_a for system.img. NONE of the articles on the web relating to flashing the factory image for a Pixel/XL said anything about system_a, so they are likely using dated flash methods.
My phone is now alive.
This was also the LEAST PAINFUL factory reset I've ever done. Using the restore from cloud option during setup, and selecting my Pixel XL (last used today), it immediately restored my home screen layout (apps grayed out until downloaded), my texts are all back, and most app data is restored as well IF you allowed them to backup to Drive during your initial setup. I basically lost nothing but my time in doing all of this.
Thanks for sharing this! I will now use this tool from now on. Glad you were able to solve your problem