Facing issues after custom ROMing: Need to retreat - Sony Xperia XZ Premium Questions & Answers

I started off by unlocking bootloader (and losing my DRM). I needed to root. Everything was perfect. Then, I saw the VoLTE ROMs. I went for Bliss. It installed OK but I started to get SIM1 issues and than I was not able to get a all-clear on the Magisk security test. Also, my corporate apps failed to install because device was not getting encrypted. I reinstalled but same effect. Then I went to crDroid. Its Android 9. Exact same issues except SIM1 was okay now. Right now, I used XperiFirm to get the official ROM and install it but keep TWRP + Magisk and I'm still facing the issue with encryption, Magisk security test failing, & no rooting.
How should I reinstall official ROM but keep bootloader unlocked + Magisk + root? Am I to do a more through formatting?

me too other person can't hear me what i say. (Bliss rom 12.12 latest ver.)
Doomer D. Great said:
I started off by unlocking bootloader (and losing my DRM). I needed to root. Everything was perfect. Then, I saw the VoLTE ROMs. I went for Bliss. It installed OK but I started to get SIM1 issues and than I was not able to get a all-clear on the Magisk security test. Also, my corporate apps failed to install because device was not getting encrypted. I reinstalled but same effect. Then I went to crDroid. Its Android 9. Exact same issues except SIM1 was okay now. Right now, I used XperiFirm to get the official ROM and install it but keep TWRP + Magisk and I'm still facing the issue with encryption, Magisk security test failing, & no rooting.
How should I reinstall official ROM but keep bootloader unlocked + Magisk + root? Am I to do a more through formatting?
Click to expand...
Click to collapse
if you go to reinstall official rom you will not having any facing problems only root will gone, and i use Emma software

I'm not used to Emma. But from what I gathered, I'll be back on a non-root device. I do not want that. We are already facing issues with Android 10 Roms and device encryption. I need to reinstall with XperiFirm but need to know what *ta files I need to delete before flashing and also, what do I have to format and wipe as well. Need to retain boot loader as unlocked.

No need to delete any *ta just flash with newflasher

Toni Mahmud said:
No need to delete any *ta just flash with newflasher
Click to expand...
Click to collapse
HI. Keeping all TA files means I'll loose unlock bootloader too? Say I'm more in favor of having a working phone, what do I need to format or wipe before flashing or I just flash and everything is set? Since I have bootloader already unlocked do I need to say y/n to the new flasher questions?

give only for all and put ENTER don't worry

Related

Questions about OTA/Update to Nougat

Hello.
Just got the news about 7.0 being released for this phone, and thought I would give it a shot. However, I have a few questions before I update . These are not in any particular order and I would love any help people can provide, even if you can't answer all the questions.
Since I got this phone, I unlocked the bootloader (I bought the unlocked version) and got TWRP, then installed SuperSU binary in order to use a few root apps on my phone. Then along came an OTA update. When I went to install it, I got a message informing me that the update couldn't be installed due to my system being modified, which was fair enough as I had installed SuperSU. I stopped bothering with OTA updates.
Now it's been a while and the Nougat update is out and apparently available over OTA. Is there a way for me to return to normal system and get this OTA without losing all of my personal data already on the phone? I understand that I'd probably have to get TWRP again, and what is recommended for root now? Can I "re-lock" my bootloader in order to get the OTA?
Basically: How can I get Nougat without losing my data?
Cheers, and thanks for reading! Quick answers would be appreciated.
DuoDex said:
Basically: How can I get Nougat without losing my data?
Click to expand...
Click to collapse
backup your data and then flash a ruu, either the nougat version if its available for your version or flash the marshmallow ruu then take the ota update.
What is your "fastboot getvar all" ?
alray said:
backup your data and then flash a ruu, either the nougat version if its available for your version or flash the marshmallow ruu then take the ota update.
What is your "fastboot getvar all" ?
Click to expand...
Click to collapse
I was able to get it by poking around in the forums, first got the RUU for 1.57, relocked bootloader, and am now OTAing the Nougat version (fingers crossed it all works). Thank you so much for replying!
Question: If I install TWRP (like I had before) and then Magisk, will I continue to be able to receive OTA updates? Backing up and reinstalling is such a pain and I'm afraid I will break something. Some people say you need to mount system read-only - how is this accomplished via TWRP exactly?
Thanks again!
DuoDex said:
I was able to get it by poking around in the forums, first got the RUU for 1.57, relocked bootloader, and am now OTAing the Nougat version (fingers crossed it all works). Thank you so much for replying!
Question: If I install TWRP (like I had before) and then Magisk, will I continue to be able to receive OTA updates? Backing up and reinstalling is such a pain and I'm afraid I will break something. Some people say you need to mount system read-only - how is this accomplished via TWRP exactly?
Thanks again!
Click to expand...
Click to collapse
I just went thru the process or putting magisk on nougat. You'll want to use twrp 3.0.3-4 for it. From what I understood from the user who clued me into it, magisk will let you take OTA's and use android pay since it won't mess with dm-verity, SELinux or safetyNet. I can definately confirm the Android pay part at least. I did notice however i had to turn on magisk hide in the settings to get it to pass the safetynet check.
as for mounting the system as read only, the first time i booted into twrp it asked me to either slide the lock to modify /system or check a box to mount it as read only and that was it.
txag2011 said:
I just went thru the process or putting magisk on nougat. You'll want to use twrp 3.0.3-4 for it. From what I understood from the user who clued me into it, magisk will let you take OTA's and use android pay since it won't mess with dm-verity, SELinux or safetyNet. I can definately confirm the Android pay part at least. I did notice however i had to turn on magisk hide in the settings to get it to pass the safetynet check.
as for mounting the system as read only, the first time i booted into twrp it asked me to either slide the lock to modify /system or check a box to mount it as read only and that was it.
Click to expand...
Click to collapse
I was mistaken, Magisk now patches dm-verity and forced encryption. You should be able to take an OTA by flashing the stock recovery though, and failing that by also restoring the system image backup you make in TWRP before modifying or mounting system.

Using FlashFire to apply OTA upgrades?

I have a rooted One Plus 6 running on stock Oxygen OS 9.0 There is an OTA update available at the moment. I have used FlashFire on my previous phone (Nexus 6P) and it worked flawlessly in keeping the root and applying OTA updates without any steps required. All I had to do was launch the app, it detected the firmware, and I would let it install. I purchased the professional version of the app as the free version stopped working at some point.
When I launch the same app on my OP6 and select "Flash zip or OTA" option I get another screen that has three options to check:
1. Auto-mount: Mount common paths before running update. Rarely necessary. Enable for A/B device OTAs, disable for all other OTAs.
2. Mount / system read / write: Mount /system read / write by default, rather than read-only. Doing this only once may break the future OTAs, Enable when flashing custom firmwares.
3. Restore boot and recovery images: Attempt to restore boot and recovery images before flashing. May be required for some OTA. Disable for non-OTA updates.
What's confusing me is the third option as that is already checked. It sounds like this option would install a factory image back on the phone? Should I uncheck it and check #1 as the only option?
If your bl is unlocked then you can't use ota to update. You have to flash the full zip in twrp.
se7ensde said:
If your bl is unlocked then you can't use ota to update. You have to flash the full zip in twrp.
Click to expand...
Click to collapse
I just found the instructions for update in another thread. I will have to use the blu-spark twrp to update it. Since I have never done it before, my question is, is it going to leave all the data and the app data intact? Things like pictures, videos, messages from messaging apps? Because in my mind I always thought of flashing the full image the same way as reinstalling the OS on any desktop computer - it deletes everything.
I am guessing the answer is no?
Is your bl already unlocked?
se7ensde said:
Is your bl already unlocked?
Click to expand...
Click to collapse
BL is unlocked and the phone is rooted.
shagexpert said:
BL is unlocked and the phone is rooted.
Click to expand...
Click to collapse
okay so if you have it setup Google will backup your apps calls and network settings and you will be able to sign out to your Google account and choose to restore it. For photos.. If you have Google photos installed it will backup everything you have told it to. But you shouldn't have to worry about any of this if you are just dirty flashing the update. Everything will be the way it was is like an ota only difference is you manually flashing the full room zip in twrp. So if your just dirty flashing you shouldn't lose any data.
Thanks! I will give it a try sometime later this week.

How to flash Magisk on Nougat?

Hello. Just got my phone back from assistance and had my motherboard replaced after an unrecovable hard brick.
Atm I'm on Nougat and I don't plan to update to Oreo, I just wanna root my device again and I would like to do so using Magisk.
So, I've unlocked my bootloader, flashed TWRP 3.1.1-0 and then tried to flash Magisk 19.3 zip: problem is my phone is encrypted so it requires password for encrypting and it fails (as expected), then it wanna do a factory reset and reboot into TWRP which is unable to factory reset properly while eRecovery doesn't have a factory reset option so meh.
I didn't had problems installing Magisk on Oreo but right now I'm pretty tired and cannot figure out what I'm doing wrong on Nougat. Any hint?
How is that you can unlock bootloader in these months?
My father give me the BLL23, and is on stock Rom (nougat)
But I want to try Viper, and that's making me need root, then I need to unlock...
Have you tried Ianmacd's builds? They're friendly with Huawei devices. Sincerely it's weird that official Magisk doesn't work since that topjohnwu has fixed troubles with EMUI some time ago, but give it a try. And here's a dedicated wiki in way to troubleshoot most common errors.
Plus, in way to factory reset as the OS asks, stock recovery is needed as you'll know. Even if the phone is encrypted a password shouldn't be asked after flashing Magisk. That usually is asked by recovery, so i don't know about this.
pantxus said:
How is that you can unlock bootloader in these months?
My father give me the BLL23, and is on stock Rom (nougat)
But I want to try Viper, and that's making me need root, then I need to unlock...
Click to expand...
Click to collapse
Through DC-Unlocker at the cost of 4 euros.

What can unlocking the bootloader and not rooting the phone do?the possibilities?

Checked out realme's website and they state that unlocking and flashing roms does not void warranty but rooting the phone does.So what are the possibilities/things one can do with the phone while unlocking it but not rooting it.
Also is there a safe rooting method which doesnt leave traces after unrooting again? So that the device can be used in warranty.
Thanks in advance for any advice.
If you have Realme 5 Pro (not q) then you can still flash custom rom, recovery or basically anything with adb. It's just you won't be able to do root stuff on your phone but you'll need pc. Still you could flash custom kernel, rom, or ota update. Magisk is called systemless root for it does root your system without touching the system files so after uninstalling it and flashing stock rom realme service shouldn't ever be able to tell that your phone was ever rooted. I live in Hungary and my previous Xiaomi phone was installed with custom rom, kernel and Magisk root. Before taking it to Xiaomi service I did a clean flash, reverted everything to stock and warranty was still good to go. That'd be just an example. Don't know Realme how is with these stuff.
greenys' said:
If you have Realme 5 Pro (not q) then you can still flash custom rom, recovery or basically anything with adb. It's just you won't be able to do root stuff on your phone but you'll need pc. Still you could flash custom kernel, rom, or ota update. Magisk is called systemless root for it does root your system without touching the system files so after uninstalling it and flashing stock rom realme service shouldn't ever be able to tell that your phone was ever rooted. I live in Hungary and my previous Xiaomi phone was installed with custom rom, kernel and Magisk root. Before taking it to Xiaomi service I did a clean flash, reverted everything to stock and warranty was still good to go. That'd be just an example. Don't know Realme how is with these stuff.
Click to expand...
Click to collapse
Thank you so much for the prompt and clear reply.Really did clear a lot of stuff for me. Yes I do have realme 5 pro and the problems was with the audio jack output .Its terrible so wanted to flash dolby and / viper . I'll give adb a go then. Thank you again.
Firebolt1994 said:
Thank you so much for the prompt and clear reply.Really did clear a lot of stuff for me. Yes I do have realme 5 pro and the problems was with the audio jack output .Its terrible so wanted to flash dolby and / viper . I'll give adb a go then. Thank you again.
Click to expand...
Click to collapse
You're welcome. If indeed only root void warranty then you're free to flash to your linking almost everything via usb adb. Except for root ofc.
thank you again for the same.
Firebolt1994 said:
thank you again for the same.
Click to expand...
Click to collapse
After installing twrp via adb you can flash stuff from your sd card. Don't forget to always have a backup zip file of your stock rom in case something goes wrong. And don't forget to use backup in twrp for data partition sometimes when you feel you're about to do something risky that might flip your system's stability. I do that all the time ?*
Yep I will.Its a new phone so more of a reason to take precautions .
Firebolt1994 said:
Yep I will.Its a new phone so more of a reason to take precautions .
Click to expand...
Click to collapse
Exactly. Have fun but take care.
bootloader unlock 7 ROOT
Does bootloader unlock will prevent running of Bank Applications?Can this Realme5Pro be rooted and installed Twrp using Kingoroot/
Waiting with thanks.
Please any one give an advice
TWRP
If TWRP is installed via ADB in my unrooted Rm5P will it become rooted and prevent bank applications?
pnsdhrn said:
If TWRP is installed via ADB in my unrooted Rm5P will it become rooted and prevent bank applications?
Click to expand...
Click to collapse
Magisk has an option to hide from those apps, I used it all the time with secure banking apps
If I unlock bootloader and flash TWRP, can this TWRP can be used as my stock recovery further for flashing zips(not custom ROMs)? Also will Bank apps work in this set up without any problems?
Yes, you can use TWRP to flash anything. Yes, bank apps will work as long as you have magisk installed.

Question Downgrade LE2115 from 12 to 11 - confused.

Hello all,
My phone came with ColorOS OOS 12 and I hate it. As soon as I rooted it it started crashing daily, I even reflashed a fresh oos12 image using the local update tool and only granted superuser to one app (solid explorer so I could access user files) and it still crashes. Not to mention all the apps i want to use don't work on android 12 (call recorder, busy box) and no custom recovery.
I've been reading through the forum and I found a downgrade package that looks like its hosted by oneplus: https://oxygenos.oneplus.net/OnePlu...all_2107082125_downgrade_059624cc7298428b.zip
I just wanted to make sure I am doing this correctly...
Do I use the OP Local Update app to flash?
Will I be able to flash TWRP for android 11 afterwards?
Will i need to relock the bootloader?
Should i re-root using the magisk slot b method or wait until its flashed and use TWRP?
Will it try to OTA back to android 12? If so, what's the best method to get on the latest version of android 11?
Thanks for the help.
I am running COS C.62 on my OP9 with root and having no issues. Did you make sure to do all the things in this guide?
Root OnePlus ColorOS 12 OxygenOS Android 12 via Magisk
In this tutorial, we will show you detailed steps to root your OnePlus device running ColorOS 12 Android 12 via Magisk Patched Boot.img file.
www.droidwin.com
Anyway, yes, use the local upgrade APK, put the downgrade file in the root of storage, run it. Reboot. Factory reset and wipe data to clear out any leftover crap (don't restore a backup - if you want to use Clone Phone you can do that but only restore app APKs and messages). When it reboots it should offer the latest OOS11 OTA first. If not, just download it and place it in the root and use the local upgrade function in the settings menu of the OOS11 system updater.
There is no need re-lock the bootloader and if you do, you risk a brick that has to be recovered with MSM Tool.
Root by following the guide I linked. I just went through this yesterday after flashing COS broke mobile data. I have Magisk 24.3 working with denylist, Widevine L1, and SafetyNet passes so I have Google Pay.
EtherealRemnant said:
I am running COS C.62 on my OP9 with root and having no issues. Did you make sure to do all the things in this guide?
Root OnePlus ColorOS 12 OxygenOS Android 12 via Magisk
In this tutorial, we will show you detailed steps to root your OnePlus device running ColorOS 12 Android 12 via Magisk Patched Boot.img file.
www.droidwin.com
Anyway, yes, use the local upgrade APK, put the downgrade file in the root of storage, run it. Reboot. Factory reset and wipe data to clear out any leftover crap (don't restore a backup - if you want to use Clone Phone you can do that but only restore app APKs and messages). When it reboots it should offer the latest OOS11 OTA first. If not, just download it and place it in the root and use the local upgrade function in the settings menu of the OOS11 system updater.
There is no need re-lock the bootloader and if you do, you risk a brick that has to be recovered with MSM Tool.
Root by following the guide I linked. I just went through this yesterday after flashing COS broke mobile data. I have Magisk 24.3 working with denylist, Widevine L1, and SafetyNet passes so I have Google Pay.
Click to expand...
Click to collapse
Thank you, ill give it a try.
First i used the payload.bin method and it was crashing, then i reflashed the latest OTA using the local update tool and used the magisk slot b method. still crashing.
It might have less to do with the root and more with me using root to disable certain apps (youtube, chrome, OP community, google news/podcast/tv) i dont want them on my phone but they might be too tightly integrated. If its still crashing on android 11 ill re-enable them and see if that helps.
aaronbaird1 said:
Thank you, ill give it a try.
First i used the payload.bin method and it was crashing, then i reflashed the latest OTA using the local update tool and used the magisk slot b method. still crashing.
It might have less to do with the root and more with me using root to disable certain apps (youtube, chrome, OP community, google news/podcast/tv) i dont want them on my phone but they might be too tightly integrated. If its still crashing on android 11 ill re-enable them and see if that helps.
Click to expand...
Click to collapse
Okay you're on OOS, not COS. COS doesn't have Google apps by default (but has plenty more bloatware, I just don't use it).
It's certainly possible that disabling Google apps is your problem. If you don't want Google apps, you're better off with a custom ROM that doesn't have them. CalyxOS has a beta for OnePlus 9 and it's totally de-Googled. There's also Lineage.
EtherealRemnant said:
Okay you're on OOS, not COS. COS doesn't have Google apps by default (but has plenty more bloatware, I just don't use it).
It's certainly possible that disabling Google apps is your problem. If you don't want Google apps, you're better off with a custom ROM that doesn't have them. CalyxOS has a beta for OnePlus 9 and it's totally de-Googled. There's also Lineage.
Click to expand...
Click to collapse
ahhhh. i didnt realize there was a difference. I thought OP was just calling their android 12 build ColorOS.
Either way, for custom roms i would have to go back to 11 to flash TWRP right? or can you flash custom roms using fastboot?
aaronbaird1 said:
ahhhh. i didnt realize there was a difference. I thought OP was just calling their android 12 build ColorOS.
Either way, for custom roms i would have to go back to 11 to flash TWRP right? or can you flash custom roms using fastboot?
Click to expand...
Click to collapse
You would need to back to 11 because OnePlus hasn't released working sources for 12. Just use the downgrade package, factory reset, then upgrade to 11.2.10.10 and you'll be good to go for custom ROMs. TWRP isn't used for flashing them, they all generally post their own recovery. StagOS was the best one I used (plus the dev is really responsive when there are issues) and people seem to really be enjoying Nameless but that came out after I went back to stock so I haven't tried it yet.
Before you mess with custom ROMs, make sure that you download the global MSM Tool and make sure you can connect it. Honestly since you have to go back anyway, might as well download and use the MSM Tool to get the device back to 11 anyway.
GLOBAL OnePlus 9 MSM TOOL UPDATED
Frist off Im not responsible for anything that happens to your phone!!! VERY SIMPLE IF YOU ARE BICKED,BOOTLOOPED OR JUST WANT TO GO BACK TO 100% STOCK THIS WILL WIPE ALL DATA!!! AN RELOCK BOOTLOADER OOS 11.2.4.4.LE25AA MUST HAVE QAULCOMM...
forum.xda-developers.com
Easiest way to get it into EDL is adb reboot edl but if you want to practice the key combination in case you can't get into the OS, I found if you open the MSM, check use lite firehose, and click Start before you connect the phone, it has less connection errors because it's waiting for the phone so as soon as you connect the cable, it pops up.
EtherealRemnant said:
TWRP isn't used for flashing them, they all generally post their own recovery.
Click to expand...
Click to collapse
Really??? you can tell I haven't messed with custom roms in a long time.
Thank you for all the help. I'll try it out.
aaronbaird1 said:
Really??? you can tell I haven't messed with custom roms in a long time.
Thank you for all the help. I'll try it out.
Click to expand...
Click to collapse
Yeah TWRP has issues. I soft bricked last time I tried to do anything with it and had to use MSM Tool to get back to working order.

Categories

Resources