Question How to update firmware without data loss on rooted device - Samsung Galaxy S21 Ultra

Hi
I have a S21 ultra Exynos variant with twrp and Magisk root. If I flash new firmware I would lose all apps and data due to having to wipe from twrp to circumvent the encryption issue.
Is there any way to backup all apps and data to flash the newest firmware with HOME_CSC and then do a restore to get as close as possible to an OTA update?

Best way is clean install and restore user app + data with some tool like swift backup or similar (Needs to backup first)
To update dirty,
Download full newer firmware and patch AP file using magisk and flash using Odin, same time you needs to Select bootloader, modem file and HOme_csc* file on respective tab in Odin
Also Same time select twtp+patched vbmeta on user tab of odin
Don't boot device to Android but,
Force reboot to TWRP and apply multidisabler
Now you can reboot to Android and all data will be there

dr.ketan said:
Best way is clean install and restore user app + data with some tool like swift backup or similar (Needs to backup first)
To update dirty,
Download full newer firmware and patch AP file using magisk and flash using Odin, same time you needs to Select bootloader, modem file and HOme_csc* file on respective tab in Odin
Also Same time select twtp+patched vbmeta on user tab of odin
Don't boot device to Android but,
Force reboot to TWRP and apply multidisabler
Now you can reboot to Android and all data will be there
Click to expand...
Click to collapse
Thanks for the reply. Can you please provide me a little more details in the steps? When I apply multidisabler I would need to do wipe and format right which would destroy the data else I would have partition errors?

ankit255 said:
Thanks for the reply. Can you please provide me a little more details in the steps? When I apply multidisabler I would need to do wipe and format right which would destroy the data else I would have partition errors?
Click to expand...
Click to collapse
If you are already on twrp then you don't need to to format data. It is required when you first time flash twrp. But keep in mind, if you failed to apply multidisabler before booting device, You may lose data

Is there a way to apply multidisabler without a custom recovery?

Related

[Recovery][BKL][EMUI 8.x][Unofficial]TWRP 3.2.1-0 working recovery from View 10

Backup your stock recovery per this post. If you are too lazy, I can upload my backup from .104 build (C432) to Mega.
Download twrp_bkl_0.7.img from this post and place it in same directory with your ADB.
After successful backup as precaution disable any locks like pattern/PIN/password/fingerprint, reboot to bootloader (fastboot):
Code:
adb reboot bootloader
Then flash new TWRP recovery:
Code:
fastboot flash recovery_ramdisk twrp_bkl_0.7.img
After successful flash reboot device and immediately after confirming command below unplug USB cable and HOLD and keep holding VOLUME UP button, if you won't the new recovery will be overwritten by stock and you can try again.
Code:
fastboot reboot
Tested by myself on Honor 10 8.1.0.104 (C432) with unlocked bootloader and installed already Magisk 16.4 with Magisk manager 5.7.0, Magisk ramdisk persisted after installing TWRP recovery, system boots normal.
Next step after unlocking BL, installing Magisk, installing TWRP recovery -> flashing GSI AOSP, LOS or RR. Only reason I bothered with installing TWRP was that GSI image of LOS and RR don't include opengapps, only AOSP does, so without TWRP you can't have opengapps with these two GSI ROMS.
PeterMarkoff said:
Backup your stock recovery per this post. If you are too lazy, I can upload my backup from .104 build (C432) to Mega.
Download twrp_bkl_0.7.img from this post and place it in same directory with your ADB.
After successful backup as precaution disable any locks like pattern/PIN/password/fingerprint, reboot to bootloader (fastboot):
Code:
adb reboot bootloader
Then flash new TWRP recovery:
Code:
fastboot flash recovery_ramdisk twrp_bkl_0.7.img
After successful flash reboot device and immediately after confirming command below unplug USB cable and HOLD and keep holding VOLUME UP button, if you won't the new recovery will be overwritten by stock and you can try again.
Code:
fastboot reboot
Tested by myself on Honor 10 8.1.0.104 (C432) with unlocked bootloader and installed already Magisk 16.4 with Magisk manager 5.7.0, Magisk ramdisk persisted after installing TWRP recovery, system boots normal.
Next step after unlocking BL, installing Magisk, installing TWRP recovery -> flashing GSI AOSP, LOS or RR. Only reason I bothered with installing TWRP was that GSI image of LOS and RR don't include opengapps, only AOSP does, so without TWRP you can't have opengapps with these two GSI ROMS.
Click to expand...
Click to collapse
Nice work. ?
tried to install GSI RR OS, but ending in bootloop, also even after resizing system partition to maximum (TWRP / wipe / resize) opengapps still showing error 70 about insufficient space (which makes no sense, so they really seem to have wrong detection of A/B instead of A for Huawei/Honor devices), though these gzr gapps seem to install successfuly, now if I could figure out the damn bootloop
potential reasons for bootloop - previously installed magisk, wiped also system not only data/cache, installed through fastboot while TWRP there and not only stock recovery, ???
edit: i guess will try flash GSI through TWRP again, quite a waste time to wait each time like 9-10 minutes to find out it can't boot
edit 2: so even flashing through TWRP doesn't help, just stuck on android animation for 10 minutes and then it restarts (and even if you do fatory reset through huawei erecovery it doesnt change anything). maybe can try to restore everything and not wipe system before installing, just factory reset through TWRP (though I remember I read somewhere it's not reliable and it is better to do it through system, but I think that one wipe also internal storage which I wanna avoid)? back to rooted EMUI with TWRP for now, don't have time to try various combinations
edit 3: flashing over TWRP backup without wiping system doesn't help, so it seem it's gonna be magisk or replaced stock recovery i guess, otherwise no idea
BTW the lack of feedback here and trying from other users it's very depressing. they boasted million phone sales and i am the only one in the whole world trying to install TWRP and GSI ROM on this phone?
PeterMarkoff said:
BTW the lack of feedback here and trying from other users it's very depressing. they boasted million phone sales and i am the only one in the whole world trying to install TWRP and GSI ROM on this phone?
Click to expand...
Click to collapse
Don't be disappointed the lack of feedback from users is not many power users have got their hands on this model.
And also we are having different builds.
From the day one I am trying to rebrand my device but no success .
Once I have rebranded to EU I will try and let you know.
Did you flash open gapps nano package through twrp in gsi image?
Did it give you the same error?
tried just pico opengapps as on all phones i flash, that's the smallest, but always end up with error 70 not enough space despite resized system partition in TWRP and many GB available, the other unofficial GZR zero gapps build i mentioned seem to be flashed successful in TWRP, but in any case no luck with booting
PeterMarkoff said:
tried just pico opengapps as on all phones i flash, that's the smallest, but always end up with error 70 not enough space despite resized system partition in TWRP and many GB available, the other unofficial GZR zero gapps build i mentioned seem to be flashed successful in TWRP, but in any case no luck with booting
Click to expand...
Click to collapse
Did you format your phone before trying GSI ?
Try formatting phone and remove some system apps and then flash gapps it will mostly solve the problem.
PeterMarkoff said:
BTW the lack of feedback here and trying from other users it's very depressing. they boasted million phone sales and i am the only one in the whole world trying to install TWRP and GSI ROM on this phone?
Click to expand...
Click to collapse
Don't be upset – e.g. I didn't receive my Honor 10 yet. You won't be the only one for sure, you're just the first one to do it, which is super nice for others because it motivates them to do so as well!
Just wondering: does it make a difference for TWRP wether I own the 6gb or 4gb version?
miststudent2011 said:
Did you format your phone before trying GSI ?
Try formatting phone and remove some system apps and then flash gapps it will mostly solve the problem.
Click to expand...
Click to collapse
I did factory reset (data, both cache) and also wiped system partition, gapps would be the least issue, as I said that GZR should work, but my system doesn't boot, no matter how times I wipe everything through TWRP or stock recovery after flashing system.img, since they say it's normal to hang at first boot and then wipe and then it should boot, but it doesn't work for me. also of course tried to power off phone since some people said it helps to do it after flashing. what I haven't done it's fastboot -w which should be some better wipe. some people say also you should remove magisk ramdisk, though I forgot to back up original, backed up just stock recovery. and also I haven't tried to flash everything with stock recovery, though first flash I did was through fastboot anyway and not through TWRP and it didn't make difference
so last few things left to try:
- fastboot -w for total wipe of data (better than TWRP? though it should be same as Format data in TWRP which wipe everything including internal storage which I wanna avoid since backing up 15GB TWRP backup file it's kinda annoying and my system has problem to do it)
- flash with stock recovery (I have backup, no big deal)
- remove magisk ramdisk and flash with stock ramdisk (forgot to make backup, can't replace)
though I am tired of it for now, spend last night like 4 hours dealing with it until 2AM and I also need to take care of children
vollkornbaguette said:
Don't be upset – e.g. I didn't receive my Honor 10 yet. You won't be the only one for sure, you're just the first one to do it, which is super nice for others because it motivates them to do so as well!
Just wondering: does it make a difference for TWRP wether I own the 6gb or 4gb version?
Click to expand...
Click to collapse
I don't think RAM has something to do with anything, but that sounds like Chinese version since EU has always 4GB and only difference is storage, so you will have different ROM
PeterMarkoff said:
(...)
so last few things left to try:
- fastboot -w for total wipe of data (better than TWRP?)
- flash with stock recovery (I have backup, no big deal)
- remove magisk ramdisk and flash with stock ramdisk (forgot to make backup, can't replace)
Click to expand...
Click to collapse
So I just read more about the GSI/Treble stuff and it said somewhere that modifications like Magisk probably lead to problems with the GSI flash.
Which is why I would try to get rid of the magisk ramdisk first.
I'm not an expert in this at all but maybe this helps.
---
PeterMarkoff said:
I don't think RAM has something to do with anything, but that sounds like Chinese version since EU has always 4GB and only difference is storage, so you will have different ROM
Click to expand...
Click to collapse
Indeed I bought the chinese 6gb RAM Version (hope this won't turn out as a big mistake)
vollkornbaguette said:
So I just read more about the GSI/Treble stuff and it said somewhere that modifications like Magisk probably lead to problems with the GSI flash.
"Your device is free of any heavy modifications such as the
Click to expand...
Click to collapse
yeah, now if someone could extract for me from 0.104 firmware for C432 that stock ramdisk, because I have some problems with mega to download it and I just need the stock ramdisk, nothing else, I have stock recovery backup but forgot to make ramdisk backup
edit: completely forgot there is option to "Completely uninstall" in Magisk manager, so tried it though even after restart with magisk manager missing i could still use root apps, so not sure how exactly this "complete uninstall" works, but anyway giving it a try after this and wiping data, installed system.img again, again wiped, rebooted and as usual loading and loading and nothing, seem can't further continue without copy of stock ramdisk to flash, tried downloading the big update from mega to extract it but it always fail for me to download, same with trying to copy my TWRP backup because for sure ain't gonna doi fastboot -w and setting up everything from scratch in case even this doesn't help, if I knew it works for sure and it will load new system which I will have to set up then no problem, but in this case...
edit 2: tried to replace magisk ramdisk with ramdisk from Honor View 10 BKL09 (same as our working TWRP) but it seem I end up after flashing it, wiping and flashing system.img in TWRP/erecovery bootloop, it's not showing android booting logo like before (but hey at least no need to wait 10 minutes to find it's fail) and either go to huawei ercovery, if I perform factory reset there then it boots to TWRP, but can't boot anywhere else besides these two
pass
I requested this image. Recovery has been established. When I enter the recovery, it requires a password to decrypt the system partition, I enter it (the same after switching on the phone), but a message is displayed that the password is incorrect. help me please.
told you in OP disable all passwords before flashing
PeterMarkoff said:
yeah, now if someone could extract for me from 0.104 firmware for C432 that stock ramdisk, because I have some problems with mega to download it and I just need the stock ramdisk, nothing else, I have stock recovery backup but forgot to make ramdisk backup
edit: completely forgot there is option to "Completely uninstall" in Magisk manager, so tried it though even after restart with magisk manager missing i could still use root apps, so not sure how exactly this "complete uninstall" works, but anyway giving it a try after this and wiping data, installed system.img again, again wiped, rebooted and as usual loading and loading and nothing, seem can't further continue without copy of stock ramdisk to flash, tried downloading the big update from mega to extract it but it always fail for me to download, same with trying to copy my TWRP backup because for sure ain't gonna doi fastboot -w and setting up everything from scratch in case even this doesn't help, if I knew it works for sure and it will load new system which I will have to set up then no problem, but in this case...
edit 2: tried to replace magisk ramdisk with ramdisk from Honor View 10 BKL09 (same as our working TWRP) but it seem I end up after flashing it, wiping and flashing system.img in TWRP/erecovery bootloop, it's not showing android booting logo like before (but hey at least no need to wait 10 minutes to find it's fail) and either go to huawei ercovery, if I perform factory reset there then it boots to TWRP, but can't boot anywhere else besides these two
Click to expand...
Click to collapse
If you want, i have all the files of the C432 update but idk in wich .zip, folder the ramdisk is stored.
I can send on several clouds.
PeterMarkoff said:
told you in OP disable all passwords before flashing
Click to expand...
Click to collapse
Hey did you restore your device are you still struck at boot screen?
If yes try this method.
https://forum.xda-developers.com/huawei-p20/development/rebrand-huawei-p20-eml-l29-eml-l09-t3779283
How to GO back to stock emui(India) after i flash a treble rom? Do i need to backup using some tool?
PLease someone tell me
srharshajava said:
PLease someone tell me
Click to expand...
Click to collapse
The problem is currently we don't have full
ROM to revert to stock and if we brick our device there is no proper way to revert to stock.
Our model even doesn't have SD card support.
Just wait for some time for someone to provide proper way.
When i flash a treble rom, I have a bootloop. I returned back with eRecovery directly on the phone.
miststudent2011 said:
The problem is currently we don't have full
ROM to revert to stock and if we brick our device there is no proper way to revert to stock.
Our model even doesn't have SD card support.
Just wait for some time for someone to provide proper way.
Click to expand...
Click to collapse
We do have a way to download full ROM.
http://pro-teammt.ru/firmware-database/?firmware_model=COL-L29C432
1. Search here for your exact model (change numbers after C432 to find ROM for your phone) and search for your rom version (B104 or B120)
2. Double click on "filelist" on the same row as FullOTA-MF
3. From filelist link menu download update.zip file (it should be really big, like 2+GB)
3. Extract UPDATE.APP file somewhere (eg. Desktop)
4. In settings of HuaweiUpdateExtractor (link: https://forum.xda-developers.com/showthread.php?t=2433454) uncheck "verify header checksum" and open UPDATE.APP
5. Extract any img (Be it ramdisk.img, ramdisk_recovery.img or system.img) file that you need from UPDATE.APP via HuaweiUpdateExtractor
You just got whoole stock rom and img files that you can flash. Tested by myself with flashing back original ramdisk, ramdisk_recovery and system.img and everything worked well.

Magisk + root + TWRP

Hi fellas,
I am about to flash magisk+twrp+root on my exynos device but I am worried about the following:
- Is it be possible after twrp flash to encrypt /data folder and lock bootloader, so if telephone gets stolen there is no way they access my data?
- I read that when knox is tripped samsung pay and google pay do not work but there is a workaround (hide root) to fix that. What functionality does not work at all after tripping knox?
- How do OTA updates work? Do I need to flash the OTA update everytime an update is rolled out? Will I every time lose my data?
Thanks!
dklearhos said:
Hi fellas,
I am about to flash magisk+twrp+root on my exynos device but I am worried about the following:
- Is it be possible after twrp flash to encrypt /data folder and lock bootloader, so if telephone gets stolen there is no way they access my data?
- I read that when knox is tripped samsung pay and google pay do not work but there is a workaround (hide root) to fix that. What functionality does not work at all after tripping knox?
- How do OTA updates work? Do I need to flash the OTA update everytime an update is rolled out? Will I every time lose my data?
Thanks!
Click to expand...
Click to collapse
No,you cant encrypt data or lock bootloader after rooting/ installing twrp.
Yes samsung and google pay works after a tweak. Same as netflix.Secure folder,Samsung pass and S health.And if you are a gamer Fortnite too.But Fortnite and S health can be fixed.
To install ota you download the latest stock firmware with SamFirm/Frija and patch the AP file in Magisk Manager.Download the latest TWRP and patch it too.In Odin on your pc,put BL file ,patched AP file,CP file and Home_CSC/CSC file.Put phone in download mode and connect it to pc.Click start.After that let it boot.You will see phone will not be rooted,just use combibation keys for booting with root.Install flashify and install the TWRP as recovery file.Boot into TWRP and flash multidisabler from TWRP thread.Go to rebootand select Recovery.Let it boot and you are done!
Yes you need to manually install the update every month( everytime an update is rolled out).
If in odin you use CSC file your data will be deleted.If you use HOME_CSC your data will be intact.
ExtremeGrief said:
No,you cant encrypt data or lock bootloader after rooting/ installing twrp.
Yes samsung and google pay works after a tweak. Same as netflix.Secure folder,Samsung pass and S health.And if you are a gamer Fortnite too.But Fortnite and S health can be fixed.
To install ota you download the latest stock firmware with SamFirm/Frija and patch the AP file in Magisk Manager.Download the latest TWRP and patch it too.In Odin on your pc,put BL file ,patched AP file,CP file and Home_CSC/CSC file.Put phone in download mode and connect it to pc.Click start.After that let it boot.You will see phone will not be rooted,just use combibation keys for booting with root.Install flashify and install the TWRP as recovery file.Boot into TWRP and flash multidisabler from TWRP thread.Go to rebootand select Recovery.Let it boot and you are done!
Yes you need to manually install the update every month( everytime an update is rolled out).
If in odin you use CSC file your data will be deleted.If you use HOME_CSC your data will be intact.
Click to expand...
Click to collapse
Sorry to revive such an old thread but you mentioned we can flash multidisabler and reboot. But multidisabler official thread OP says we need to wipe data every time multidisabler is flashed? Can you confirm this please?
ykumar00 said:
Sorry to revive such an old thread but you mentioned we can flash multidisabler and reboot. But multidisabler official thread OP says we need to wipe data every time multidisabler is flashed? Can you confirm this please?
Click to expand...
Click to collapse
No. Untick the reboot option in Odin when flashing the patched files. Then, when flash is complete, boot to TWRP recovery (hold vol up + Bixby when booting) and flash multidisabler in TWRP before booting the phone normally.
Note - on first boot, TWRP will reboot again. Make sure you're ready to hold vol up + Bixby again as it reboots.
As long as you install multidisabler before phone boots normally you shouldn't lose any data.

[Guide] Decrypt OnePlus 7 Pro

In this guide I will show you how to decrypt this phone
You might be asking:
(What are the advantages of decrypting?)
Well, it is much easier to switch between custom roms when you are decrypted and you don't have to wipe internal storage everytime you flash a new rom and there may be a performance increase (Maybe).
(What are the disadvantages of decrypting?)
If your phone gets stolen.. The stealer can access all of your data and can even remove the pattern by just rebooting to twrp and deleting a few files so your phone will not have any protection whatsoever.
Downloads:
Disable Dm-Verity
Magisk
Instructions:
1- You have to be on clean oos without any mods or kernels.
2- Reboot Recovery
3- Format data (Go to wipe - Format data and click yes)
4- Reboot Recovery
4- Flash No Verity Mod
5- Flash Magisk
6- Reboot System
Now you are decrypted!!
Keep Decrypt between OS updates:
-Reboot Recovery
-Flash FULL ZIP in TWRP
-Without booting the OS: Flash TWRP Recovery, reboot recovery, Flash No Verity Mod, Flash Magisk, Reboot System.
Keep Decrypt between Roms:
-Wipe Data only in twrp!!! (NEVER WIPE SYSTEM OR - VENDOR ON OP7P)
-Flash Rom
-Flash TWRP
-Reboot Recovery
-Flash any other zips you want like Gapps-Kernels- ex.....
-Flash No Verity Mod
-Flash Magisk
-Reboot System
Credits:
@topjohnwu
@Zackptg5
How would I know if I'm decrypted or not?
mlock420 said:
How would I know if I'm decrypted or not?
Click to expand...
Click to collapse
Settings, security, down towards the bottom it tells you
OK so I'm encrypted... Am I secured somewhat from theft correct? And yes I know it's not 100% but it is safer than decrypted?
Another question let's say I don't mind being encrypted because I have a flash drive with otg and all that... Is that good enough? Or should I go decrypted all the way so I can start backing up on twrp and restoring twrp without errors which would mean no use for flash drive...
I know it's my choice just trying to make things easier and to understand a little more
mlock420 said:
OK so I'm encrypted... Am I secured somewhat from theft correct? And yes I know it's not 100% but it is safer than decrypted?
Another question let's say I don't mind being encrypted because I have a flash drive with otg and all that... Is that good enough? Or should I go decrypted all the way so I can start backing up on twrp and restoring twrp without errors which would mean no use for flash drive...
I know it's my choice just trying to make things easier and to understand a little more
Click to expand...
Click to collapse
If you are really concerned about your data and you are OK with wiping internal storage, then I don't recommend decrypting and just leave it encrypted.
I have oos decrypted via disable force encrypt!
Today I went through the following process to update to the latest version of OOS.
1. Flash full oos & twrp
2. reboot to recovery
3. Flash magisk
4. flash disable force encrypt
5. reboot
rebooted, but back to TWRP,,,
there was a "0" directory in sdcard and inside it my data was in it.
Do you know the solution?
thx
download link is not working for the file.
cylent said:
download link is not working for the file.
Click to expand...
Click to collapse
XDA thread:
https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Downloads:
https://zackptg5.com/android.php#disverfe
https://zackptg5.com/downloads/Disable_Dm-Verity_ForceEncrypt_12.27.2019.zip
Hi omar2005
May i ask you a quetion?
I just will get my oneplus 7 pro.
Under android 10.
During first time rooting and twrp install. Should i reboot recovery and flash decrypter or first finishing rooting than rebooting system and than do the steps like you said in your Instructions?
Thank you for orientation and greetings ivifly
You have to flash dfe before booting system. Once system boots, you'll be encrypted
Avril09 said:
You have to flash dfe before booting system. Once system boots, you'll be encrypted
Click to expand...
Click to collapse
What is DFE?
Sent from my OnePlus7Pro using XDA Labs
---------- Post added at 09:18 AM ---------- Previous post was at 09:17 AM ----------
Is there a way I could reencrypt(due to security concerns) without having to wipe my data? The option in security is greyed out :/.
Thank you
Sent from my OnePlus7Pro using XDA Labs
fp1707 said:
What is DFE?
Sent from my OnePlus7Pro using XDA Labs
---------- Post added at 09:18 AM ---------- Previous post was at 09:17 AM ----------
Is there a way I could reencrypt(due to security concerns) without having to wipe my data? The option in security is greyed out :/.
Thank you
Sent from my OnePlus7Pro using XDA Labs
Click to expand...
Click to collapse
DFE is Disable Force Encryption also known as dmverity in some cases.
And yea you can reencrypt without losing data but it takes time depending on the size of files you have.
omar2005 said:
In this guide I will show you how to decrypt this phone
You might be asking:
(What are the advantages of decrypting?)
Well, it is much easier to switch between custom roms when you are decrypted and you don't have to wipe internal storage everytime you flash a new rom and there may be a performance increase (Maybe).
(What are the disadvantages of decrypting?)
If your phone gets stolen.. The stealer can access all of your data and can even remove the pattern by just rebooting to twrp and deleting a few files so your phone will not have any protection whatsoever.
Downloads:
https://zackptg5.com/downloads/Disable_Dm-Verity_ForceEncrypt_05.21.2019.zip
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Instructions:
1- You have to be on clean oos without any mods or kernels.
2- Reboot Recovery
3- Format data (Go to wipe - Format data and click yes)
4- Reboot Recovery
4- Flash No Verity Mod
5- Flash Magisk
6- Reboot System
Now you are decrypted!!
Keep Decrypt between OS updates:
-Reboot Recovery
-Flash FULL ZIP in TWRP
-Without booting the OS: Flash TWRP Recovery, reboot recovery, Flash No Verity Mod, Flash Magisk, Reboot System.
Keep Decrypt between Roms:
-Wipe Data only in twrp!!! (NEVER WIPE SYSTEM OR - VENDOR ON OP7P)
-Flash Rom
-Flash TWRP
-Reboot Recovery
-Flash any other zips you want like Gapps-Kernels- ex.....
-Flash No Verity Mod
-Flash Magisk
-Reboot System
Credits:
@topjohnwu
https://forum.xda-developers.com/member.php?u=4470081
@Zackptg5:
https://forum.xda-developers.com/member.php?u=6037748
Click to expand...
Click to collapse
can we use this method for boot dual os (oos+custom) , when we install dual os twrp by @Zackptg5 we face problem with encryption and password protection on one of the os.
is it possible this method help this problem???
This does not work for my OP7Pro, when you say boot into Recovery and wipe data. Is that the stock recovery or TWRP? When I try decrypting using the instructions using TWRP, when I reboot the phone, it boots into the boot animation. But the animation is slow and the phone just gets stuck there and won't boot any further. Trying to decrypt so it's easier to get LineageOS installed. My phone seems to have problems when on the B partition reading the internal storage.
Scotsman828 said:
This does not work for my OP7Pro, when you say boot into Recovery and wipe data. Is that the stock recovery or TWRP? When I try decrypting using the instructions using TWRP, when I reboot the phone, it boots into the boot animation. But the animation is slow and the phone just gets stuck there and won't boot any further. Trying to decrypt so it's easier to get LineageOS installed. My phone seems to have problems when on the B partition reading the internal storage.
Click to expand...
Click to collapse
Are you running an open beta build? OnePlus did something dumb with the beta builds where this no longer works. I've been racking my brain trying to find a way to decrypt a beta too. For now, only the main builds of OOS are decryptable.
H4X0R46 said:
Are you running an open beta build? OnePlus did something dumb with the beta builds where this no longer works. I've been racking my brain trying to find a way to decrypt a beta too. For now, only the main builds of OOS are decryptable.
Click to expand...
Click to collapse
No, my phone was on a main build. Just wasn't having any luck and gave up. I'm on LineageOS now but spent an entire day trying to get that installed and working properly. Something was weird, slot A could read my internal storage, but when I switched to slot B the internal storage just disappeared. Once I got TWRP and LOS installed on both slots, the problem disappeared. But I still haven't attempted to decyrpt for fear of messing up my current setup.
H4X0R46 said:
Are you running an open beta build? OnePlus did something dumb with the beta builds where this no longer works. I've been racking my brain trying to find a way to decrypt a beta too. For now, only the main builds of OOS are decryptable.
Click to expand...
Click to collapse
It still works for me to this day tbh, on any rom i flash except some problems with android 11 roms ...
H4X0R46 said:
Are you running an open beta build? OnePlus did something dumb with the beta builds where this no longer works. I've been racking my brain trying to find a way to decrypt a beta too. For now, only the main builds of OOS are decryptable.
Click to expand...
Click to collapse
I'm on OOS 11 Beta 1 and decryption works fine for me. I was on 10.3.7 (decrypted) before.
Do you have to be on OOS? Or could any clean flashed rom work?
who can help. i cant decrypt my op7t pro. Well, let's start with the fact that when formatting dalvik cache and data, I have an error and nothing is formatted. as with (Go to wipe - Format data and click yes). Formatted this data via adb, installed No Verity Mod and now I have bootloop

Complete setup of Lineage OS

Since in my last post I made a complete mess out of my first time trying to root my K20 and install lineage I wanted to my make a separate post so that I can list all the steps I need to take to correctly setup my phone how I want it.
What I actually want
A rooted device
Lineage OS
Minimal excess files (A clean Install)
Current Steps
Unlock and flash recovery
Backup
Format Data! (It's important if you come from Miui)
Install Q Firmware + vendor
Install LineageOS followed by gapps
Reboot into system and setup device.
Reboot into recovery and flash magisk
Profit???
Feel free to tell me how stupid I am and what I need to add to the list or steps I should take to make this process better.
I also dont know if its possible to get recovery and rom on android 10 versions.
Thanks
Did these steps not work?
Sent from my Redmi K20 Pro using Tapatalk
BJack0 said:
Since in my last post I made a complete mess out of my first time trying to root my K20 and install lineage I wanted to my make a separate post so that I can list all the steps I need to take to correctly setup my phone how I want it.
What I actually want
A rooted device
Lineage OS
Minimal excess files (A clean Install)
Current Steps
Flash a custom recovery
Create a backup
Root???
Install LineageOS
Profit???
Feel free to tell me how stupid I am and what I need to add to the list or steps I should take to make this process better.
Thanks
Click to expand...
Click to collapse
1. Unlock and flash recovery
2. Backup
3. Format Data! (It's important if you come from Miui)
4. Install Q Firmware + vendor
5. Install LineageOS followed by gapps
6. Reboot into system and setup device.
7. Reboot into recovery and flash magisk
You could also check LOS thread: Here and here
Remember:
Chinese firmware: Widevine L3 and NFC support
Indian firmware: Widevine L1 but no NFC support
ishaqtkr said:
Did these steps not work?
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
They may work as it but I was just wondering if anyone could go into more detail or if there was a better approach and from what Kollachi said there clearly is a better way that what I said.
Since I'm in stock ROM and haven't ever flashed AOSP ROM in this phone I'll just back off lol
Sent from my Redmi K20 Pro using Tapatalk
Kollachi said:
1. Unlock and flash recovery
2. Backup
3. Format Data! (It's important if you come from Miui)
4. Install Q Firmware + vendor
5. Install LineageOS followed by gapps
6. Reboot into system and setup device.
7. Reboot into recovery and flash magisk
Click to expand...
Click to collapse
I like the details steps but I have a few questions.
(Unlock and flash recovery) From what I can tell there are two recovery's Orange fox and TWRP
(Format data) Just format data or are there other sections I should format/wipe
(Install Q Firmware + Vendor) I have no idea what Q firmware is or what vendor you are referring to
(Install Lineage + gapps) Is there a specific version from the Mi 9T pro since the official site doesn't list it
Any of the two recoveries will work. Q firmware means Android Q. Wile data/cache dalvik that's it. Regarding firmware, there's a clear topic of Lineage OS in K20 Pro forum which is still in unofficially state
Sent from my Redmi K20 Pro using Tapatalk
BJack0 said:
I like the details steps but I have a few questions.
(Unlock and flash recovery) From what I can tell there are two recovery's Orange fox and TWRP
(Format data) Just format data or are there other sections I should format/wipe
(Install Q Firmware + Vendor) I have no idea what Q firmware is or what vendor you are referring to
(Install Lineage + gapps) Is there a specific version from the Mi 9T pro since the official site doesn't list it
Click to expand...
Click to collapse
1. You can take what you want. Orangefox is based on TWRP.
2. Format data is needed if you come from miui. If you did it you are good to go. But it wouldn't be false to wipe system, dalvic, cache
3.https://downloads.akhilnarang.me/MIUI/raphael/ --> Take 10.4.6.0 or 10.4.8.0 (Android 10 = Q)
4. No there is no specific version.
BJack0 said:
I like the details steps but I have a few questions.
(Unlock and flash recovery) From what I can tell there are two recovery's Orange fox and TWRP
(Format data) Just format data or are there other sections I should format/wipe
(Install Q Firmware + Vendor) I have no idea what Q firmware is or what vendor you are referring to
(Install Lineage + gapps) Is there a specific version from the Mi 9T pro since the official site doesn't list it
Click to expand...
Click to collapse
I would recommend the latest TWRP from here
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
The dev is an official TWRP dev, so this version, or something very close to this, is likely to become official in the future.
OrangeFox is a heavily modified TWRP and has a lot of added functionality specific to MIUI. If you wanted to stay on stock MIUI, but debloat and have root, etc. then OF would be the better choice, as it has functionality that lets it play nicely with MIUI (it can remain installed when OTA updates are installed)
As someone new to flashing on Android, I would suggest downloading a 10.4.x fastboot ROM from the site I pointed to in your other post, then follow the same procedure to flash the ROM.
Make your choice based on Kollachi's info and what's important to you (HD Netflix - choose Indian, or a working NFC - choose Chinese)
However you MUST change the flash option to 'clean all'.
At this point you've got a nice squeaky clean starting point.
Boot into the ROM at least once, though it's not necessary to go through all the setup.
After that follow Kollachi's steps but you can now ignore the step to flash vendor and firmware as it's all part of the fastboot ROM already flashed.
Wipe cache and dalvik, format data.
There is no official LOS for this phone yet. Hopefully it will go official in the future.
For now just get the current Android 10 based LOS from here.
https://forum.xda-developers.com/k20-pro/development/rom-lineageos-17-0-t3976469/post80406191
Robbo.5000 said:
I would recommend the latest TWRP from here
The dev is an official TWRP dev, so this version, or something very close to this, is likely to become official in the future.
OrangeFox is a heavily modified TWRP and has a lot of added functionality specific to MIUI. If you wanted to stay on stock MIUI, but debloat and have root, etc. then OF would be the better choice, as it has functionality that lets it play nicely with MIUI (it can remain installed when OTA updates are installed)
As someone new to flashing on Android, I would suggest downloading a 10.4.x fastboot ROM from the site I pointed to in your other post, then follow the same procedure to flash the ROM.
Make your choice based on Kollachi's info and what's important to you (HD Netflix - choose Indian, or a working NFC - choose Chinese)
However you MUST change the flash option to 'clean all'.
At this point you've got a nice squeaky clean starting point.
Boot into the ROM at least once, though it's not necessary to go through all the setup.
After that follow Kollachi's steps but you can now ignore the step to flash vendor and firmware as it's all part of the fastboot ROM already flashed.
Wipe cache and dalvik, format data.
There is no official LOS for this phone yet. Hopefully it will go official in the future.
For now just get the current Android 10 based LOS from here.
Click to expand...
Click to collapse
When ever I think I have the process memories and I follow the steps on my screen I still somehow **** this up and I cant understand how.
My current steps include
Flash the fastboot with the ROM that you linked me in my first post
Flash the recovery with TWRP (Every time I have then tried going back into TWRP is failed to work and prompted the original MIUI recovery)
Install the TWRP zip from custom recovery to try and fix the issue above (Only had this work once on orangefox and then never had success again)
So now I try to just flash the recovery and boot to it using CMD and it works fine
Move the lineageOS files from my PC to the phone SDCard
If I wipe data and the caches as suggested then the lineageOS zip is now go and I am back to flashing the fastboot ROM to restart the process
I know this might seem like im either stupid or just not getting it but could you or anyone else please make a bullet pointed list with links to what I have to download in order to actually achieve this since I cant do anything correctly even when trying to follow the steps.
(Im going to sleep since I have been trying to do this for hours now and I will check reply's in the morning.
Thanks for the help so far EVERYONE
BJack0 said:
When ever I think I have the process memories and I follow the steps on my screen I still somehow **** this up and I cant understand how.
My current steps include
Flash the fastboot with the ROM that you linked me in my first post
Flash the recovery with TWRP (Every time I have then tried going back into TWRP is failed to work and prompted the original MIUI recovery)
Install the TWRP zip from custom recovery to try and fix the issue above (Only had this work once on orangefox and then never had success again)
So now I try to just flash the recovery and boot to it using CMD and it works fine
Move the lineageOS files from my PC to the phone SDCard
If I wipe data and the caches as suggested then the lineageOS zip is now go and I am back to flashing the fastboot ROM to restart the process
I know this might seem like im either stupid or just not getting it but could you or anyone else please make a bullet pointed list with links to what I have to download in order to actually achieve this since I cant do anything correctly even when trying to follow the steps.
(Im going to sleep since I have been trying to do this for hours now and I will check reply's in the morning.
Thanks for the help so far EVERYONE
Click to expand...
Click to collapse
I just told you what I have done and I'm running it so far without issues.
Robbo just said you should flash the whole Chinese or indian rom but I don't like his steps because:
1. File is much bigger
2. MiFlash is just meh
3. If you forgot to change the flash process you are bricked if you don't take the correct firmware for your phone.
Default option in Miflash is set to "Clean all and lock". Every time you use it, you will need to change it into "clean all" or something other.
Kollachi said:
I just told you what I have done and I'm running it so far without issues.
Robbo just said you should flash the whole Chinese or indian rom but I don't like his steps because:
1. File is much bigger
2. MiFlash is just meh
3. If you forgot to change the flash process you are bricked if you don't take the correct firmware for your phone.
Default option in Miflash is set to "Clean all and lock". Every time you use it, you will need to change it into "clean all" or something other.
Click to expand...
Click to collapse
Yes flashing the whole fastboot ROM does add the risk, if you forget to change the flash option, but you are guaranteed a clean slate and so less likely to have any niggling issues that nobody else has. I would bet large sums of money that many of the issues you see on here, where only one person has some problem and everyone else is fine, would be solved by fastboot flashing MIUI before installing the ROM of choice.
If you know what you're doing and know when you'll be OK with what you've got and know when it's best to start clean, then going with the vendor and firmware is easier.
But if your unsure and new to flashing on Android phones, I will always suggest go with the overkill and know you've got the clean slate to start with.
---------- Post added at 10:56 AM ---------- Previous post was at 10:36 AM ----------
BJack0 said:
When ever I think I have the process memories and I follow the steps on my screen I still somehow **** this up and I cant understand how.
My current steps include
Flash the fastboot with the ROM that you linked me in my first post
Flash the recovery with TWRP (Every time I have then tried going back into TWRP is failed to work and prompted the original MIUI recovery)
Install the TWRP zip from custom recovery to try and fix the issue above (Only had this work once on orangefox and then never had success again)
So now I try to just flash the recovery and boot to it using CMD and it works fine
Move the lineageOS files from my PC to the phone SDCard
If I wipe data and the caches as suggested then the lineageOS zip is now go and I am back to flashing the fastboot ROM to restart the process
I know this might seem like im either stupid or just not getting it but could you or anyone else please make a bullet pointed list with links to what I have to download in order to actually achieve this since I cant do anything correctly even when trying to follow the steps.
(Im going to sleep since I have been trying to do this for hours now and I will check reply's in the morning.
Thanks for the help so far EVERYONE
Click to expand...
Click to collapse
It's sounds like the main issue is stock recovery is being restored. This is something that MIUI will do when it boots up.
When you first install TWRP you cannot boot into MIUI before booting to TWRP as you instantly lose TWRP. So you need to boot into TWRP first in order to do something to prevent it being overwritten.
Options are
1
Code:
fastboot boot TWRP.img
2 Use the button combo whilst still in fastboot - power and vol+, hold both until the phone vibrates and the initial logo appears.
Now to keep TWRP you need to either flash a custom ROM, flash Magisk or flash the dm-verity script.
In your case you want to flash LOS, so now you've booted into TWRP go ahead and continue with the steps given.
Also, wait until after you've formatted data before copying everything over. You can access the phone as an MTP device when in TWRP, so you'll be able to connect it to a PC and drag everything across, or you can stick everything on a USB OTG pen, if you have one, TWRP can read data from them too.
It's sounds like the main issue is stock recovery is being restored. This is something that MIUI will do when it boots up.
When you first install TWRP you cannot boot into MIUI before booting to TWRP as you instantly lose TWRP. So you need to boot into TWRP first in order to do something to prevent it being overwritten.
Options are
1
Code:
fastboot boot TWRP.img
2 Use the button combo whilst still in fastboot - power and vol+, hold both until the phone vibrates and the initial logo appears.
Now to keep TWRP you need to either flash a custom ROM, flash Magisk or flash the dm-verity script.
In your case you want to flash LOS, so now you've booted into TWRP go ahead and continue with the steps given.
Also, wait until after you've formatted data before copying everything over. You can access the phone as an MTP device when in TWRP, so you'll be able to connect it to a PC and drag everything across, or you can stick everything on a USB OTG pen, if you have one, TWRP can read data from them too.
Click to expand...
Click to collapse
The exact problem I have is that I cant transfer any files to the device after formatting the data. I follow the steps correctly and I get into TWRP successfully and then everyone has told me to format the data then install lineage but I cant install the OS if formatting the data removes it.
Get device into fastboot
Flash revocery with TWRP
power the device off
hold volume up and power
boot into custom recovery
format data
move lineageOS onto my device
install lineageOS
reboot
done.
This is the list of exact actions I am doing with no results is there something I am missing or something that is in the wrong order.
BJack0 said:
The exact problem I have is that I cant transfer any files to the device after formatting the data. I follow the steps correctly and I get into TWRP successfully and then everyone has told me to format the data then install lineage but I cant install the OS if formatting the data removes it.
Get device into fastboot
Flash revocery with TWRP
power the device off
hold volume up and power
boot into custom recovery
format data
move lineageOS onto my device
install lineageOS
reboot
done.
This is the list of exact actions I am doing with no results is there something I am missing or something that is in the wrong order.
Click to expand...
Click to collapse
You connect your phone to computer while in recovery to transfer the OS zip
Sent from my Redmi K20 Pro using Tapatalk
BJack0 said:
The exact problem I have is that I cant transfer any files to the device after formatting the data. I follow the steps correctly and I get into TWRP successfully and then everyone has told me to format the data then install lineage but I cant install the OS if formatting the data removes it.
Get device into fastboot
Flash revocery with TWRP
power the device off
hold volume up and power
boot into custom recovery
format data
move lineageOS onto my device
install lineageOS
reboot
done.
This is the list of exact actions I am doing with no results is there something I am missing or something that is in the wrong order.
Click to expand...
Click to collapse
After format data, reboot your device into recovery again and transfer LOS, gapps and all files you need.
Format data kills the storage.
I always used to reboot from TWRP back in to TWRP after formatting data, but I've recently seen someone saying that they just unmount data then remount it again. I haven't tried it myself but it certainly makes sense and would be quicker too.
Robbo.5000 said:
I always used to reboot from TWRP back in to TWRP after formatting data, but I've recently seen someone saying that they just unmount data then remount it again. I haven't tried it myself but it certainly makes sense and would be quicker too.
Click to expand...
Click to collapse
Yes I did that and it worked, unmounting and remounting helps detect the storage in PC
Sent from my Redmi K20 Pro using Tapatalk
Robbo.5000 said:
I always used to reboot from TWRP back in to TWRP after formatting data, but I've recently seen someone saying that they just unmount data then remount it again. I haven't tried it myself but it certainly makes sense and would be quicker too.
Click to expand...
Click to collapse
Yes that works. Tried it myself but prefer to reboot into recovery again.:laugh:
Finally Successful
After a long post I have finally finished the process successfully. This was pretty educational for me since I didn't understand any of this at the start I would like to thank everyone who reply's and all the information that you have provided.
need help guys, i stuck in bootloop.
- fastboot rom global china V10.3.17.0 PFKCNXM
- fastboot twrp 3.3.1
- format data
- flash vendor image cn 10.4.6.0
- wipe cache/dalvik
- flash lineage os
- flash gapps nano
- reboot
- stuck bootloop

Proper Upgrade/Flash Firmware

Hello,
I recently wiped my device to start from scratch as in no os. I went into TWRP then wipe and advanced and deleted each option available. Then I downloaded the latest raw firmware I could find which was WW_ZS661KS_18.0410.2108.158_M3.35.19.17-ASUS_1.1.5_Phone-user.raw.zip. After doing a flash_all I obviously wasn't on the latest version of firmware so here is where I get stuck. In order to avoid encrypting the data partition what am I supposed to do to properly upgrade before root? What I ended up doing was;
1. Flash latest RAW firmware
2. Boot into recovery and factory reset
3. Boot into OS, go through basic setup until the home screen
4. Copy latest firmware from ASUS website (WW-18.0410.2203.201) to internal data partition on phone
5. Flash TWRP
6. Boot into TWRP and flash latest firmware
7. Boot to B partition
8. Reboot into recovery and flash firmware again
9. Boot back to A parition
10. Flash twrp on A and B
Is that correct or should I be doing a factory reset / full wipe somewhere in there as well?
Thanks
Why not simply wipe and flash the version of the official firmware you're lookin for with TWRP OR RAW flash flash and upgrade the normal way. And then root. Looks like a lot of unnecessary steps...

Categories

Resources