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

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.

Related

Miui 11 to pie with encrypted internal storage

My curiosity got me in to trouble again.
I wanted to try miui 11 so I flashed the while I backed up my pie rom with twrp. All was good until I restored my backup. Now my internal storage is encrypted without a way to decrypt it in twrp or miui 11. Is there a way to decrypt my storage or should I just take my loss?
Thomson2412 said:
My curiosity got me in to trouble again.
I wanted to try miui 11 so I flashed the while I backed up my pie rom with twrp. All was good until I restored my backup. Now my internal storage is encrypted without a way to decrypt it in twrp or miui 11. Is there a way to decrypt my storage or should I just take my loss?
Click to expand...
Click to collapse
As i understand data format, will remove the encryption. But before you must copy your backup to external storage, never tried it but in TWRP you have a file manager, if it can work with otg, you can do it.

Xiaomi Mi A2 (jasmine) can I update stock ROM via TWRP

Good Morning, I want to upgrade brother device to new version of android (because he can`t install security updates for unknow reasons), but I affraid that he loose all apps and settings (he is a firefighter and have app from firefighter station which signals dangerous traffic etc.) So my question is can I update downloaded stock ROM via TWRP (adb sideload) without fears that he loose everything?
iHusky said:
Good Morning, I want to upgrade brother device to new version of android (because he can`t install security updates for unknow reasons), but I affraid that he loose all apps and settings (he is a firefighter and have app from firefighter station which signals dangerous traffic etc.) So my question is can I update downloaded stock ROM via TWRP (adb sideload) without fears that he loose everything?
Click to expand...
Click to collapse
The only thing that will take your fear, is a backup of all important partitions (boot, system, data, vendor, efs, persist), stored externally, plus a copy of the internal storage content, also stored externally.
With that you should be able to restore everything to the exact point it is at right now, so you'll really need to mess up hard to not come out of basically any situation with those partitions saved.
As for your inital question:
Why don't you just update via ota if you wanna stay on stock?
Phil_Smith said:
The only thing that will take your fear, is a backup of all important partitions (boot, system, data, vendor, efs, persist), stored externally, plus a copy of the internal storage content, also stored externally.
With that you should be able to restore everything to the exact point it is at right now, so you'll really need to mess up hard to not come out of basically any situation with those partitions saved.
As for your inital question:
Why don't you just update via ota if you wanna stay on stock?
Click to expand...
Click to collapse
Because, brother have error, while try install security updates, but he have from March this year
And this is not possible to make update, because after click backup (Data partition) I get error "cannot create data/media/0/TWRP
iHusky said:
Because, brother have error, while try install security updates, but he have from March this year
And this is not possible to make update, because after click backup (Data partition) I get error "cannot create data/media/0/TWRP
Click to expand...
Click to collapse
Okay, so maybe first copying internal storage content to your PC and backup important apps would be sufficient then.
For apps you can use Titanium Backup (good, but makes troubles on android 10 at the moment), Swift Backup (recommend by many others) and more.
These backup solutions save apps and app data on your phone, so copy that to an external place, or you might lose them if you need to format data (which I'll suggest).
After your "backups" are made, I would wipe every partition in each slot, which you can also achieve with a "fastboot -w", and then also format data - the one where you need to type "yes" (which will also erase all internal storage content, but most probably will also solve your troubles).
From here there are tools like miflash or fastboot images to reflash stock (inform yourself about them, before you start all that!).
Be sure to flash the latest one right away, so you won't be in the need of "dirty" updates immediately again.
Afterwards, you can copy back the internal storage content and the folder of the backup app, and restore the previously saved apps.
Phil_Smith said:
Okay, so maybe first copying internal storage content to your PC and backup important apps would be sufficient then.
For apps you can use Titanium Backup (good, but makes troubles on android 10 at the moment), Swift Backup (recommend by many others) and more.
These backup solutions save apps and app data on your phone, so copy that to an external place, or you might lose them if you need to format data (which I'll suggest).
After your "backups" are made, I would wipe every partition in each slot, which you can also achieve with a "fastboot -w", and then also format data - the one where you need to type "yes" (which will also erase all internal storage content, but most probably will also solve your troubles).
From here there are tools like miflash or fastboot images to reflash stock (inform yourself about them, before you start all that!).
Be sure to flash the latest one right away, so you won't be in the need of "dirty" updates immediately again.
Afterwards, you can copy back the internal storage content and the folder of the backup app, and restore the previously saved apps.
Click to expand...
Click to collapse
I tried MiFlash, but without wipe anything, and it don`t upgrade version of system
But if I must, flash 2 slots A/B using MiFlash or one slot (A) is for system?
You can just download the zip file with version u want from the site below and flash it via TWRP making cache and dalvik cache wipes and changing slots at the end.
https://mifirm.net/model/jasmine.ttt#zip-mif
pfss said:
You can just download the zip file with version u want from the site below and flash it via TWRP making cache and dalvik cache wipes and changing slots at the end.
https://mifirm.net/model/jasmine.ttt#zip-mif
Click to expand...
Click to collapse
So, I don't need
to flash second slot?
iHusky said:
So, I don't need
to flash second slot?
Click to expand...
Click to collapse
Just if u want. It's not necessary.
In october I updated mine this way but forgot to change the slot before rebooting to the system and realized that was in the old Android version. I just went to TWRP again and changed slot. After rebooting, the phone was in the updated Android One.
pfss said:
Just if u want. It's not necessary.
In october I updated mine this way but forgot to change the slot before rebooting to the system and realized that was in the old Android version. I just went to TWRP again and changed slot. After rebooting, the phone was in the updated Android One.
Click to expand...
Click to collapse
I tried using fastboot and MiFlash but after all it stuck on bootloader
iHusky said:
I tried using fastboot and MiFlash but after all it stuck on bootloader
Click to expand...
Click to collapse
I just updated mine to November patch downloaded from here: https://mifirm.net/downloadzip/4197
I entered fastboot mode, executed
Code:
fastboot boot my_twrp_image_file.img
In TWRP made de wipes, flashed the ROM, changed slot and rebooted phone. It looks like it's normal.

Question Can't mount data partition in recovery

Hi, I have a question and hoping that maybe someone here might be able to help me.
I'm not a developer or anything like that and my knowledge is rather basic.
I truly tried my best reading, tutorials, forums, etc. and trying over and over again for many hours.
So the problem is this:
After new installation of arrowsOS and orange fox recovery on redmi note 10pro, recovery can't read/mount data or internal sd card.
Formating data or changing filesystem fixes this temporarily. Data now shows a size rather than 0mb and becomes mountable.
But unless the filesystem is f2fs (like ext4 or anything else) ROM won't boot. Goes straight back into recovery.
If I choose f2fs (readable by recovery after format), arrowsOS will boot again, but also will encrypt the partition somehow and the problem persists.
Next time I boot into recovery data, storage and sdcard are empty, data can't be mounted and is shown with 0mb size.
In orange fox telegram group I was informed that Android 12 is not supported nor will be any time soonish and I should get off their chat... but I tried twrp before and that didn't work either.
I'd really love to get this fixed before installing lots of apps onto the phone again. Because afterwards having to wipe and set up everything again will be a pain.
So does anyone here have any idea for me how to solve this?
Best regards
Eric
Kilombodog said:
Hi, I have a question and hoping that maybe someone here might be able to help me.
I'm not a developer or anything like that and my knowledge is rather basic.
I truly tried my best reading, tutorials, forums, etc. and trying over and over again for many hours.
So the problem is this:
After new installation of arrowsOS and orange fox recovery on redmi note 10pro, recovery can't read/mount data or internal sd card.
Formating data or changing filesystem fixes this temporarily. Data now shows a size rather than 0mb and becomes mountable.
But unless the filesystem is f2fs (like ext4 or anything else) ROM won't boot. Goes straight back into recovery.
If I choose f2fs (readable by recovery after format), arrowsOS will boot again, but also will encrypt the partition somehow and the problem persists.
Next time I boot into recovery data, storage and sdcard are empty, data can't be mounted and is shown with 0mb size.
In orange fox telegram group I was informed that Android 12 is not supported nor will be any time soonish and I should get off their chat... but I tried twrp before and that didn't work either.
I'd really love to get this fixed before installing lots of apps onto the phone again. Because afterwards having to wipe and set up everything again will be a pain.
So does anyone here have any idea for me how to solve this?
Best regards
Eric
Click to expand...
Click to collapse
Switch to A11 ROM or wait. There's no recovery capable of decrypting anything based on Android 12 right now
Kilombodog said:
Hi, I have a question and hoping that maybe someone here might be able to help me.
I'm not a developer or anything like that and my knowledge is rather basic.
I truly tried my best reading, tutorials, forums, etc. and trying over and over again for many hours.
So the problem is this:
After new installation of arrowsOS and orange fox recovery on redmi note 10pro, recovery can't read/mount data or internal sd card.
Formating data or changing filesystem fixes this temporarily. Data now shows a size rather than 0mb and becomes mountable.
But unless the filesystem is f2fs (like ext4 or anything else) ROM won't boot. Goes straight back into recovery.
If I choose f2fs (readable by recovery after format), arrowsOS will boot again, but also will encrypt the partition somehow and the problem persists.
Next time I boot into recovery data, storage and sdcard are empty, data can't be mounted and is shown with 0mb size.
In orange fox telegram group I was informed that Android 12 is not supported nor will be any time soonish and I should get off their chat... but I tried twrp before and that didn't work either.
I'd really love to get this fixed before installing lots of apps onto the phone again. Because afterwards having to wipe and set up everything again will be a pain.
So does anyone here have any idea for me how to solve this?
Best regards
Eric
Click to expand...
Click to collapse
PoisonedLegacy said:
Switch to A11 ROM or wait. There's no recovery capable of decrypting anything based on Android 12 right now
Click to expand...
Click to collapse
If you wanna stay decrypted like me, you can flash DFE....
Then no more issues with internal memory.....
If you use orange fox, then you can set a recovery password and have a bit more security.
PoisonedLegacy said:
Switch to A11 ROM or wait. There's no recovery capable of decrypting anything based on Android 12 right now
Click to expand...
Click to collapse
OK thanx, so I see what's the problem.
If it's like this I'm thinking about just waiting it out. Cause I kinda started liking this rom
Do you recon that once an updated recovery comes out it will be able to read it just like that?
Or would I have to wipe/format data again?
Because in first case I could just consider living with the fact that my recovery doesn't work so well for now, knowing that earlier or later an updated version of recovery comes out and by flashing it my problem should be fixed.
But if I'd had to wipe/reformat or repartition /data again in order to make it work (whenever it can). it'd be a game changer.
Because the longer I use the phone the more apps and personal stuff will be on there
Laptapper said:
If you wanna stay decrypted like me, you can flash DFE....
Then no more issues with internal memory.....
If you use orange fox, then you can set a recovery password and have a bit more security.
Click to expand...
Click to collapse
What's DFE?.....sorry just a newbie
If I flash that, would my data partitionstay decrypted forever or would there be a way to encrypt it later (once recoveries evolve) without loosing the data on it?
Kilombodog said:
What's DFE?.....sorry just a newbie
If I flash that, would my data partitionstay decrypted forever or would there be a way to encrypt it later (once recoveries evolve) without loosing the data on it?
Click to expand...
Click to collapse
Post in thread 'How to flash a Android 12 ROM without decryption problem?' https://forum.xda-developers.com/t/...hout-decryption-problem.4349493/post-86336175
Kilombodog said:
Hi, I have a question and hoping that maybe someone here might be able to help me.
I'm not a developer or anything like that and my knowledge is rather basic.
I truly tried my best reading, tutorials, forums, etc. and trying over and over again for many hours.
So the problem is this:
After new installation of arrowsOS and orange fox recovery on redmi note 10pro, recovery can't read/mount data or internal sd card.
Formating data or changing filesystem fixes this temporarily. Data now shows a size rather than 0mb and becomes mountable.
But unless the filesystem is f2fs (like ext4 or anything else) ROM won't boot. Goes straight back into recovery.
If I choose f2fs (readable by recovery after format), arrowsOS will boot again, but also will encrypt the partition somehow and the problem persists.
Next time I boot into recovery data, storage and sdcard are empty, data can't be mounted and is shown with 0mb size.
In orange fox telegram group I was informed that Android 12 is not supported nor will be any time soonish and I should get off their chat... but I tried twrp before and that didn't work either.
I'd really love to get this fixed before installing lots of apps onto the phone again. Because afterwards having to wipe and set up everything again will be a pain.
So does anyone here have any idea for me how to solve this?
Best regards
Eric
Click to expand...
Click to collapse
use them after every rom install
Murad Ali said:
use them after every rom install
Click to expand...
Click to collapse
thanx
Murad Ali said:
use them after every rom install
Click to expand...
Click to collapse
for now looks good. works like a charm with this 2 extra files.
thanx a lot

Question TWRP Help.

Okay, so thanks to the help of you guys I finally managed to root my phone. Now I want to install Arrow OS on it but before that want to take a nandroid backup. Unfortunately, it shows 0mb internal storage and some error like "Unable to mount /data". !!Not sure if this is the perfect error!! but it's close to this.
I've read how to fix this, by changing the type of filesystem to Ex2 then back to Ex4. But,
1. Is this the way to do it?
2. Will It delete all my data, and/or Custom ROM (ie, will I have to perform the android first time setup again). If yes, is there any other way?
And no, I haven't kept any lock on my device.
Some questions may be extremely basic but I'm completely new and would like to confirm things before regretting them later!
Thanks!
doughnut9 said:
Okay, so thanks to the help of you guys I finally managed to root my phone. Now I want to install Arrow OS on it but before that want to take a nandroid backup. Unfortunately, it shows 0mb internal storage and some error like "Unable to mount /data". !!Not sure if this is the perfect error!! but it's close to this.
I've read how to fix this, by changing the type of filesystem to Ex2 then back to Ex4. But,
1. Is this the way to do it?
2. Will It delete all my data, and/or Custom ROM (ie, will I have to perform the android first time setup again). If yes, is there any other way?
And no, I haven't kept any lock on my device.
Some questions may be extremely basic but I'm completely new and would like to confirm things before regretting them later!
Thanks!
Click to expand...
Click to collapse
Yes, it shows 0mb internal storage because is encrypted, twrp, orange fox cannot deal with android 12 to decrypt.
Changing the type of filesystem to Ex2 then back to Ex4 will delete your files.
So, the only way to do a nandroid backup is to decrypt first, but even so you'll loose all your files because you must format data
how to decrypt xiaomi.eu roms internal storage is now showing in custom recovery
I managed to decrypt Xiaomi.eu rom. my internal storage is now showing in twrp and OrangeFox. The main problem was that is was not able to run mcrypt.zip because Vendor partition was in Read only mode. I use xiaomi.eu Stable 12.0.15. (I have not...
forum.xda-developers.com
I tested this kind of decryption, works fine on MIUI and any other android 12 custom roms.
Hellera said:
Yes, it shows 0mb internal storage because is encrypted, twrp, orange fox cannot deal with android 12 to decrypt.
Changing the type of filesystem to Ex2 then back to Ex4 will delete your files.
So, the only way to do a nandroid backup is to decrypt first, but even so you'll loose all your files because you must format data
how to decrypt xiaomi.eu roms internal storage is now showing in custom recovery
I managed to decrypt Xiaomi.eu rom. my internal storage is now showing in twrp and OrangeFox. The main problem was that is was not able to run mcrypt.zip because Vendor partition was in Read only mode. I use xiaomi.eu Stable 12.0.15. (I have not...
forum.xda-developers.com
I tested this kind of decryption, works fine on MIUI and any other android 12 custom roms.
Click to expand...
Click to collapse
Lose all my "files", not my MIUI. Like I wont have to do the Android setup again right?
Thanks for the reply.
doughnut9 said:
Lose all my "files", not my MIUI. Like I wont have to do the Android setup again right?
Thanks for the reply.
Click to expand...
Click to collapse
Yes, but after format data you must setup MIUI again from scratch... not installing again.
Hellera said:
Sorry, but after format data you must setup MIUI again from scratch...
Click to expand...
Click to collapse
I guess Ill just clear it and directly install ArrowOS without setting MIUI up.
Will work?
doughnut9 said:
I guess Ill just clear it and directly install ArrowOS without setting MIUI up.
Will work?
Click to expand...
Click to collapse
Yes, it will work, but Arrow os is android 12 based, so you'll be not able to backup it because of encryption (0mb internal storage), so you must decrypt it for backup
Hellera said:
Yes, it will work, but Arrow os is android 12 based, so you'll be not able to backup it because of encryption (0mb internal storage), so you must decrypt it for backup
Click to expand...
Click to collapse
Decrypt what for backup? And how?
doughnut9 said:
Decrypt what for backup? And how?
Click to expand...
Click to collapse
I think you don't understand me... I gave you a link above... how to decript... if you don't need to backup don't do it!
Hellera said:
I think you don't understand me... I gave you a link above... how to decript... if you don't need to backup don't do it!
Click to expand...
Click to collapse
Ohhhh! Im extremely sorry for being ignorant! Actually I was outside so couldn't read that link. Thanks a lot!!

Question TWRP 3.7.0_12 fails to decrypt storage on stock A11?

Hi folks,
So, i'm still on the Stock MIUI 12.5.7 (Android 11).
Before upgrading, i just wanted to check out if TRWP works correctly, so i flashed the most recent official version...and to my surprise, it could _not_ decrypt the internal storage?
Also, in the Backup menu, the EFS and modem partitions have correct sizes, but the dynamic Super partiton is shown as ( 0 MB).
I thought there would be no more issues with such old ROMs...or maybe I'm missing something?
UPDATE:
After wiping data and resetting the phone, TWRP managed to mount the internal storage, as long as there's no PIN on it.
As soon as i enter a PIN in Android, the same PIN entered in TWRP fails to decrypt the internal storage.
Borosin said:
Hi folks,
So, i'm still on the Stock MIUI 12.5.7 (Android 11).
Before upgrading, i just wanted to check out if TRWP works correctly, so i flashed the most recent official version...and to my surprise, it could _not_ decrypt the internal storage?
Also, in the Backup menu, the EFS and modem partitions have correct sizes, but the dynamic Super partiton is shown as ( 0 MB).
I thought there would be no more issues with such old ROMs...or maybe I'm missing something?
UPDATE:
After wiping data and resetting the phone, TWRP managed to mount the internal storage, as long as there's no PIN on it.
As soon as i enter a PIN in Android, the same PIN entered in TWRP fails to decrypt the internal storage.
Click to expand...
Click to collapse
Sounds like you need an OS reinstall preceded by data format, not wipe, to remove encryption. There is a Nebrassy 3.6 version that decrypts for A11.
Borosin said:
Hi folks,
So, i'm still on the Stock MIUI 12.5.7 (Android 11).
Before upgrading, i just wanted to check out if TRWP works correctly, so i flashed the most recent official version...and to my surprise, it could _not_ decrypt the internal storage?
Also, in the Backup menu, the EFS and modem partitions have correct sizes, but the dynamic Super partiton is shown as ( 0 MB).
I thought there would be no more issues with such old ROMs...or maybe I'm missing something?
UPDATE:
After wiping data and resetting the phone, TWRP managed to mount the internal storage, as long as there's no PIN on it.
As soon as i enter a PIN in Android, the same PIN entered in TWRP fails to decrypt the internal storage.
Click to expand...
Click to collapse
Which twrp Version?
TWRP 3.7.0_12
It's the latest available on twrp.me for the Note 10 Pro.
Borosin said:
TWRP 3.7.0_12
It's the latest available on twrp.me for the Note 10 Pro.
Click to expand...
Click to collapse
Try this orangefox
https://forum.xda-developers.com/t/...ry-with-decryption-for-android-12-13.4471637/
or the newer one
Laptapper said:
Try this orangefox
https://forum.xda-developers.com/t/...ry-with-decryption-for-android-12-13.4471637/
or the newer one
Click to expand...
Click to collapse
It works with Orange fox.
Well, now that i have done a "format data" it works with TWRP, as well.
I moved to a xiaomi.eu rom, and everthing works fine, so far.
Also note that TWRP seems to always get replaced by the stock recovery when on a stock rom from Xiaomi.

Categories

Resources