Soft bricked phone after trying to restore backup after LineageOS flash - Realme X2 Pro Questions & Answers

I flashed the lineageOS 17 roms that is available and it worked but then i realized that gapps was not complete so i went into TWRP to restore my old Backup of ColorOS 6.1 (A.08 version), also it had magisk installed, but it then would show the first boot logo then restart and go into the recovery. I then tried formating everything except internal storage and also factory wipe and now my backup is gone and everything else on my phone. I can still boot into recovery and such but now it wont even ask me for the decryption password. File manager in TWRP shows 3 folders in the internal storage (in sdcard 0, obb and TWRP).
Any help? i dont wont to break things even more.
Edit: I just noticed that in the 0 folder in sdcard there is 65 gb of folders and files. Im assuming that are my old files but they are encrypted. Any way to undo that?

I guess you have to install a rom and set everything up from scratch. You lost all your files when you formated data, including backups, etc.
If you want to update or change your recovery, now it's the time - since there's no rom or files to lost.

johnnyjoe said:
I guess you have to install a rom and set everything up from scratch. You lost all your files when you formated data, including backups, etc.
If you want to update or change your recovery, now it's the time - since there's no rom or files to lost.
Click to expand...
Click to collapse
I didnt format the internal storage only data and i edited the post saying that i think i found all the data but still encrypted. Im guessing TWRP wont automatically decrypt it.

For anyone with a similar problem. I reinstalled LineageOS and it decrypted all the files.

Related

[Q] can't take photos + read/write error

rooted, stock lollipop 5.0.2, problem started out of nowhere this afternoon...
camera won't let me take photos as it asks for an SD card. even after i insert an SD card, the error persists.
opening quickpic gives me the following errors...
Code:
not an error (code 0) could not open the database in read / write mode
Code:
unable to open database file (code 14)
can't delete ANY files manually in ES file explorer even with root explorer enabled.
booted into TWRP and cleared cache and dalvik to no avail.
seems like the phone can't read or write any data, except installing/uninstalling apps via google play still works. seems to be the same problem addressed in this thread http://forum.xda-developers.com/galaxy-s2/help/read-write-errors-advice-solved-t2323801 although i don't know how to identify the corrupt file(s) and delete them or fix permissions...
help!!
...bump?
basically wen that happens is because a file or folder is corrupted, it maybe in any place on your phone really difficult to find. That usually happens after you flash some (app, script), restore a TWRP backup, or a app that have root access doing the wrong thing.
i had this problem two times.
In the 1°, i fix by going in the TWRP, and erased my internal memory, after reboot all good.
this case was very simple i copy every file to pc, erase, after restore the one i need, and everything was fine...
In the 2°, i try that and was not successful, i need to re install the stock rom via fastboot from xml rom file to completed clean my OS.
In both cases, i was not able to make a Titaniumbackup, so i lost some data of a fill apps in the second (because i make a backup every week, if i didn't have it i probably lost everything).
If you don't use titanium, and don't wanna to loose things and app files etc, you can try copy everything on internal and external memory, by plugin on the device to a PC, after a TWRP backup of yours data, after wipe, dalvik cache, data, internal storage, cache, system, re flash the same rom you are now, and after test and see if you can write, restore the data backup.
But that data may corrupted your phone again, because the problem maybe in that.
So if after restore the data all goes bad, redo everything and do not restore data, you will lose app and data, but app can be reinstated.
:good:
baybutcher27 said:
basically wen that happens is because a file or folder is corrupted, it maybe in any place on your phone really difficult to find. That usually happens after you flash some (app, script), restore a TWRP backup, or a app that have root access doing the wrong thing.
Click to expand...
Click to collapse
thank you, i used this as an opportunity to wipe and flash cyanogen. so far so good (seems much smoother too).

How to delete all files from storage, after install CM from MIUI

Hi,
from MIUI 8.2.0 global stable I have sucessfully installed CM 13.
Before the installation progress and after flashed TWRP3020 on the first window from TWRP, I have choosed to maintain a specific place "read only". I was insure, so I decided to do so.
Then I wiped the system with TWRP. I choose Dalvik, System, Data and Cache. Just in internal storage I didnt mark to wipe.
I have installed CM13 and Gapps. Everything goes fine. But the Theme-Designer (where to choose themes) allways fail to start. In another Mi5 pro (2 pieces here) I have made all the same like in this one, and the Theme-Designer starts normal.
So I find, that in my storage, there are many old files from MIUI. They are not deleted and I understand why. Because I didnt mark in TWRP to wipe the internal storage.
So I gone to the settings in CM to reset to factory settings and made it. After starting the phone I saw, that all the folders are still there.
Now I am affraid, that something in the storage makes the Theme-Designer crash. I dont have another explication.
And after the installation I made today a update OTA to the newest version of CM (08.09.16) and the problem continues.
Is there a possibility to make a real clean install, wiping all the storage without to buy a USB-Stick to put there the install files for CM13 and Gapps? Or not?
Or ist there another way, to wipe the data storage? If I would make this with TWRP, I think that CM wouldnt start, because the folder "Download" would also be deleted. Or is there another folder, that is protected, to put the files there?
And I also had problems with bluetooth with MIUI with my Volvo. And with CM13 the problem continues. Maybe it has to do with some old files from MIUI, that are still in the system.
Can someone help?
No idea? Or a good link?
After I have installed CM 13 and Gapps, what happens if I go in TWRP and choose to wipe internal storage? Do I have after that a clean install without traces of the old OS or is all gone and I cant boot?
You can go back to TWRP and wipe internal storage, you'll still be able to boot into the ROM.
Sent from my EVA-L09 using Tapatalk
try in trwp ,wipe internal storage,wipe data

I think I lost all my data

Hi, I want to install custom rom but I think because of encryption I lost my all internal storage :/
Before mi 9t pro, I used an old android phone. Because of that I didn't know too much about encrption.
When I open OrangeFox it asks my password. So I thought remove my password before any rom installation should be enough.
I remove my password. After dirty rom flash my phone didn't boot to system but did boot to recovery.
Guess what? All my file names are random
Before anyone say, I have a backup. But where Yesss it is in internal storage with encryption :angel:
I tried to wipe data, didn't work. I flash my rom mi flash with keeping data, didn't work.
Now my phone boot up, I can see my files with random names.
Why I didn't backup to computer? Because I was lazy.
My big question;
Can I recover my files (~70 gb), I know my old password.
It's a good thing your data wasn't important then, if it was you would have a backup stored on a PC or cloud. First rule of flashing, have a backup. You can't recover it's gone, format data In twrp to remove encryption and wipe your internal storage then flash your rom.
hoopsnake said:
It's a good thing your data wasn't important then, if it was you would have a backup stored on a PC or cloud. First rule of flashing, have a backup. You can't recover it's gone, format data In twrp to remove encryption and wipe your internal storage then flash your rom.
Click to expand...
Click to collapse
Yes, it isn't too much important but I'm a little sad. I just lost few whatsapp message.
I will delete everything now. After that, I will disable this encryption.
Thanks
P.S: Whoever read this don't be lazy like me

How to recover my files after failed supersu flash?

Today I wanted to root my phone. So I flashed twrp to later flash supersu. After i flashed twrp the phone worked fine, I could boot normally and go into recovery to access twrp. However, after I flashed supersu I couldn't boot back into android. After several tries of recovering the data its been a mix between bootlooping twrp or being stuck in the splash screen. I could format the partitions to clean everything, but I can't do that because I need to recover my 2FA codes (cause I didn't backup them up) so I dont lose access to my accounts. I tried unencrypting the storage from twrp but it always failed, even though it was the correct password (I use a pattern to unlock but I converted it to a code). Is there any way I can recover my data or do I have to reset everything?
Goto recovery and copy internal storage to pc
Sadman Fahad said:
Goto recovery and copy internal storage to pc
Click to expand...
Click to collapse
I cant find an option that lets me do this, since the partition is encrypted. Can you help me further?

Question UNABLE TO BACK UP ANY ANDROID 12 MIUI OR CUSTOM ROM (internal storage 0mb) in TWRP

I'm able to use backup & restore in Android 11 custom or miui rom. but unable to use it when i flashed android 12 roms.
Can anyone walk me through how to fix this.
Did the ff workaround in youtube as well in any similar post but still not working.
1. Advance wipe > click data >Repair or Change File System > Change File System to EXT2 & EXT4
2. Format data
This process is temporarily working the internal storage is visible, but after booting to system and go back to twrp recovery, the internal storage appears 0mb again.
I flashed stock rom/ eu rom as well in TWRP as i read this is worked with them. but not on my end.
Kindly help me to solve this issue please.
TWRP is not yet compatible with Android 12, it can't decrypt the internal storage. You can't fix it until TWRP (or some other recovery) solves Android 12 support.
I think in theory you might be able to back up the ROM to an unencrypted storage like an SD Card or OTG USB drive, but I'm not sure (and I'm even less sure if such backup could even be successfully restored if you back the partition up without decrypting).
Use otg usb
rufio85 said:
I'm able to use backup & restore in Android 11 custom or miui rom. but unable to use it when i flashed android 12 roms.
Can anyone walk me through how to fix this.
Did the ff workaround in youtube as well in any similar post but still not working.
1. Advance wipe > click data >Repair or Change File System > Change File System to EXT2 & EXT4
2. Format data
This process is temporarily working the internal storage is visible, but after booting to system and go back to twrp recovery, the internal storage appears 0mb again.
I flashed stock rom/ eu rom as well in TWRP as i read this is worked with them. but not on my end.
Kindly help me to solve this issue please.
Click to expand...
Click to collapse
Case_ said:
TWRP is not yet compatible with Android 12, it can't decrypt the internal storage. You can't fix it until TWRP (or some other recovery) solves Android 12 support.
I think in theory you might be able to back up the ROM to an unencrypted storage like an SD Card or OTG USB drive, but I'm not sure (and I'm even less sure if such backup could even be successfully restored if you back the partition up without decrypting).
Click to expand...
Click to collapse
Cisuwek said:
Use otg usb
Click to expand...
Click to collapse
In my opinion it's only possible to backup encrypted storage as in A12 if you flash DfE but then you'll have to format and later you're decrypted and in future you can backup via TWRP.
But you can copy actual personal files with a file manager, if android is booted up, to external storages or internal micro SD. android internal app data can't copied.
Laptapper said:
In my opinion it's only possible to backup encrypted storage as in A12 if you flash DfE but then you'll have to format and later you're decrypted and in future you can backup via TWRP.
But you can copy actual personal files with a file manager, if android is booted up, to external storages or internal micro SD. android internal app data can't copied.
Click to expand...
Click to collapse
You can install cutom roms, flash magisk, kernel and other stuff. The memory is only encrypted, the rest works perfectly fine. Have you checked on the latest recovery?
A new kernel was flashed an hour ago. I have made a backup of the boot and dtbo images. It really works
Not checked to backup complete rom, but suppose it's possible with otg
Cisuwek said:
You can install cutom roms, flash magisk, kernel and other stuff. The memory is only encrypted, the rest works perfectly fine. Have you checked on the latest recovery?
A new kernel was flashed an hour ago. I have made a backup of the boot and dtbo images. It really works
Not checked to backup complete rom, but suppose it's possible with otg
Click to expand...
Click to collapse
.....Not checked to backup complete rom, but suppose it's possible with otg....?
But this is what he wants to do, or not?
Cisuwek said:
You can install cutom roms, flash magisk, kernel and other stuff.
Click to expand...
Click to collapse
I guess (I was in fact asking about exactly this in another thread recently), but then if the install script tries to modify the data partition in any way (which remains encrypted with current recoveries under Android 12), you're almost certainly screwed and at best the installation will fail, at worst you'll have to reinstall everything.
Thanks for the reply guys..this already solved..with the help of @Laptapper in other thread. Using orangefox, dfe,
How to flash a Android 12 ROM without decryption problem?
I've been struggling to flash Android 12 without my internal storage to be unaccessible by TWRP... I simply can't decrypt my data and the only way to fix it is to format data and revert back to a Android 11 ROM. Did anyone manage to flash Android...
forum.xda-developers.com
here's the thread.
Case_ said:
I guess (I was in fact asking about exactly this in another thread recently), but then if the install script tries to modify the data partition in any way (which remains encrypted with current recoveries under Android 12), you're almost certainly screwed and at best the installation will fail, at worst you'll have to reinstall everything.
Click to expand...
Click to collapse
Previously I had a Redmi note 7. On the encrypted partition, I could also install everything in the same way. I am not a specialist, my knowledge has ended here.

Categories

Resources