Update rooted Pie to Pie without loosing TWRP, root, Magisk and apps - Sony Xperia XZ1 Compact Questions & Answers

Hi, I'm on Pie, rooted, Magisk, TWRP. I downloaded latest firmware through XperiFirm. If I remove file userdata_X-FLASH-CUST-C93B.sin from firmware, my apps will be intact. But can I also remove boot folder, to keep my current loader (TWRP)? Also will such upgrade remove root ?
Ideally I want to keep apps, TWRP, root (Magisk), not erase SD card. Is it possible?

Interested... I've think all time, to hold the user data, I just delete the sin file which contains the word user in front....

following this!
same situation, curious if a upgrade to new FW is able of keeping the userdata.

It's normal, that root is lost after update..... Supersu or Magisk must be flashed after update the system.
How to keep TWRP? It's the question, where TWRP is located and linked.... I must reflash also TWRP all time after new update.

Related

OTA update with root and TWRP?

hi! my OP3T is rooted and have a custom recovery (TWRP). now i get an ota update. i have read somewhere in this case its necessary to flash the ota manually in TWRP because i will lost root after this and if i flash it in TWRP i can after ota update flash superSU and will have no problems after reboot the phone.
i have tried this but get "Error 7" in TWRP while flashing ota update. isn't it possible at this way? what is my mistake?
thanks a lot for help and pardon for my bad english!
RotesMeerJogger said:
hi! my OP3T is rooted and have a custom recovery (TWRP). now i get an ota update. i have read somewhere in this case its necessary to flash the ota manually in TWRP because i will lost root after this and if i flash it in TWRP i can after ota update flash superSU and will have no problems after reboot the phone.
i have tried this but get "Error 7" in TWRP while flashing ota update. isn't it possible at this way? what is my mistake?
thanks a lot for help and pardon for my bad english!
Click to expand...
Click to collapse
I have a detailed thread already running on how to update here
http://forum.xda-developers.com/oneplus-3t/how-to/rom-oxygenos-3-5-4-mm-ota-update-t3519074
I shall keep it up to date with further releases
Sent from Funk Tuned 3T
okay, i have searched in the wrong category thanks a lot for the link!
this thread can be closed.
how can i receive the updates when i root my phone?
and is there anyway to change the emoji without root?
a7mad-911 said:
how can i receive the updates when i root my phone?
Click to expand...
Click to collapse
You should still receive OTA notifications with root. And it should detect you have root, and will download the full update zip, and it will install with TWRP.
Otherwise, you can manually download the full zip update from Funk WIzard's thread which he linked in Post #2 above (which also has detailed instructions on how to update when rooted and TWRP installed).
Works like a charm with magisk 13.6
I just did it with my OP3t and was super easy.
1) download update.
2) go to hidden folder .Ota
3) move zip file to another folder
4) put Magisk in the folder, too
5) reboot to recovery, flash ROM, then Magisk
6) wipe dalvik/cache and reboot
Edit: updated following testing of redpoint73's correct advice
LeighR said:
4) put twrp and Magisk in the folder, too
5) reboot to recovery, flash ROM, then twrp, then Magisk
Click to expand...
Click to collapse
As long as you already have TWRP installed (which is the situation we are talking about) you just need to flash the OTA update zip, then flash Magisk.
Magisk prevents TWRP from being over-written (replaced) with stock recovery. In other words, you don't need to flash TWRP, since TWRP is already there.
redpoint73 said:
As long as you already have TWRP installed (which is the situation we are talking about) you just need to flash the OTA update zip, then flash Magisk.
Magisk prevents TWRP from being over-written (replaced) with stock recovery. In other words, you don't need to flash TWRP, since TWRP is already there.
Click to expand...
Click to collapse
This means I will keep all apps/settings/files?
Thank you.
JayDz said:
This means I will keep all apps/settings/files?
Click to expand...
Click to collapse
Yes.
Although I will caveat that with my rule of thumb: "hope for the best, prepare for the worst". In that a "dirty" flash of an update is often possible (saving your a lot of work setting up the device again). But you should still be prepared to wipe and do a "clean" install if you run into any problems. So back up your data, by your method of choice, before you try to update.
In particular, for a major update (such as OOS 4.x to 5.x) a clean install (default wipe in TWRP - data, cache and Dalvik) is typically advised.
Shall?? You used the word 'shall' properly in context? Kudos to the school system (I here assume India's) you attended, and to you for paying attention, using the 'King's English' in it's most proper form.

Update phone with unlocked bootloader and no root?

Hi! If I have magisk root but I have uninstall magisk and flash stock boot img, as well as flash my stock recovery back. So now all I have is an unlocked bootloader, can I update my phone through OTA now? I am afraid it will brick my phone.
Cheers!
Not sure about Magisk root but there are times that when there used to be root access, even after uninstalling, some files are left behind. This sometimes lead to not being able to install official updates.
You may not be able to update normally through the EMUI updater but you should be able to do the "dload" method where you put the update in a folder called "dload" onto your external SD card.
That even worked with installed Magisk for me. Of course root may be lost if the update overwrites the boot partition and you have to install Magisk again.

Help ! Problems with Magisk, root and OTA.

Hi guys I'm a beginner so sorry if i did so many stupid mistakes.
I succesfully rooted my Xiaomi Mi A1 with Magisk about 3 months ago and tried to ignore OTA updates until today
I tried to follow a guide in github which i can't link because i'm new in this foru.
Since i rooted with Magisk i followed the first method
I "restored images" then tried to update but still doesn't work
Then i decided to reboot and then tried to update but it doesn't work
So then i tried to uninstall Magisk by dragging it from the home Just like any other app but didn't work
Then proceded to delete all Magisk folders from my downloads but the update still doesn't work
Then desperately tried to reinstall Magisk but it isn't the v16 version so i tried to install it(i don't know which file i need to select so i tried selcting any image files) says it worked but it didn't so i rebooted and tried over and now i'm stuck with incomplete rooting, non-working Magisk and no OTA update.
I'd like to update OTA and bring back Magisk and root.
Ibra2800 said:
Hi guys I'm a beginner so sorry if i did so many stupid mistakes.
I succesfully rooted my Xiaomi Mi A1 with Magisk about 3 months ago and tried to ignore OTA updates until today
I tried to follow a guide in github which i can't link because i'm new in this foru.
Since i rooted with Magisk i followed the first method
I "restored images" then tried to update but still doesn't work
Then i decided to reboot and then tried to update but it doesn't work
So then i tried to uninstall Magisk by dragging it from the home Just like any other app but didn't work
Then proceded to delete all Magisk folders from my downloads but the update still doesn't work
Then desperately tried to reinstall Magisk but it isn't the v16 version so i tried to install it(i don't know which file i need to select so i tried selcting any image files) says it worked but it didn't so i rebooted and tried over and now i'm stuck with incomplete rooting, non-working Magisk and no OTA update.
I'd like to update OTA and bring back Magisk and root.
Click to expand...
Click to collapse
Why you didn just flash Magisk uninstaller. Zip file?
Poslato sa VTR-L29 uz pomoć Tapatoka
urbanboymne said:
Why you didn just flash Magisk uninstaller. Zip file?
Poslato sa VTR-L29 uz pomoć Tapatoka
Click to expand...
Click to collapse
Sorry, i thought that i could still keep Magisk and root intact if i didn't use the uninstaller.
Ibra2800 said:
Sorry, i thought that i could still keep Magisk and root intact if i didn't use the uninstaller.
Click to expand...
Click to collapse
No you cant. You are lucky you didnt brick your phone. Flash uninstaller and than try OTA update. Download TWRP for your phone/new rom and flash working Magisk again and root phone. Is simple. Of course, if you are on TWTP you will be unable to OTA update your phone. You need stock recovery or wait for ZIP flash file of newes rom
Poslato sa VTR-L29 uz pomoć Tapatoka
@Ibra2800 There's no need to uninstall Magisk to update with an OTA. There are however a few prerequisites that need to be fulfilled:
You need to have the stock boot image installed. That can be done by using the restore images option in the Manager or manually flashing the boot.img file with fastboot or equivalent.
You need to have the stock recovery installed. This means the OTA will fail if you have TWRP or another custom recovery installed. Either keep the stock recovery installed and only boot the TWRP image when necessary (the fastboot boot command), or you make sure you restore the stock recovery image when you need to update.
You also need to have a few important partitions on your device untouched. Those include (but may not be limited to) /system and /vendor. If you've so much as mounted these as rw, the OTA will fail. This one can be tricky, because if an app has root access it can easily do this without you noticing.
If you manage to fulfill the above, you should be able to update your device. If the A/B method from @topjohnwu's OTA tips didn't work, use the general case instructions instead.
Right now, it sounds like you need to start from scratch though...
If you can get a hold of a full firmware file for your device, you might be better of flashing that instead. Or, wait for a flashable update, as stated above. And if you want to reinstall Magisk you might have to first uninstall it, to start clean. Use this uninstaller.
Thanks for trying to help me
Sorry to ask but i just can't wrap my head around it, how am i supposed to use the uninstaller, what are the steps ? Also i only user Magisk so i think i don't have any custom recovery and don't know what's TWRP purpose.
Ibra2800 said:
Sorry to ask but i just can't wrap my head around it, how am i supposed to use the uninstaller, what are the steps ? Also i only user Magisk so i think i don't have any custom recovery and don't know what's TWRP purpose.
Click to expand...
Click to collapse
The uninstaller is a zip that you flash in a custom recovery (i.e. TWRP) to uninstall Magisk completely. You should also be able to use the "Complete uninstall" option in the Magisk Manager.
TWRP is a custom recovery that you can use to make backups of your device partitions (so you don't loose any data if anything goes wrong, it's highly recommended to make regular backups in some way) and install custom ROMs and other modifications to your device. You can either install it permanently or just boot it whenever you need it (there are likely gonna be guides about this in your device's forum).
Since you seem to be quite new at this, I would suggest that you take some time to browse through your device's forum and familarise yourself with things like ADB, fastboot, custom recoveries, custom kernels, ROMs, etc. And if you have more questions like this, it's often best to ask them in the device forum, since there sometimes are device specific things that need to be done for everything to work right.

Can you help me with rebrand please?

I'm a bit in panic. I've follow all steps from The rebrand guide in the oreo section that is linked to a guide for Mate9.
But i cannot understand this steps:
G. Do "Downgrade Nougat" steps to the rebrand firmware, it fails and reboot but fine.
H. When going to system press "Vol-Up" to enter eRecovery, do "Low-level format data partition".
I do everything on my P10 but I don't have the "low lever format
Click to expand...
Click to collapse
I'm stucked, I have done all steps but in my case The Phone didnt fail, it boot as usual with cust correctly changed to c432 but i dont have italian language.
Now i dont know what to do cause i cant low Level format (i dont see this option).
Can I update with an official firmware from firmware finder? how?
Why i cant install twrp in recovery but only on ram_disk?
thank you for your help
RealPsygnosis said:
I'm a bit in panic. I've follow all steps from The rebrand guide in the oreo section that is linked to a guide for Mate9.
But i cannot understand this steps:
I'm stucked, I have done all steps but in my case The Phone didnt fail, it boot as usual with cust correctly changed to c432 but i dont have italian language.
Now i dont know what to do cause i cant low Level format (i dont see this option).
Can I update with an official firmware from firmware finder? how?
Why i cant install twrp in recovery but only on ram_disk?
thank you for your help
Click to expand...
Click to collapse
A low level format is called factory reset in emui recovery.
After completing the debranding you should receive OTA updates. If not you can use the Huawei Firmware finder app, or if your bootloader is unlocked you can manually update with TWRP (https://forum.xda-developers.com/p10/how-to/guide-manual-updgrade-to-update-oreo-t3758286).
In Oreo, the recovery partition is called 'ramdisk', so that is where you have to flash TWRP.
M1chiel said:
A low level format is called factory reset in emui recovery.
After completing the debranding you should receive OTA updates. If not you can use the Huawei Firmware finder app, or if your bootloader is unlocked you can manually update with TWRP (https://forum.xda-developers.com/p10/how-to/guide-manual-updgrade-to-update-oreo-t3758286).
In Oreo, the recovery partition is called 'ramdisk', so that is where you have to flash TWRP.
Click to expand...
Click to collapse
Ok So I do a factory reset and repeat the operation....
what trwp should I install?
EDIT:
I've installed the TWRP in this thread and followed that guide ( @Jannomag ).
Now I have the 8.0.0.384 (C432) that works, with no brand and italian. but I've noticed through file manager that in the internal memory there is all the old file. how can I do and Hard Reset? (Before flashing the update I've done a simple factory reset through TWRP, do I need to format system, cache, and data partition?)
thank you
RealPsygnosis said:
Ok So I do a factory reset and repeat the operation....
what trwp should I install?
EDIT:
I've installed the TWRP in this thread and followed that guide ( @Jannomag ).
Now I have the 8.0.0.384 (C432) that works, with no brand and italian. but I've noticed through file manager that in the internal memory there is all the old file. how can I do and Hard Reset? (Before flashing the update I've done a simple factory reset through TWRP, do I need to format system, cache, and data partition?)
thank you
Click to expand...
Click to collapse
As far as I know TWRP cannot complete a factory reset on kirin devices. So you must first flash EMUI recovery and factory reset from there.
@M1chiel is correct, you need to do a factory reset with Huawei eRecovery. Connect your phone to a PC via USB and boot as you want to boot into TWRP. Or flash stock recovery.
thanks @Jannomag and @M1chiel
now with the bl unlocket I found out that I cannot install some apps like netflix, I've read that relock bootloader with fastbook oem relock code is a bad idea.
Is there something I could do?
lock bl with some trick? (hwota maybe? but i've read that I have to install it through twrp so I don't think the bl will be locked)
root with magisk and use some module? (but I hope this don't give me problems with payments apps)
RealPsygnosis said:
thanks @Jannomag and @M1chiel
now with the bl unlocket I found out that I cannot install some apps like netflix, I've read that relock bootloader with fastbook oem relock code is a bad idea.
Is there something I could do?
lock bl with some trick? (hwota maybe? but i've read that I have to install it through twrp so I don't think the bl will be locked)
root with magisk and use some module? (but I hope this don't give me problems with payments apps)
Click to expand...
Click to collapse
If you are on stock firmware (without root, custom kernel, twrp etc) you can relock your bootloader in fastboot. If not your phone will not boot.
However now you finally unlocked I would not recommend that. For Netflix there may be two options that work: install it from APKmirror instead of the Playstore or install Magisk as you indicated yourself. I'd suggest the latter, since it allows root and the opportunity to install relevant modules (I use debloater and youtube vanced). In addition you can hide root from e.g. Netflix, pay apps and games.
Edit: Magisk also ensures you pass Google's safetynet, which is tripped by unlocking the bootloader.
Even if you don't need to root your phone, do it with Magisk. It's systemless and and you can hide the root for most apps (some banking apps still won't work). I use it, too and have no problems with Netflix, Mario Run and my banking app including app for secure login and transactions.
you two @Jannomag @M1chiel are the best thank you,
What magisk image should I install? and what module to hide bl unlocked and root?
RealPsygnosis said:
you two @[email protected] are the best thank you,
What magisk image should I install? and what module to hide bl unlocked and root?
Click to expand...
Click to collapse
Magisk 18 works fine. You can flash it with TWRP or patch the boot image (called ramdisk in oreo) and flash it in fastboot. No modules are needed to pass safetynet. These threads are useful: https://forum.xda-developers.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382/page3035 and https://forum.xda-developers.com/ho...oot-honor-view-10-mate-10-pro-t3749280/page50 (but use the normal channel, not the custom channel).
Make backup of the boot image via TWRP before you install Magisk. The uninstaller works great but I bricked my P10 a year ago without doing something wrong.
Also wait at the first boot, it takes a few minutes (like 5-7 sometimes). Don't cancel it.
M1chiel said:
Magisk 18 works fine. You can flash it with TWRP or patch the boot image (called ramdisk in oreo) and flash it in fastboot. No modules are needed to pass safetynet. These threads are useful: https://forum.xda-developers.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382/page3035 and https://forum.xda-developers.com/ho...oot-honor-view-10-mate-10-pro-t3749280/page50 (but use the normal channel, not the custom channel).
Click to expand...
Click to collapse
Is it normal that for some reason after a few days that I've flashed twrp, it is replaced without my will with e-recovery?!
'cause I found out that I cannot boot to twrp and I had to flash it again through fastboot.
BTW I've installed Magisk and SafetyNet is ok, but I think that BL unlock isn't hidden because I have the same problems with incompatible device for some apps
No it is not normal that twrp disappears. You haven't run an update?
Installing apps from the Playstore may work again if you clear data in settings > apps and notifications > apps > playstore and restart the Playstore.

Miui 12 QFKEUXM

Received an update today , if i use standart ota updater via settings, does it overwrite the twrp and root stuff i have or it wont? Coz i never done this before, always using custom roms and now latest stock miui 11 with root.
You could flash the zip rom through the recovery, but keep in mind this. Let the phone boot with the new update, then go back to recovery (if you get the stock recovery, reflash it with fastboot), then flash magisk
So it is overwriting twrp and magisk even if i install it directly from twrp?
meezy5 said:
Received an update today , if i use standart ota updater via settings, does it overwrite the twrp and root stuff i have or it wont? Coz i never done this before, always using custom roms and now latest stock miui 11 with root.
Click to expand...
Click to collapse
You will loose Magisk/root but not Magisk Manager app and all Magisk data like modules, apps granted root, etc - once you re-root, everything will be there again.
I only suggest that you first un-hide Magisk Manager (if hidden for you), at the end you can hide it again
If you update via OTA, you will loose TWRP. If you don't want to flash TWRP again, then download the same full MIUI 12 zip package you got OTA notification for, and flash it from TWRP (without wiping, formatting or so), and immediately thereafter reboot first back to TWRP, and only then to MIUI 12
If you would like to update truly by OTA, you would have to flash the stock recovery back before starting the OTA.
Hence the way as described above, you save first on flashing stock recovery, and later on flashing TWRP back
Ok thanks so after twrp flash i have to reboot back to twrp , do i have to install force encrypt then to prevent overwriting twrp by miui or not?
meezy5 said:
Ok thanks so after twrp flash i have to reboot back to twrp , do i have to install force encrypt then to prevent overwriting twrp by miui or not?
Click to expand...
Click to collapse
See posts #933, #935-#937 in the TWRP thread:
https://forum.xda-developers.com/showpost.php?p=82945031&postcount=936

Categories

Resources