Hi! So I wonder, is there any way to update Xiaomi mi a2 to android 9 if the phone has been unlocked and rooted? I also enabled camera2api and I know that since my phone is rooted and has the camera2api unlocked, there is no way to update to andoid Pie without flashing the original system image first, I won't receive the Ota update without flashing the system image.
Is there any way to flash android 9 without loosing all my data (mainly my apps)? It's fine if I have to root again after and enable camera2api, but I just want to keep all my apps and data. Is there a custom rom that I can safely just flash with Twrp? Can someone help me with a guide?
Thank youuuu in advance! ^^
mirunaa said:
Hi! So I wonder, is there any way to update Xiaomi mi a2 to android 9 if the phone has been unlocked and rooted? I also enabled camera2api and I know that since my phone is rooted and has the camera2api unlocked, there is no way to update to andoid Pie without flashing the original system image first, I won't receive the Ota update without flashing the system image.
Is there any way to flash android 9 without loosing all my data (mainly my apps)? It's fine if I have to root again after and enable camera2api, but I just want to keep all my apps and data. Is there a custom rom that I can safely just flash with Twrp? Can someone help me with a guide?
Thank youuuu in advance! ^^
Click to expand...
Click to collapse
This depends. Did you enable camera2 by modifying build.prop directly? Also, did you root using Magisk?
Ashik_salim_ said:
This depends. Did you enable camera2 by modifying build.prop directly? Also, did you root using Magisk?
Click to expand...
Click to collapse
Yes, I enabled camera2api by modifying build.prop with the app called Build Prop editor and rooted using Magisk
mirunacont said:
Yes, I enabled camera2api by modifying build.prop with the app called Build Prop editor and rooted using Magisk
Click to expand...
Click to collapse
Oh okay. Since you directly edited build.prop, you've broken OTAs. You will have to flash system partition(s) from stock rom for your current version of android via fastboot. And if it doesn't bootloop, then flash stock boot from the same stock rom, update your phone. Then root. Flashing system partition won't erase your data.
If it bootloops, try wiping data. If that doesn't fix it then you'll have to flash via Miflash.
Idk if the customs roms will work with dirty flashing. Alternatively, you can download the latest stock rom from miui website and flash every partition except userdata.
There is a systemless way to enable camera2api without breaking OTA if you already have Magisk installed.
https://forum.xda-developers.com/mi-a2/how-to/how-to-enabling-cam2-gcam-android-t3868766
Run the setprop commands in step 3 of that post in terminal emulator and viola.
Related
Actually I have MIUI Global 7.3.10.0(MAAMIDD) with TWRP and Root, my question is there any problem updating via OTA? Will I lose the root or TWRP? Thanks!
When you update Global 7.3.10.0 to Global 7.5.1.0, you will lose root.
I don't know TWRP because I haven't installed TWRP in Mi5.
Maybe, If you already have instralled TWRP, the update will be not in success.
Do not update via OTA without stock recovery... You may go into bootloop
Sent from my MI 5 using Tapatalk
How can I update without losing root and twrp?
Razyss said:
How can I update without losing root and twrp?
Click to expand...
Click to collapse
Manually loading roms
leighaus said:
Manually loading roms
Click to expand...
Click to collapse
this is done using TWRP or the flash utility from Xiaomi?
Thanks a lot.
May be you can use zcx-twrp a modified twrp with ota survival. Just search on AFH.
I am currently running OOS Open Beta 17 on my OnePlus 3t (Android O) and I am unable to use Android Pay because it says my device is either rooted, running a custom ROM or has an unlocked bootloader. I really need to use Android Pay. Any help appreciated. Cheers!
TrollPirate said:
I am currently running OOS Open Beta 17 on my OnePlus 3t (Android O) and I am unable to use Android Pay because it says my device is either rooted, running a custom ROM or has an unlocked bootloader. I really need to use Android Pay. Any help appreciated. Cheers!
Click to expand...
Click to collapse
Well, maybe because your phone is either rooted or your bootloader is unlocked ?
If you are using SuperSU, I think you can't use Android Pay: you might need to use Magisk to bypass SafetyNet and use Android Pay.
As Magisk isn't compatible with Android Oreo for now, you can't use Android Pay while you are rooted.
casual_kikoo said:
Well, maybe because your phone is either rooted or your bootloader is unlocked ?
If you are using SuperSU, I think you can't use Android Pay: you might need to use Magisk to bypass SafetyNet and use Android Pay.
As Magisk isn't compatible with Android Oreo for now, you can't use Android Pay while you are rooted.
Click to expand...
Click to collapse
I haven't rooted my phone yet. But yes, my bootloader is unlocked. Can I get it working by locking my bootloader? And in case I do that, will future updates over OTA work?
TrollPirate said:
I haven't rooted my phone yet. But yes, my bootloader is unlocked. Can I get it working by locking my bootloader? And in case I do that, will future updates over OTA work?
Click to expand...
Click to collapse
I use Magisk on latest OOS, Android Pay does not give me this error.
TrollPirate said:
I haven't rooted my phone yet. But yes, my bootloader is unlocked. Can I get it working by locking my bootloader? And in case I do that, will future updates over OTA work?
Click to expand...
Click to collapse
You don't need an unlocked bootloader to run Open Beta. So there is no reason to think that OTA would be affected by locking it.
Be aware, I believe locking bootloader will wipe the phone.
Looks like Magisk is my only option. I just rooted my phone using superSU. Can anyone help me with a Magisk rooting guide (for OOS open beta Oreo)?
TrollPirate said:
Looks like Magisk is my only option. I just rooted my phone using superSU. Can anyone help me with a Magisk rooting guide (for OOS open beta Oreo)?
Click to expand...
Click to collapse
Here you go;
https://forum.xda-developers.com/oneplus-3t/how-to/magisk-oxygen-os-8-0-op3-3t-t3689901
I'm not exactly sure if the boot image comes from a verified source or if the changes are non malicious, but many users on that thread confirm that the Boot image is from a pre open beta package. Try this method at your own risk.
Cheers!
You can use SuperSu SR5 with suHide to pass safety net. SuHide - https://forum.xda-developers.com/apps/supersu/suhide-lite-t3653855/page64
SuHide doesn't work, checked yesterday. Even though it does hide root from Android Pay, it cannot hide bootloader's unlocked status.
thes3usa said:
Here you go;
https://forum.xda-developers.com/oneplus-3t/how-to/magisk-oxygen-os-8-0-op3-3t-t3689901
I'm not exactly sure if the boot image comes from a verified source or if the changes are non malicious, but many users on that thread confirm that the Boot image is from a pre open beta package. Try this method at your own risk.
Cheers!
Click to expand...
Click to collapse
Is there a risk associated with running on SElinux permissive mode 24/7, or is it not unusual for people to do so? Does a regular Magisk installation, on Android N for example, change your SElinux mode to permissive?
Thanks.
trAnwhiz said:
Is there a risk associated with running on SElinux permissive mode 24/7, or is it not unusual for people to do so? Does a regular Magisk installation, on Android N for example, change your SElinux mode to permissive?
Thanks.
Click to expand...
Click to collapse
There is a risk on running an system with Permissive SELinux, and it's considered a bug when it's Permissive in a ROM.
And nope, a normal installation via any custom recovery, or via ADB, of Magisk will not change your SELinux mode.
I’m sure this is very simple and I’m just not getting it…
got new moto x4 XT1900-1 from b&h
unlocked boot loader with motorola code
using windows fast boot was able to follow the "How to : Moto X4 Root & TWRP Recovery" bu Munchy on youtube to install twrp using payton 3.2.1-1
then installed Magish 17.1 which seems to be what actually rooted the phone as per confirmation by Root Check app shows 8.1.0
now I am getting constant ota notices of a security update OPWS28.3.2 and I download it and it fails which is apparently normal for a rooted phone.
Can I disable the root and update???…can this be done by turning off magic…or uninstalling it…or is this done by tarp?
I believe I should back up the recover image using twrp…then what?…find and boot to a stock image?
???
any info appreciated
tia
PS…I just tried the "topjohnwu Update OTA tutorial for v17" method in tips and tricks on here and it also said update failed???
jojojones said:
I’m sure this is very simple and I’m just not getting it…
got new moto x4 XT1900-1 from b&h
unlocked boot loader with motorola code
using windows fast boot was able to follow the "How to : Moto X4 Root & TWRP Recovery" bu Munchy on youtube to install twrp using payton 3.2.1-1
then installed Magish 17.1 which seems to be what actually rooted the phone as per confirmation by Root Check app shows 8.1.0
now I am getting constant ota notices of a security update OPWS28.3.2 and I download it and it fails which is apparently normal for a rooted phone.
Can I disable the root and update???…can this be done by turning off magic…or uninstalling it…or is this done by tarp?
I believe I should back up the recover image using twrp…then what?…find and boot to a stock image?
???
any info appreciated
tia
PS…I just tried the "topjohnwu Update OTA tutorial for v17" method in tips and tricks on here and it also said update failed???
Click to expand...
Click to collapse
What I did (might be an easier way but this was fast and easy):
1) Uninstall/remove Magisk.
2) Re-flash firmware over current system but don't do 'fastboot erase userdata'
3) Boot into your system and take all the OTA's
4) Re-install Magisk via TWRP
Took about 10 minutes. Longest part was waiting for OTA's to install.
Sorry...I'm new to all this. How do I reflash firmware?....use twrp app that is installed?
Magisk 17 supposedly has the ability to do this.
https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md
If you try this, please let us know. I have been waiting for an update to test this function.
jhedfors said:
Magisk 17 supposedly has the ability to do this.
https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md
If you try this, please let us know. I have been waiting for an update to test this function.
Click to expand...
Click to collapse
Did not work for me. Nothing has so far.
jojojones said:
Sorry...I'm new to all this. How do I reflash firmware?....use twrp app that is installed?
Click to expand...
Click to collapse
Use this guide:
https://forum.xda-developers.com/moto-x4/how-to/guide-how-to-flash-official-factory-t3808348
Remove command "fastboot erase userdata" from script flash-all.bat/flash-all.sh.
jhedfors said:
Magisk 17 supposedly has the ability to do this.
https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md
If you try this, please let us know. I have been waiting for an update to test this function.
Click to expand...
Click to collapse
I've tried this, and it didn't work. Ended up having to boot into TWRP, uninstall Magisk, and then reboot. Haven't bothered trying to update since I attempted that.
jhedfors said:
Magisk 17 supposedly has the ability to do this.
https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md
If you try this, please let us know. I have been waiting for an update to test this function.
Click to expand...
Click to collapse
I spent a little while trying to apply OTA with magisk. The only way I was able to do it was to flash the stock firmware like everyone says. I could only find 8.0, so I had to flash the firmware, install 3 OTA's, then reinstall twrp/magisk.
The only thing I didn't try was installing magisk without twrp, which I believe is supported but I'm not sure. I think that might be the secret sauce to fixing it, but I'm not sure, and I haven't wanted to reflash and go through the whole process again.
tjololo12 said:
I spent a little while trying to apply OTA with magisk. The only way I was able to do it was to flash the stock firmware like everyone says. I could only find 8.0, so I had to flash the firmware, install 3 OTA's, then reinstall twrp/magisk.
The only thing I didn't try was installing magisk without twrp, which I believe is supported but I'm not sure. I think that might be the secret sauce to fixing it, but I'm not sure, and I haven't wanted to reflash and go through the whole process again.
Click to expand...
Click to collapse
If you have the xt1900-1 retus you can flash the android one firmware which is 8.1 (currently on the Aug 2018 security patch).
ptn107 said:
If you have the xt1900-1 retus you can flash the android one firmware which is 8.1 (currently on the Aug 2018 security patch).
Click to expand...
Click to collapse
I have the android one variant. Do you know where I can get the firmware? There's a new security patch and I'd like to try installing it with stock bootloader + magisk (installed from a temporary twrp boot) to see if that works with the OTA. I'd like to get the method working since android 9 is coming at some point.
tjololo12 said:
I have the android one variant. Do you know where I can get the firmware? There's a new security patch and I'd like to try installing it with stock bootloader + magisk (installed from a temporary twrp boot) to see if that works with the OTA. I'd like to get the method working since android 9 is coming at some point.
Click to expand...
Click to collapse
September 2018 OTA for Android One (Oreo 8.1):
Blur_Version.28.251.17.payton_fi.google_fi.en.US
Click to "Download" and save as ZIP file.
Only way how to apply OTA update with magisk rooted X4 is flash ROM using fastboot (august 2018 ROM is on AFH), remove command 'fastboot erase userdata' from script 'flash-all.bat', install september OTA from adb sideload/SD card and root again.
Comby_sk said:
September 2018 OTA for Android One (Oreo 8.1):
Blur_Version.28.251.17.payton_fi.google_fi.en.US
Click to "Download" and save as ZIP file.
Only way how to apply OTA update with magisk rooted X4 is flash ROM using fastboot (august 2018 ROM is on AFH), remove command 'fastboot erase userdata' from script 'flash-all.bat', install september OTA from adb sideload/SD card and root again.
Click to expand...
Click to collapse
Thanks, the rom is exactly what I was looking for, I just wasn't sure which one to use. I'd hate to install the wrong rom and mess something up.
EDIT: I did get a chance to try it and you're correct, there is no way to install an OTA to this device without fully reflashing the stock rom, taking the OTA, then installing Magisk. I tried the following steps:
1. Flash ROM given from androidfilehost
2. Reboot, wait for OTA notification
3. Boot to bootloader
4. use fastboot to temporarily boot twrp
5. flash magisk 17.1 zipfile
6. reboot to system, verify that magisk/root is installed
7. Uninstall magisk using magisk manager "Restore Images" as given in the tips.md file
8. Take OTA
the OTA still failed, so even though TWRP wasn't installed and it was still the stock recovery, I was unable to install the OTA. Shame, it'd be nice if we could get this to work, but oh well.
Hi all - what is the best way to achieve root on a fresh XZ1C out of the box?
I'd like to retain all camera functionality and quality consistent with stock rom (which I've read is possible after the latest December Pie update). I'm ok with losing DRM keys and associated features like BRAVIA display engine
From browsing this forum, I would guess the following steps are appropriate:
1. From shipped rom base, use OTA to upgrade to latest stock Pie firmware
2. Unlock bootloader using sony website
3. Install Magisk 18.0
Can anyone share their experience of advise the best way to go about this? Thanks!
Why would you want to lose drm keys as it's possible to make a backup before unlocking?
https://forum.xda-developers.com/xp...devonly-exploits-temp-root-to-backup-t3795510
This.
Downgrade -> Backup ta -> unlock bootloader Flash latest via newflasher -> flash secd patch for pie -> flash twrp -> flash magisk -> profit
wyt18 said:
Hi all - what is the best way to achieve root on a fresh XZ1C out of the box?
I'd like to retain all camera functionality and quality consistent with stock rom (which I've read is possible after the latest December Pie update). I'm ok with losing DRM keys and associated features like BRAVIA display engine
From browsing this forum, I would guess the following steps are appropriate:
1. From shipped rom base, use OTA to upgrade to latest stock Pie firmware
2. Unlock bootloader using sony website
3. Install Magisk 18.0
Can anyone share their experience of advise the best way to go about this? Thanks!
Click to expand...
Click to collapse
It's a lot of work but it's possible. I just got my phone and now have Pie with Magisk 18.0 rooted.
Basically follow the directions here. Note the step " FIRST FLASH THE LATEST FIRMWARE THEN REBOOT- USE LATEST FLASHTOOL" use Flashtools to download the latest firmware (Pie) and flash it.
From my experience DRM keys are no longer an issue with Pie because I didn't apply any fix and the camera is working.
vofferz said:
Why would you want to lose drm keys as it's possible to make a backup before unlocking?
https://forum.xda-developers.com/xp...devonly-exploits-temp-root-to-backup-t3795510
Click to expand...
Click to collapse
does this method allow you to continue flashing latest stock firmware after restoring TA? I need the regular security patch updates to meet BYOD policies
wyt18 said:
does this method allow you to continue flashing latest stock firmware after restoring TA? I need the regular security patch updates to meet BYOD policies
Click to expand...
Click to collapse
Sure. I have the latest Customized CH (47.2.A.4.41) firmware on my phone.
You just have to flash them manually if you unlock bootloader (which is required for root).
Just never flash the .ta-files or persist*.sin to avoid losing keys or userdata*.sin when you update if you want to keep your data.
Also if you flash the secd patch for Pie (provided somewhere in the TA backup thread) you get an OTA update notification when an update is available for your fw customization. You won't be able to update automatically though but have to flash manually with newflasher.
LuminousOne said:
It's a lot of work but it's possible. I just got my phone and now have Pie with Magisk 18.0 rooted.
Basically follow the directions here. Note the step " FIRST FLASH THE LATEST FIRMWARE THEN REBOOT- USE LATEST FLASHTOOL" use Flashtools to download the latest firmware (Pie) and flash it.
From my experience DRM keys are no longer an issue with Pie because I didn't apply any fix and the camera is working.
Click to expand...
Click to collapse
thanks! since this is a kernel fix, does it prevent you from upgrading to the latest stock firmware via newflasher? seems more complicated than the solution above where you backup the TA / DRM keys ...
wyt18 said:
thanks! since this is a kernel fix, does it prevent you from upgrading to the latest stock firmware via newflasher? seems more complicated than the solution above where you backup the TA / DRM keys ...
Click to expand...
Click to collapse
Not sure if I'm understanding your question but I could not get newflasher to work. Flashtools got the job done fine. If you're concerned about future updates, any root method by Magisk should be ok since it's systemless.
LuminousOne said:
Not sure if I'm understanding your question but I could not get newflasher to work. Flashtools got the job done fine. If you're concerned about future updates, any root method by Magisk should be ok since it's systemless.
Click to expand...
Click to collapse
have you updated to the latest Pie firmwares as they were released? one potential problem with the kernel DRMfix method is that the DRMfix patch comes with the kernel, which gets updated with each rom and security patch release. So new rom updates could potentially "erase" the DRMfix. Flashing a new rom over the DRMfix could keep root, but remove the effects of DRMfix (and impact camera functionality)
the other method above (backing up and restoring TA) seems to be more future proof to allow for updates as new roms get released
vofferz said:
Sure. I have the latest Customized CH (47.2.A.4.41) firmware on my phone.
You just have to flash them manually if you unlock bootloader (which is required for root).
Just never flash the .ta-files or persist*.sin to avoid losing keys or userdata*.sin when you update if you want to keep your data.
Also if you flash the secd patch for Pie (provided somewhere in the TA backup thread) you get an OTA update notification when an update is available for your fw customization. You won't be able to update automatically though but have to flash manually with newflasher.
Click to expand...
Click to collapse
how do you flash manually to retain the root? i excluded *.ta and persis*.sin on latest firmware and flash it, but root and twrp are gone
is there any file that should be excluded to retain the root?
autobanned said:
how do you flash manually to retain the root? i excluded *.ta and persis*.sin on latest firmware and flash it, but root and twrp are gone
is there any file that should be excluded to retain the root?
Click to expand...
Click to collapse
Follow the instructions on janjan's kernel thread
autobanned said:
how do you flash manually to retain the root? i excluded *.ta and persis*.sin on latest firmware and flash it, but root and twrp are gone
is there any file that should be excluded to retain the root?
Click to expand...
Click to collapse
You can just flash magisk again to gain root access. Not a big deal.
Or try j4nn's instructions with modified kernel: https://forum.xda-developers.com/xp...oted-kernel-hiding-bootloader-unlock-t3898711
Hey I have p20 pro EU version 6/128
Today I got a new update about Google security.
I want every update run on my phone
But I rooted my device.
I wanted first to ask guys , I tried to update but was unsuccessful. I do not have twrp because of the method I used to root p20 pro didn't allow me having magisk and twrp recovery.
So now if I want to update have to do it manually ?
2 questions
1) which program do I use ?
2) where I can find the firmware Official WITHOUT BEEING CHANGED ANYTHING inside from someone third.
Thanks John
You need to flash the stock bootloader. If you are running Pie and Magisk, you have a modified bootloader. I don't know where to download the stock one. Could probably rip it from a stock Pie firmware.
Me to have twrp on my p20 pro and i cannot update my phone.. Have new update but when I try system update after download, its entering to recovery mode for install the firmware but it cannot coz working twrp and unsuccessful installation.
Me to look for stock recovery for clt-l29 pie
purple patch said:
You need to flash the stock bootloader. If you are running Pie and Magisk, you have a modified bootloader. I don't know where to download the stock one. Could probably rip it from a stock Pie firmware.
Click to expand...
Click to collapse
stock bootloader? where i find this?
StonebridgeGr said:
stock bootloader? where i find this?
Click to expand...
Click to collapse
I mean stock recovery ramdisk, or whatever they call it on Huawei. Will need the 9 version asfaik.
https://forum.xda-developers.com/hu...awei-p20-pro-charlotte-l29c432b131-8-t3809964
danifilth4king said:
https://forum.xda-developers.com/hu...awei-p20-pro-charlotte-l29c432b131-8-t3809964
Click to expand...
Click to collapse
i am not trying to find guide to upgrade from 8.0 to 9.0.
I am already on 9,0 but i got a new update for google security and i want to update
which is the guide for this or is the same?
StonebridgeGr said:
i am not trying to find guide to upgrade from 8.0 to 9.0.
I am already on 9,0 but i got a new update for google security and i want to update
which is the guide for this or is the same?
Click to expand...
Click to collapse
https://forum.xda-developers.com/hu...charlotte-l29c432b131-8-t3809964/post79034970
The apk from this post will allow you to download the latest firmware for your model from firmware finder and flash it without needing TWRP or having to flash stock recovery. You will have to re-root afterwards though
danifilth4king said:
https://forum.xda-developers.com/hu...charlotte-l29c432b131-8-t3809964/post79034970
The apk from this post will allow you to download the latest firmware for your model from firmware finder and flash it without needing TWRP or having to flash stock recovery. You will have to re-root afterwards though
Click to expand...
Click to collapse
thanks but the link of the app is dead
is the same app as is one the google play?
danifilth4king said:
https://forum.xda-developers.com/hu...charlotte-l29c432b131-8-t3809964/post79034970
The apk from this post will allow you to download the latest firmware for your model from firmware finder and flash it without needing TWRP or having to flash stock recovery. You will have to re-root afterwards though
Click to expand...
Click to collapse
I got the app on pc and android, tried to find the last firmware 9.0.0.203 on clt-l29 c432e5r1p9 but there is no.
StonebridgeGr said:
I got the app on pc and android, tried to find the last firmware 9.0.0.203 on clt-l29 c432e5r1p9 but there is no.
Click to expand...
Click to collapse
Download the current version you are using. Extract recovery_ramdisk.img and flash. Reboot and take OTA update. You will lose root, as I said you have a modified recovery and need stock to take OTA.
Edit - Once your done, patch the bootloader from Magisk and flash to get root again.
purple patch said:
Download the current version you are using. Extract recovery_ramdisk.img and flash. Reboot and take OTA update. You will lose root, as I said you have a modified recovery and need stock to take OTA.
Edit - Once your done, patch the bootloader from Magisk and flash to get root again.
Click to expand...
Click to collapse
i just flash recovery ramdisk hmm i think it will brick my device.
how do i flash it?