Verity activated / "Verification failed" - Can /data be recovered? - Samsung Galaxy S7 Questions and Answers

Well, I just did something bad. I have a new Exynos-based S7 (SM-G930W8), which I unlocked, rooted, and installed LOS on. So far, so good.
I then proceeded to root my old S7 (same model), ironically to make it easier to transfer over the application data... Things went so smoothly on the first device I did not take the time to make a backup (so I did not realize that TWRP is not able to mount the /data partition).
I rebooted to Download mode, flashed TWRP twrp-3.5.0_9-0-herolte using Odin 3.13, and rebooted to Recovery. I then followed the same steps I took with the other device (Install of no-verity-opt-encrypt-6.1, and Magisk-v21.4). After rebooting I am greeted by the "Verification failed" / please delete all your personal data screen.
Now, I have made a backup of the /data partition using adb-pull, which of course will be useless if the encryption scheme cannot be restored, or something. I assume the contents are irretrievable, but I'm having difficulty finding solid answers on this since most posts are from people who switching ROMs (and so expected to wipe) or were smart enough to back up before proceeding.
It would be amazing if the original ROM could just be flashed through Odin (including the HOME_CSC archive) and the phone would just pick up where it left off... Or if I could use the fastboot oem disable_dm_verity commands, or just wipe the phone completely, restore to stock, and then restore the previous /data once it's up and running. Again I'm expecting none of this is possible, but I would be really grateful if someone who has some experience with this could chime in. Just going to sit on my hands for now in case further messing around with the phone makes recovery even less likely to succeed.

Related

[Q] Post-flash data Loss

Hi, i've been a noob-lurker at this forum since joining the android community in december, but this is my first post so i'd like to start off by saying hello to everyone. As i mentioned before, my knowledge of this OS is fairly limited, so i may occasionally need for things to be a little dumbed down for me to understand.
That all being said, i recently decided to try flashing the Eagle Blood ROM (a T-Mobile based ROM) on my ATT skyrocket using CWM. The process was completed without my phone being connected to my computer, as i decided to flash a ROM available through CWM itself.
Before i flashed the ROM, the phone was rooted, had superuser, Titanium backup, etc. I believe CWM had a fairly recent backup of all my stuff as well. Once the phone booted into the new ROM, i noticed that i had none of my apps present, none of my data (contacts, messages, pictures, etc), was no longer rooted, and could no longer connect to the data network (my internet will not run without wifi). I do remember that at some point in the reboot process the log showed that it had not recognized my external SD card. I'm not sure but it might be that all my apps were on the card and none of the info loaded because of that. Additionally, because i am running on a mac and have not yet been able to reliably connect my phone to the computer, i do not have any of the more valuable data stored there either.
Essentially i'd like to know if i can recover any or all of the data (either through finding some backup buried in the system) or through pulling the contacts, etc. from the google cloud i assume they are in, and then lastly if someone could point to what exactly i did wrong in the process -- it would be nice to continue flashing ROMs and what not. If i left out any important pieces of information, please let me know.
Thank you so much!
Restore your backup. And ya, you either wiped data before flash or the rom did it for you. You can backup apps+data in tibu but you have to restore them after flash. That will restore app data. Not att data. Chances are your T-Mobile rom had T-Mobile apn's...ect. try the T-Mobile conversion zip. Its in the skyrocket dev section.
Sent from my SAMSUNG-SGH-I727 using xda premium
I'm not sure where i would find those backups -- they were all on the apps themselves and (unless titanium or CWM automatically pushes the backups to another server). Both of those are not on the phone any more (or at least not in the application folder).
I will look into the T mobile conversion, that should be a good first step.
And, a quick update, all my pictures are still on the phone. Contacts, etc. are still missing.
Did youake a cwm backup before flashing?
Sent from my SAMSUNG-SGH-I727 using xda premium
Yes and no. I downloaded CWM a while back and decided to make a backup right off the bat. Functionally speaking it would have all my stuff on it, but i also did not understand flashing recovery mode at that point, so i'm not sure it would have worked.
But no, not right before i flashed the ROM
Boot into recovery, go to backup and restore, go to restore. See if there is a file available. I'm kinda confused. Did you or didn't you make a cwm backup?
Sent from my SAMSUNG-SGH-I727 using xda premium
am.rawr said:
Hi, i've been a noob-lurker at this forum since joining the android community in december, but this is my first post so i'd like to start off by saying hello to everyone. As i mentioned before, my knowledge of this OS is fairly limited, so i may occasionally need for things to be a little dumbed down for me to understand.
That all being said, i recently decided to try flashing the Eagle Blood ROM (a T-Mobile based ROM) on my ATT skyrocket using CWM. The process was completed without my phone being connected to my computer, as i decided to flash a ROM available through CWM itself.
Before i flashed the ROM, the phone was rooted, had superuser, Titanium backup, etc. I believe CWM had a fairly recent backup of all my stuff as well. Once the phone booted into the new ROM, i noticed that i had none of my apps present, none of my data (contacts, messages, pictures, etc), was no longer rooted, and could no longer connect to the data network (my internet will not run without wifi). I do remember that at some point in the reboot process the log showed that it had not recognized my external SD card. I'm not sure but it might be that all my apps were on the card and none of the info loaded because of that. Additionally, because i am running on a mac and have not yet been able to reliably connect my phone to the computer, i do not have any of the more valuable data stored there either.
Essentially i'd like to know if i can recover any or all of the data (either through finding some backup buried in the system) or through pulling the contacts, etc. from the google cloud i assume they are in, and then lastly if someone could point to what exactly i did wrong in the process -- it would be nice to continue flashing ROMs and what not. If i left out any important pieces of information, please let me know.
Thank you so much!
Click to expand...
Click to collapse
When flashing any TMobile t989 ROM, you must also flash the conversion package as well. It contains the kernel and other files that are required. You can find that conversion package from the t989 dev thread. I strongly recommend performing a full wipe, flash the rom again, then flash conversion package BEFORE you reboot.
You may also need to manually input the correct APN settings.
Sent from my SAMSUNG-SGH-I727 using XDA Premium App
I just tried booting into recovery: the phone powers down and then just buzzes in 3 second intervals until i let go.
The only thing about performing a full wipe and working from there is that it would need a computer, which i am still currently unable to connect the phone with...
am.rawr said:
I just tried booting into recovery: the phone powers down and then just buzzes in 3 second intervals until i let go.
The only thing about performing a full wipe and working from there is that it would need a computer, which i am still currently unable to connect the phone with...
Click to expand...
Click to collapse
With the Skyrocket, press and hold volume +&- and power, once you see the Samsung splash, then release the power button (continue holding volume) m, wait a few seconds and it should load recovery. You don't need a computer to perform a full wipe. Ypu can download Darkside Super Wipe Script. That will completly wipe your phone (won't wipe sd or emmc memory).
Sent from my SAMSUNG-SGH-I727 using XDA Premium App
Okay, i was able to boot into recovery (sorry about the confusion, for a second i forgot that it was possible to get into recovery outside of the app).
I found the backup i had made a while back (accidentally made another, current backup while doing this) and have tried loading it twice, but it throws up "Error while formatting /system!"
sorry, a closer yields the full text as...
"E:format_volume: no MTD partition "/dev/block/mmcblk0p24"
Error while formatting /systems!"
Just tried to boot back into the system and now i have a message saying
"warning
A custom OS can cause critical problems in phone and installed applications"
i can either boot into the custom anyways or "restart phone".
Restart? Or would that mean i would have to get it reactivated?

Experiences with rooted and encrypted S7

Since almost one week i am trying to a S7 rooted, debloated and encrypted.
Starting encryption with a decrypted phone from CFW:
After installing a CFW on an decrypted, i were not able with two different CFWs to get it encrypted. If you select the encryption by AndroidMeni the process starts and after a few minutes, it does a usual reboot without any changes. I tried this method, and this as well. Some xda users told me, that i have to use stock. I had no chance to get it encrypted afterwards with selection through Android/Security menu.
Start with encrypted stock rom:
So i gave up and descided to start with stock (oct release) and encrypted.
Flashing Stock with Odin, let it reboot and let it encrypt on first start, go through the assistent, reboot to download mode and root with odin and cf-auto-root.
Dont have to install TWRP, hence doesnt make any sense. You dont get acces to /data nor to /sdcard (internal storage).
After that i tried several debloating scripts, some worked, some not. So i decided to debloat manually with SSHdroid & putty.
Then i recognized, that the apps were not removed, although the files were been deleted?!
I did a factory reset, now the phone was clean. But the encryption was gone
btw: my experiences with FlashFire were also negative. Somehow it doenst let FlashFire mount any partitions on restart. It just doenst work.
Do anyone have an idea, how can I use this damn S7 rooted, debloated and encrypted? I can live with stock too.
I lost my interest - just tired, wasted so many days. Just want to make my data on my phone safe against a thieve.
Thanks

Stuck in a bootloop + CWM question

Edit: Solved, see bottom
ROM (D6633_Customized HK_1290-5630_23.4.A.0.546_R6C_HK_SuperSU2.46_XZDR2.8.21-signedv2)
Bit of a dumb move on my part. It all started when my snapchat stopped working, I updated, and then Titanium Backup wouldn't restore the data properly (giving me "parse error"). I was trying to fix that and read online that sometimes this is caused by improper permissions, so I booted into recovery mode, couldn't find the option, but somehow decided "hey, maybe my root permission (?) is wrong slash it's 6am and I just watched a wild 2016 election end" and I hit the button. Now my phone is stuck in a bootloop.
So my question:
1) What exactly does re-root phone do (in CWM), and why would that have messed me up? Is it because I have a pre-rooted rom?
2) I wiped cache and delvik and it doesn't help
3) How do I fix this? I was thinking of loading a SuperSU zip on the SD card from my computer and flashing that, assuming somehow a corrupted root is at fault. I can't seem to get the thing in ADB mode as a side note.
3b) If that seems like a good idea, does it matter what one I use?
4) If I reflash the ROM, it should keep my apps and stuff, ya? I don't actually care if my phone is crippled, I just need it to work long enough to properly back up some media, and mainly get my whatsapp over to my new SIM card. If I can't get in it's forever stuck on my old number which I don't have the SIM for anymore.
Any help would be GREATLY appreciated.
Edit: I don't know how to delete this. Anyways, with other resources I found out that because I used a pre-rooted ROM, there were issues with using CWM to try to do the rooting with its built in functions, softbricking the phone. Reflashing the original pre-rooted ROM worked fine.

All data wiped after Oxygen OS 5.1.6 update [rooted phone]

Hi,
My phone and all my personal data (4 years of photos, videos, and other app data) just got WIPED.
Here's how it happened:
* I was on OS 5.1.5 till yesterday. Had TWRP as my recovery and Magisk as my root method. Everything was hunky dory.
* Oxygen OS 5.1.6 hit my phone today. I downloaded the update and installed it. Before installing - it clearly stated that my phone will be unrooted by the update. I was ok with that, as I would have simply installed Magisk again from TWRP.
* After the reboot, I opened Magisk manager and saw that Magisk wasn't installed.
* So I did a reboot to recovery from the phone's reboot options (advanced reboot was ON in developer options)
* It did not boot to TWRP. Instead, I saw a stock recovery type screen (black background, OnePlus logo).
* There was a single text called "Decrypt" and a terminal type basic keyboard displayed on the screen.
* At this point I knew TWRP is gone and this would definitely be the stock recovery, asking me for my PIN, to decrypt storage.
* I entered my PIN and pressed ok. IMMEDIATELY after that the screen displayed the message - "Wiping" along with "do not turn off your device while this happens" or similar.
* I was shocked to see this, as all I had done was enter my PIN in a stock-looking recovery with the OnePlus logo.
* The phone rebooted, and lo and behold - I see the new installation screen saying "Hello" to me!
ALL MY DATA IS GONE. Without any fault of mine! I simply did an OS update, and boot to recovery!
PLEASE HELP!
So you went 4 years without doing a backup? I think your out of luck.
First, I am pretty sure all your data is gone absent some expensive recovery.
Second, when you took the ota, you went back to stock, which is why twrp and magisk disappeared. This is actually how the system is supposed to work.
I don't know what you did in the stock recovery to cause a wipe. You should have rebooted to bootloader and reinstalled twrp from fastboot.
iElvis said:
First, I am pretty sure all your data is gone absent some expensive recovery.
Click to expand...
Click to collapse
is it possible to recover encrypted storage on an android? i have simply turned the phone off immediately on seeing the new install screen boot up.
iElvis said:
Second, when you took the ota, you went back to stock, which is why twrp and magisk disappeared. This is actually how the system is supposed to work.
Click to expand...
Click to collapse
Fair enough. I knew that.
iElvis said:
I don't know what you did in the stock recovery to cause a wipe. You should have rebooted to bootloader and reinstalled twrp from fastboot.
Click to expand...
Click to collapse
This is exactly where it's just crazy wrong. It just booted up to a recovery, with a screen saying "Decrypt" and a keyboard! NO mention of the next step being "Wiping".. ! This is just plain crazy, if that's how its designed!
94burns said:
So you went 4 years without doing a backup? I think your out of luck.
Click to expand...
Click to collapse
pretty much. was just migrating data from one phone to the next using titanium backup/restore.
How could 4 years of photos and vids be gone? The phone is only weeks old. Surely you have backed these up to a cloud or even a pc at some stage? If you habe data backup turned on, you should have all your apps ready to reinstall.
You should have booted into bootloader, flashed twrp and magisk after the update. The OTA will always resort any custom recovery to stock.
hallo dare said:
How could 4 years of photos and vids be gone? The phone is only weeks old.
Click to expand...
Click to collapse
I just kept migrating it from the previous phones to the next phones. Google photos does have backup of photos and videos. But there was so much more: SMS, call logs, whatsapp photos (the ones which were unlinked due to being moved to SD card earlier), screenshots, voice recordings, telegram images/videos, google authenticator tokens, and many apps whose data doesn't get backed up as part of android/google backup.
angadsingh said:
is it possible to recover encrypted storage on an android? i have simply turned the phone off immediately on seeing the new install screen boot up.
This is exactly where it's just crazy wrong. It just booted up to a recovery, with a screen saying "Decrypt" and a keyboard! NO mention of the next step being "Wiping".. ! This is just plain crazy, if that's how its designed!
Click to expand...
Click to collapse
I don't have answers for either question. You might have more luck posting in the OP community, or in the official firmware thread.
angadsingh said:
Hi,
My phone and all my personal data (4 years of photos, videos, and other app data) just got WIPED.
Here's how it happened:
* I was on OS 5.1.5 till yesterday. Had TWRP as my recovery and Magisk as my root method. Everything was hunky dory.
* Oxygen OS 5.1.6 hit my phone today. I downloaded the update and installed it. Before installing - it clearly stated that my phone will be unrooted by the update. I was ok with that, as I would have simply installed Magisk again from TWRP.
* After the reboot, I opened Magisk manager and saw that Magisk wasn't installed.
* So I did a reboot to recovery from the phone's reboot options (advanced reboot was ON in developer options)
* It did not boot to TWRP. Instead, I saw a stock recovery type screen (black background, OnePlus logo).
* There was a single text called "Decrypt" and a terminal type basic keyboard displayed on the screen.
* At this point I knew TWRP is gone and this would definitely be the stock recovery, asking me for my PIN, to decrypt storage.
* I entered my PIN and pressed ok. IMMEDIATELY after that the screen displayed the message - "Wiping" along with "do not turn off your device while this happens" or similar.
* I was shocked to see this, as all I had done was enter my PIN in a stock-looking recovery with the OnePlus logo.
* The phone rebooted, and lo and behold - I see the new installation screen saying "Hello" to me!
ALL MY DATA IS GONE. Without any fault of mine! I simply did an OS update, and boot to recovery!
PLEASE HELP!
Click to expand...
Click to collapse
You have a rooted device with a custom recovery so how did you install those in the first place and not loose data then? That wipes your phone doing that. It wiped again because it was being unlocked and relocked that always wipes it. Don't claim this is no fault of your own your running a modified device so yes it is your fault don't come on here and play victim it's really annoying
---------- Post added at 11:50 AM ---------- Previous post was at 11:47 AM ----------
94burns said:
So you went 4 years without doing a backup? I think your out of luck.
Click to expand...
Click to collapse
Wants to go 4 years without a backup then mod his phone and claim it's not his fault he lost data ??? what a joke
That happened to me too, but I solved it because after I flashed stock and then upgraded to 5.1.6 I installed TWRP in fastboot before booting to recovery.
angadsingh said:
I just kept migrating it from the previous phones to the next phones. Google photos does have backup of photos and videos. But there was so much more: SMS, call logs, whatsapp photos (the ones which were unlinked due to being moved to SD card earlier), screenshots, voice recordings, telegram images/videos, google authenticator tokens, and many apps whose data doesn't get backed up as part of android/google backup.
Click to expand...
Click to collapse
Surely you have those titanium backup files though still right? Just restore from that, sure you may lose a week or two but it's better than 4 years.
Sent from my ONEPLUS A6003 using Tapatalk
TechOut said:
You have a rooted device with a custom recovery so how did you install those in the first place and not loose data then? That wipes your phone doing that. It wiped again because it was being unlocked and relocked that always wipes it. Don't claim this is no fault of your own your running a modified device so yes it is your fault don't come on here and play victim it's really annoying
Click to expand...
Click to collapse
Android is supposed to wipe data only on unlocking the device. Once it's unlocked there's no reason Android should automatically wipe data.
It did not get relocked. It is still unlocked. How did you come to that conclusion?
Also, I root my device ONLY to install TitaniumBackup and Helium. I do not meddle with anything else being root (no ROMs, tweaks, etc.). Is it my fault that Android STILL doesn't have a way to backup everything without having to root your phone and install special backup apps?
How can the OS just wipe the data partition without user consent? With NO message displayed whatsoever. Just ask a password go on "Wiping.. please wait". What the hell.
geoff5093 said:
Surely you have those titanium backup files though still right? Just restore from that, sure you may lose a week or two but it's better than 4 years.
Click to expand...
Click to collapse
Yes I could recover some data from the SD card of my previous phone. Not the TB backups though.
I really need a way to (a) image the phone so that I can possibly recover/pay for recovery in the future (b) recover the data from the phone
I did a little reading. Apparently forced encryption is something that Android Oreo comes along with. All the data files are now by default encrypted (at a file level not a partition level). It is apparently encrypted with some randomly generated encryption key decided by Android, and not the PIN you have set to lock the phone. The PIN is just associated with that key. I'm pretty sure that key got deleted as well when the device was wiped (I'm assuming it must have been implemented like that as a security measure). So I have a wiped data partition with encrypted files!
NateDev said:
That happened to me too, but I solved it because after I flashed stock and then upgraded to 5.1.6 I installed TWRP in fastboot before booting to recovery.
Click to expand...
Click to collapse
You knew the data partition would get wiped otherwise? I've been rooting for years and never seen such behavior
angadsingh said:
Yes I could recover some data from the SD card of my previous phone. Not the TB backups though.
I really need a way to (a) image the phone so that I can possibly recover/pay for recovery in the future (b) recover the data from the phone
I did a little reading. Apparently forced encryption is something that Android Oreo comes along with. All the data files are now by default encrypted (at a file level not a partition level). It is apparently encrypted with some randomly generated encryption key decided by Android, and not the PIN you have set to lock the phone. The PIN is just associated with that key. I'm pretty sure that key got deleted as well when the device was wiped (I'm assuming it must have been implemented like that as a security measure). So I have a wiped data partition with encrypted files!
You knew the data partition would get wiped otherwise? I've been rooting for years and never seen such behavior
Click to expand...
Click to collapse
Take this as a lesson, always have a backup. Especially if you mod your phones
Sent from my ONEPLUS A6003 using Tapatalk
angadsingh said:
Android is supposed to wipe data only on unlocking the device. Once it's unlocked there's no reason Android should automatically wipe data.
It did not get relocked. It is still unlocked. How did you come to that conclusion?
Also, I root my device ONLY to install TitaniumBackup and Helium. I do not meddle with anything else being root (no ROMs, tweaks, etc.). Is it my fault that Android STILL doesn't have a way to backup everything without having to root your phone and install special backup apps?
How can the OS just wipe the data partition without user consent? With NO message displayed whatsoever. Just ask a password go on "Wiping.. please wait". What the hell.
Click to expand...
Click to collapse
It did have consent when you took the OTA with your modded device and it said decrypt and asked for your password it was about to wipe. Again you modded your phone and didn't keep a back up this is no one's fault but yours
Yeah I always back up my messages, photos, etc.. To a PC before any type of flash or update, I use smsbackup and have it uploaded to Google drive also titanuim backup and move the files to PC and just back ur DCIM folder. Sorry for ur luck but we all learn lessons the hard way, and no u Cannot recover, but if u have ur old phone may still have the texts on them and use oneplus switch to move them over
I guarantee this post is from a troll, nobody is dumb enough to do any or all of the idiotic things the OP claims.
Got the (important parts) of my data back. It only wiped the "data" partition - which contained internal app data and sms/calls, etc. It did not wipe the "sdcard" partition (also called "internal storage"). Found this out when I was installing TWRP again (before going through the OS welcome process) to create a dd image of my device for possibility of a future recovery. Android file transfer (thanks to TWRP's MTP support) popped up and showed all my files on the sdcard partition. Immediately backed it up.
To all those senior members who're making fun of this, thanks for all the help, really. You guys were really helpful.
angadsingh said:
Hi,
My phone and all my personal data (4 years of photos, videos, and other app data) just got WIPED.
Here's how it happened:
* I was on OS 5.1.5 till yesterday. Had TWRP as my recovery and Magisk as my root method. Everything was hunky dory.
* Oxygen OS 5.1.6 hit my phone today. I downloaded the update and installed it. Before installing - it clearly stated that my phone will be unrooted by the update. I was ok with that, as I would have simply installed Magisk again from TWRP.
* After the reboot, I opened Magisk manager and saw that Magisk wasn't installed.
* So I did a reboot to recovery from the phone's reboot options (advanced reboot was ON in developer options)
* It did not boot to TWRP. Instead, I saw a stock recovery type screen (black background, OnePlus logo).
* There was a single text called "Decrypt" and a terminal type basic keyboard displayed on the screen.
* At this point I knew TWRP is gone and this would definitely be the stock recovery, asking me for my PIN, to decrypt storage.
* I entered my PIN and pressed ok. IMMEDIATELY after that the screen displayed the message - "Wiping" along with "do not turn off your device while this happens" or similar.
* I was shocked to see this, as all I had done was enter my PIN in a stock-looking recovery with the OnePlus logo.
* The phone rebooted, and lo and behold - I see the new installation screen saying "Hello" to me!
ALL MY DATA IS GONE. Without any fault of mine! I simply did an OS update, and boot to recovery!
PLEASE HELP!
Click to expand...
Click to collapse
I think this is impossible.. First the phone didn't return to me the root message before updating like oneplus 5 and second point, if you enter the pin to decrypt your data in recovery it never do an automatic wipe i'm a bit confused on what you've really done, but for sure you did something wrong because updating system had never wiped anything
Hitman478™ said:
I think this is impossible.. First the phone didn't return to me the root message before updating like oneplus 5 and second point, if you enter the pin to decrypt your data in recovery it never do an automatic wipe i'm a bit confused on what you've really done, but for sure you did something wrong because updating system had never wiped anything
Click to expand...
Click to collapse
Well this is completely possible, I just had the same thing happened to me. It was exactly as OP described it (except it was OOS 5.1.7, and it did not even ask me to input a pin when I rebooted to recovery). Fortunately I had a backup, so it didn't impact me much but still, it is a very weird thing.
angadsingh said:
Got the (important parts) of my data back. It only wiped the "data" partition - which contained internal app data and sms/calls, etc. It did not wipe the "sdcard" partition (also called "internal storage"). Found this out when I was installing TWRP again (before going through the OS welcome process) to create a dd image of my device for possibility of a future recovery. Android file transfer (thanks to TWRP's MTP support) popped up and showed all my files on the sdcard partition. Immediately backed it up.
To all those senior members who're making fun of this, thanks for all the help, really. You guys were really helpful.
Click to expand...
Click to collapse
Thanks for being sarcastic about being helpful. Sorry we can't hold your hand and fix all your problems because your not responsible for your own actions of modding your phone and can't take the consequences when they arise. Maybe you should learn how some more things work and what can happen when you do this before you do it and don't backup your device ever

oneplus6 seems damaged following a failed twrp restore

So here is situation.
Phone been running 8.x version of havocos for months, however I was never fully happy due to broken usb tethering and random lockups (blue light freeze).
I decided to work on the phone 2-3 days ago, this involved doing a manual backup of all of data/media, and a nandroid backup. As well as some exports of configs in tasker etc.
I then flashed OOS stock, and nolimits, discovered tethering was still broken (yet it works with same sim in samsung galaxy s7 and hauwei).
This was the only issue tho, everything else was functioning as expected, phone was still fast.
Then I needed quick access to something that was on my phone from havocos, so decided to do a nandroid restore, this nandroid backup had all partitions ticked. The restore I also had all ticked.
The restore failed with an error 255 during data restore, I googled and found out is a nasty known bug for 2 years on TWRP, this backup was done on 3.2.3, I know now is a newer 3.3.x where this particular bug with corrupt backups might possibly be fixed.
I decided to try and boot havoc anyway but it boot looped, so I then went back into TWRP, and restored the vendor partition which was skipped. As it stopped on data, still boot looped, but also now this created a device is corrupt error on every rom boot even on stock OOS.
I spent ages trying to fix this error and during the process, discovered my phone no longer can be detected in flash boot as a com device in windows so currently the phone cannot be used with the MSM tool.
Eventually I reflashed stock using a flash-all script from here, and also put back on twrp using that script, and noticed even more issues that were not there before.
1 - phone is now much slower, stock before booted in one second after first boot, now its way way slower. Over 10 seconds so 10x as slow.
2 - I think before was a cache partition but is now gone. Supposedly these arent a thing anymore tho.
3 - nolimits zip will no longer flash with an error 1, I did exact same process as before but simply doesnt work now, the twrp detailed log right before the error 1 says "Please install the latest Magisk!" which suggests its failing to detect magisk.
4 - camera app is way slower, and OOS feels slower, laggier in general than before the problem.
5 - MTP no longer works when phone is booted up, again this is stock OOS and even if phone isnt rooted no magisk etc. But still works in TWRP. Basically the device pops up, I can see internal storage, but the size information is missing, and is no visible files/folders.
From what I can see I think my EFS is fine, I see an imei number.
I did fix the corrupted device error using a reboot command someone posted in that thread, so that error is gone now at least.
Try to flash oxygen os beta version from the official download links, let it install the stock recovery, then boot into rom, finish the installation progress by just skipping it and then factory reset it twice from recovery mode.
after doing that and finishing the setup , try to take picture and see if its saves it to gallery ( if the picture delete it self try to factory reset it through recovery for 1 more time)
I think you have figured out whats wrong, it just clicked, and I went to post and found your post so sorry no reply yet.
Indeed the problem seems to be a lack of /data/media/0
I have multiple times wiped data, and twrp has been putting files directly in /data/media, I just discovered I Cannot even take screenshots, magisk cannot download modules as well.
So I guess the stock recovery creates this structure?
Pretty shocking that twrp doesnt fix this or even have an option to. I will report back and let you know how things go, thanks.
Issue still there after stock recovery reset, wow these phones are damn hard to work with.
Also it seemed to do nothing, no settings were lost etc.
So basically stock recovery even if I choose full wipe does nothing, there seems to be some kind of lock on the internal storage that anything made by one plus is refusing to write.
I wonder if this is due to the device is corrupt message I had before where it said the device can no longer be trusted.
I can confirm that files that are on there are now visible in file manager and root explorer. But file manager can do no writes. root explorer can create new stuff but cannot delete or overwrite anything there, gets access denied.
I propose to start over again following this guide, option flash-all-partitions.bat. Helped for me.
I already stated thats already been done.
I eventually got msm working. and that luckily worked.
@chrcol ..., but you've issues
chrcol said:
I already stated thats already been done.
I eventually got msm working. and that luckily worked.
Click to expand...
Click to collapse
In recovery, format data. Problem fixed. Wipe will never fix your problem but format will.

Categories

Resources