I have a OnePlus 5 with `OnePlus5Oxygen_23_OTA_069_all_2010292138_6700.zip` flashed on it. Since yesterday it won't boot (it's stuck on the boot animation and isn't recognized as a USB device).
There is some data on it I would like to recover.
If I boot the stock recovery, it prompts for the PIN and then successfully opens ("decrypts") the data partition with it. Many TWRP releases (tried various versions/flavours from `twrp-3.3.1-0-20190713-codeworkx-cheeseburger.img` to `twrp-3.6.2_9-0-cheeseburger_dumpling.img`, including `twrp_unified-dumpcheese-poad42_v1.4.img`, `twrp-3.4.0-x_blu_spark_v9.116_treble-op5_op5t.img` and `[email protected]`) also prompt for the PIN but still can't unlock the data: `/data` gets mounted but the filenames are encrypted. `/vendor/etc/fstab*` has `fileencryption=ice` in case that helps.
I tried reflashing the OxygenOS zip, but it didn't fix the bootloop. I tried booting in safe mode (using various combinations with the volume down button, the power button, the volume up button and the home button), but the furthest I was able to get is the same bootloop (with no indication that the phone was in safe mode).
My main interest is recovering the data; making the phone boot again is secondary but also desirable.
What are my options? Ideally, there'd be a way to "decrypt" the data from an adb shell prompt started in TWRP; second best would be to be able to mount and read a blockdevice level dump of the data partition on Linux. Are there any custom ROMs that are known to be able to open data partitions encrypted in FBE mode by OxygenOS?
Related
I hope this isn't a silly question; I couldn't find an answer...
Is there any way to boot an image, e.g. the cm hero recovery image, from SD, or even from the phone memory?
I'd like to be able to use nandroid to do a backup, without having to connect up the phone to the PC and fastboot the recovery image from there.
I didn't really want to reflash the Hero (although I will if I have to), just occasionally boot a different image, with that image stored on the phone itself.
thanks much for any ideas...
and the answer is...
...install the recovery image as the Recovery Image
It seems that the Hero supports three concurrent bootable images:
- regular ROM (default at power on)
- Bootloader (hold down "back arrow" whilst powering on)
- Recovery (hold down "Home" whilst powering on; not installed on stock devices. Gives exclamation mark icon then wedges up; remove battery and replace)
So, the recovery image can be installed manually, and can then be booted directly, with Home+PowerOn, just as I wanted.
Details here:
http://android.modaco.com/content/h...ed-recovery-image-on-your-device-permanently/
[no doubt everyone else knows this already, except me, but just in case... ]
Hello guys, I am facing a major problem:
I have encrypted my N7 in the past, and now I replaced the faulty 3.34 bootloader with the 4.18 version. All went well, but for some reason my encryption password change so I can not go into recovery anymore. ( I have made sure that I did not mistype my old password )
Right now the only thing I have is Fastboot and a encrypted recovery. My question is: How to remove the encryption fully? I have tried:
- Re-locking and unlocking the bootloader (as it wypes all data) NO RESULT
Is there ANY way to remove the encryption from the fastboot menu?
Please and thank you
For anyone who is interested and facing the same problem: Flashing the stock rom via Fastboot worked.
Thread can be closed
SiemHermans said:
Is there ANY way to remove the encryption from the fastboot menu?
Click to expand...
Click to collapse
I would like to see a picture of a fastboot screen displaying any messages about encryption.
Are you sure you don't mean custom recovery or OS boot prompting about encryption passwords?
The OS concludes that the userdata partition is encrypted if it fails to mount it in the early boot - for any reason at all. This *could* be due to the fact that it actually was encrypted (as it apparently was in your case), but it could also be due to other failures such as a corrupted filesystem, hardware problems, etc.
BUT, if the tablet is otherwise working correctly, a "factory reset" (performed by a STOCK recovery, not a custom recovery) is supposed to be able to wipe & format userdata so that the "encryption" disappears. In this (successful) case the tablet would boot as if new; after all, the factory reset does not wipe whatever ROM was in the system partition.
The fact that you went through a lock/unlock step suggests that your bootloader (which version did the lock/unlock step?) should have already taken the correct action(s).
You can try this:
Code:
fastboot erase userdata
fastboot format userdata
to see if it makes any change in the behavior of the (custom?) recovery. (FYI the above procedure also fully wipes the SD card area, but I suppose you already know that)
I won't guarantee it will do anything, but it is worth a shot.
Also remember that if you have fastboot set up correctly you should be able to boot other recoveries without hard-flashing them to the tablet, e.g.
Code:
fastboot boot custom-recovery-image-file.img
You can use this if you suspect there is something wrong with your recovery, want to use a different version, etc.
Hi,
my Nexus 4 is stuck in a boot loop since 2 days. I found it turned off and assumed it crashed (has done that once or twice before), but after turning it on it's gets stuck on the boot up screen. I've tried restarting it numerous times, left it on the boot screen for hours - nothing.
I can access the recovery mode and according to most things I've found while searching the internet for a solution a "wipe data/factory reset" would hopefully do the trick, but the thing is... I haven't backed up my device in ages. (Stupid, I know.) I'm travelling and took a lot of pictures that I would hate to loose.
Is there any way to save them? I don't care for app data or anything else.
I wouldn't mind rooting it (was thinking about doing that anyway), but I'm pretty much a n00b when it comes to Android, haven't done more with it than simply using it.
I have read up quite a bit about rooting in the last two days (here on the forum and everywhere else) but I'm still not sure how exactly to do it, since all methods seem to require unlocking the bootloader and therefore deleting my photos (or just don't give much in the way of explanation).
I'm using a mac, but if necessary I also have Windows installed. I have installed Adb and fastboot following this guide.
The phone is not rooted, I don't have developer options or USB debugging enabled and it's running on 4.4.4.
I would be really grateful for help.
If you can boot into the bootloader you can install a custom recovery, I'd recommend twrp. Then booting into the custom recovery you could use adb to pull files off your device . But your bootloader needs to be unlocked. If it isn't I'm afraid you won't be able to get your photos
Sent from my SAMSUNG-SGH-I957 using XDA Free mobile app
bootloop issue
A.
Try to go into safe mode and backup your data.
Boot into Safe Mode:
1. Press/Hold Power button until power menu shows up
2. Tap/Hold Power off option
3. Choose OK to reboot in safe mode
B.
For bootloop problem:
Boot into Stock Recovery
1. Power+VolUp while booting to enter recovery
2. You can release buttons after you see Google on screen
(Note: Must be this sequence Press/Hold Power, THEN Press/Release VolUp, release Power)
3. Android fallen down screen - VolUp to toggle recovery menu
Now wipe Cache & Dalvik Cache in recovery and reboot the phone.
C.
If the (Option B) does not solved then try to flash the stock rom with the below given mentioned steps.
First download any stock rom and also the related usb drivers. Install the drivers into the PC.
Boot into the bootloader.
Open (fastboot.exe) Cmd prompt as admin. Put the stock rom into that particular folder.
fastboot flash bootloader filename.img
reboot the phone and return back to the bootloader.
Then, we will flash all other partitions.
fastboot flash radio filename.img
Again reboot the phone and go back into the bootloader
fastboot flash boot filename.
fastboot flash recovery filename.img
fastboot flash userdata filename.img
fastboot flash system filename.img
If you want to relock the bootloader of your device after flashing the device, put the device back in fastboot mode. Then type in the following command in the Terminal or Command Window you had opened earlier -:
fastboot oem lock
This will re-lock the bootloader of your Nexus device, restoring your warranty and putting the device back to complete stock.
I hope this helps you out.
Thank you, but is there a way to boot into safe mode if the phone isn't turned on? I can not get to the power menu since I can't turn the phone on...
I can only access the recovery menu.
Data backup
Alternate method you can do is that you have to download a software by name 'DROID EXPLORER' - (try to google it) you will find this software from the internet. Then install the software on your PC or Laptop. Once you open the software it will take some time to download the sdk files from the internet then install the windows sdk files also.
Later you go into the recovery mode with the usb cable connected to your PC. Then open the Droid Explorer software you will see your phone connected picture. Now double click and open it go to sdcard and copy all your pictures and other files to your system.
Finally, Once you backed up all your files now you can reflash with the proper rom from the recovery mode. From directly inserting the rom.zip file into the sdcard and run the custom rom after you wipe the partitions properly in recovery.
Note: Before wiping the partitions always unmount the system, data, cache and then wipe it.
So I screwed up. When wiping my system for lineageos, I accidentally wiped everything, including the system, internal storage, and data. I am in TWRP right now. Trying to send files over at MTP just makes the progress bar not move. I cannot move it over with my phone mounted as a usb storage device. When using adb push to send over a ROM, the command completes, but it does not appear in the sdcard folder as I specified. Adb sideload just stops at 50%, with the phone displaying step 2/2 and not continuing after that- I have the option to reboot or wipe dalvik / cache. I have no OS. I know that rebooting into TWRP again will make MTP work, however as I have no OS installed I know that I will not be able to access fastboot. Any ideas on how to get a rom onto my phone's storage?
You might need to format your internal storage as it may still be encrypted which may be why files aren't copying across. This is just a guess though. If all else fails (I have been in a similar situation before), you should be able to boot into fastboot (bootloader) mode from TWRP and flash OOS back through that. You would need to find the fastboot version of the ROM. I believe there is a thread in this forum somewhere. A last resort would be using the MSMTool to get back to stock. I've never had to do this myself though. The phone will be in a like brand new state though, so you would need to unlock the bootloader again if you are going to flash a custom ROM or do any modding after.
You can use OTG storage, encryption has no effect on it and you can flash files too. I used it to bypass the encryption issue in TWRP. If that doesn't work then post #2 is your best option. Also you can still boot in fastboot even if your ROM is broken. You can find the fastboot ROMs in the guide section.
Is it possible to rescue data from an encrypted phone (copperheados installed) that won't boot?
I don't really know why it stopped booting other than the OS was complaining about 'low on space' on the SD card. Apps then started crashing and I simply tried a reboot. Which left me in a position with locked bootloader. Phone boots to encryption unlock which succeeds after providing the pin code but is then stuck on the copperheados boot-logo.
Can I recover my data (mainly photos) in any way?
I can get to copperheados recovery and the only available option is "adb sideload". But where can I find a copperheados image nowadays??? I'm guessing that is my only option?
Adb can't find the phone while on the pin code screen or in the bootloader screen. Only fastboot and I'm guessing unlocking it will make file recovery impossible??
I seem to manage to get into "sideload" in copperheados recovery. Maybe if there was an ota image I could download and sideload? None seem available though
Ofcourse I don't know what is actually stopping my device from booting.