Systemless Nandroid Backups? - Xiaomi Mi A1 Questions & Answers

Hello,
I've been scouring the Net far and wide, I'm either blind, or it's not there... LOL
With Magisk and having Systemless Root, I'm trying to figure out if a recovery app like TWRP exists so you can make systemless backups and recovery that doesn't block OTA.
FlashFire doesn't appear to work for the Mi A1, and all I can come up with for the moment is booting into TWRP when needing to make a backup or recovery, by not installing TWRP.
Booting into TWRP isn't difficult to accomplish, it would just be nice to have an app installed on the phone without this extra step needed.
Any thoughts/ideas/suggestions?
By the way I'm running Nougat, I'll test and see if FlashFire will work better on Oreo...
Thanks

Related

Rooting Moto G4 Plus

I just got my Moto G4 Plus and want to root it. Does somebody have a good guide for rooting it?
I found this guide on youtube, can I just follow this?: https://www.youtube.com/watch?v=g3bhXe3msxU&t=3s
What stock OS are you running on your device, Marshmallow or Nougat?
echo92 said:
What stock OS are you running on your device, Marshmallow or Nougat?
Click to expand...
Click to collapse
I just updated to Android 6.0.1 Marshmallow
If you're on Marshmallow (6.0.1), then the guide you linked should work, you may wish to keep the stock kernel (and not flash ElementalX). Also, instead of phh superuser, you could choose to flash SuperSU or magisk.
Here's a guide for rooting on Marshmallow 6.0.1 as well https://forum.xda-developers.com/moto-g4-plus/how-to/root-systemless-rooting-supersu-2-74-2-t3405772 You may wish to use a newer build of SuperSU than mentioned in the guide - the latest build currently is 2.82 SR1.
echo92 said:
If you're on Marshmallow (6.0.1), then the guide you linked should work, you may wish to keep the stock kernel (and not flash ElementalX). Also, instead of phh superuser, you could choose to flash SuperSU or magisk.
Here's a guide for rooting on Marshmallow 6.0.1 as well https://forum.xda-developers.com/moto-g4-plus/how-to/root-systemless-rooting-supersu-2-74-2-t3405772 You may wish to use a newer build of SuperSU than mentioned in the guide - the latest build currently is 2.82 SR1.
Click to expand...
Click to collapse
I found a video that showed how to unlock bootloader, and uses SuperSU when rooting. Can I use this guide insted, or is it to old you think?: https://www.youtube.com/watch?v=dK2uacpjGwc&t=119s
Thank you so much for all the help btw
skismas said:
I found a video that showed how to unlock bootloader, and uses SuperSU when rooting. Can I use this guide insted, or is it to old you think?: https://www.youtube.com/watch?v=dK2uacpjGwc&t=119s
Thank you so much for all the help btw
Click to expand...
Click to collapse
Looking through that video, I think it should work for 6.0.1 - as an aside for anyone reading this, the root procedure for Nougat is different. Though the resources linked in the video may work (I have not tested them), you may, as I mentioned above, wish to flash newer versions of TWRP and SuperSU than that linked in the video:
TWRP - (official): https://dl.twrp.me/athene/
I personally use shreps' TWRP: https://forum.xda-developers.com/mo...covery-twrp-3-0-2-r3-moto-g4-g4-plus-t3494337
SuperSU v2.82: https://forum.xda-developers.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703 Ideally, you'll want to use v2.79 SR3 or newer as they're systemless root.
EDIT: this guide linked to in the video has a nice description of some of the steps you'll need: https://forum.xda-developers.com/moto-g4-plus/how-to/guide-newbie-resource-thread-t3386584
One thing I'd add to those guides is before you flash SuperSU, make a backup of all of the partitions in TWRP (on the TWRP main menu, you'll see 'Backup'). If SuperSU fails to root or causes instabilty, you'll have a backup to fall back to.
Additionally, when flashing TWRP, you'll see the 'Image not signed or corrupted' warning, that's normal. As long as [OKAY] comes up in fastboot after flashing and you reboot to recovery afterwards (so TWRP is set as your recovery), then TWRP should stick.
You may also receive OTA messages - do not accept these whilst rooted and with TWRP. if you wish to turn them off, have a look here: https://forum.xda-developers.com/showpost.php?p=72373828&postcount=12
Don't FLASH TWRP, just BOOT it up, do whatever you need to do and... keep your stock bootloader. The TWRP is useful mostly for CM/Lineage ROM's, for stock it's just a headache waiting to happen.
echo92 said:
Looking through that video, I think it should work for 6.0.1 - as an aside for anyone reading this, the root procedure for Nougat is different. Though the resources linked in the video may work (I have not tested them), you may, as I mentioned above, wish to flash newer versions of TWRP and SuperSU than that linked in the video:
TWRP - (official): https://dl.twrp.me/athene/
I personally use shreps' TWRP: https://forum.xda-developers.com/mo...covery-twrp-3-0-2-r3-moto-g4-g4-plus-t3494337
SuperSU v2.82: https://forum.xda-developers.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703 Ideally, you'll want to use v2.79 SR3 or newer as they're systemless root.
EDIT: this guide linked to in the video has a nice description of some of the steps you'll need: https://forum.xda-developers.com/moto-g4-plus/how-to/guide-newbie-resource-thread-t3386584
One thing I'd add to those guides is before you flash SuperSU, make a backup of all of the partitions in TWRP (on the TWRP main menu, you'll see 'Backup'). If SuperSU fails to root or causes instabilty, you'll have a backup to fall back to.
Additionally, when flashing TWRP, you'll see the 'Image not signed or corrupted' warning, that's normal. As long as [OKAY] comes up in fastboot after flashing and you reboot to recovery afterwards (so TWRP is set as your recovery), then TWRP should stick.
You may also receive OTA messages - do not accept these whilst rooted and with TWRP. if you wish to turn them off, have a look here: https://forum.xda-developers.com/showpost.php?p=72373828&postcount=12
Click to expand...
Click to collapse
I managed to root my phone without bricking it! I think......
SuperSU was not on the phone when I rebooted the phone like in the video. I had to download it through play store. But since it says its rooted on root checker, and I could grant it permission, im pretty sure I done it right.
Thanks for the help I really appreciate it

I am rooted, but not happy with my current state

Hey everyone,
I`m running LineageOS on my phone and am rooted using SuperSU which seems to work, according to Rootchecker and the feww apps I use, which make use of root privileges.
But I`m not entirely happy with my current situation, since it seems that more and more apps don`t tend to work with my rooted phone. So what are my ways out of this?
Can I easily unroot my phone, while keeping LineageOS?
Is there a working alternative to SuperSU, which would enable me to stay rooted on LineageOS without reflashing the OS and use Banking-Apps?
I`ve heard of Magisk, but I am unsure of how to switch over from my current state and I`am not sure whether or not it would solve my problems
Thanks for any help in advance!!
Magisk
You just have to go to SuperSU, then Full Unroot, then download Magisk 13.3 and flash it from TWRP. After that you should have Magisk Manager, if for some weird reason you don't, install it via apk
Then you just go to the settings, tick MagiskHide, then go back and open the side panel, MagiskHide - select the apps that you want Magisk to hide itself from
So I tried to do what you said.
I did the full unroot in the SuperSu App,
My phone rebooted
I shut it down again and booted into recovery
Tried flashing Magisk
But it failed, apparently due to my Boot image being patched by another program and told me to go with stock image
What do I do now? And will I lose any data by doing so? Thank you so much for any help!
Weird, but you can simply dirty flash LineageOS (the same one that you have now, or an update, doesn't matter) and it should let you install Magisk.
I did what you said and installed a delta update using LineageOS Downloader. Had to manually flash it in TWRP since I had no root permissions anymore. But I was able to install Magisk like a charm! Now I have to questions:
1. How do I update Magisk? Using the app?
2. Do I have to flash it again everytime I'm updating LOS?
Thanks for the great help so far!
And what exactly are those moduls? Should I be messing with them?
If updates come they will appear on the status bar and you can download them, and they'll install with the phone on. after that you have to (not quick) reboot your phone.
and about the modules, seriously? what do you think??

Confused New User

My device is due soon and been going through the forum preparing myself. I am a bit confused though and would appreciate some help.
1- TWRP
From my other devices N5, 5T etc flash TWRP and you're on your way.
With this device it's Fastboot boot into regular TWRP wipe, then into deadman's TWRP to install ROM. Other instructions mention going into partition A then to B. Is permanent TWRP install not suitable for this device?
2-Root & Magsik
It seems that everything on this device is dependent on using Magsik for one thing or the other. I prefer to use SU as it always works with my setup. I'm not interested in safetynet. Do i really need to use Magsik?
After ROM install I use Xposed, SU, Xprivacy Lua, Titanium pro, Tasker.
Thanks.
bluegrass55 said:
My device is due soon and been going through the forum preparing myself. I am a bit confused though and would appreciate some help.
1- TWRP
From my other devices N5, 5T etc flash TWRP and you're on your way.
With this device it's Fastboot boot into regular TWRP wipe, then into deadman's TWRP to install ROM. Other instructions mention going into partition A then to B. Is permanent TWRP install not suitable for this device?
2-Root & Magsik
It seems that everything on this device is dependent on using Magsik for one thing or the other. I prefer to use SU as it always works with my setup. I'm not interested in safetynet. Do i really need to use Magsik?
After ROM install I use Xposed, SU, Xprivacy Lua, Titanium pro, Tasker.
Thanks.
Click to expand...
Click to collapse
As much as I'd like to help you, I don't get what you mean. Care you elaborate?
Sent from my Mi A1
I want to flash a permanent TWRP & flash ROMs etc like on a regular device.
Can this be done on this device?
Of course
Mod edit by @gregbradley Rule 2
Casual racism was deleted
I found this for you, hope it provides some info, also try forcing Google to give you results with kws like "SuperSU" and "su" by placing them inside quotes "" and by adding a + in front of a keyword.
https://forum.xda-developers.com/mi-a1/how-to/cf-auto-root-september-update-t3681024
1. You can Install TWRP permanently
As there is no separate recovery partition
fastboot flash recovery recoveryname.img command will fail
So you need to temporarily boot your phone to TWRP first n then make it permanent (Optional)
2. You can use SuperSu, technically there shouldn't be any problem as bothe Magisk and SuperSu patches Boot Image (haven't tested though)
Thank you for your replies.
Managed to install TWRP and decided to stick with stock for now, but install of Xposed fails. Now looking to solve that.
Bought this device because it was cheap. If Xposed install fails will return it.
I have made a guide to simplify the installation procedure: https://forum.xda-developers.com/mi-a1/how-to/lineageos-gapps-magisk-twrp-dolbyatmos-t3762939/
If you want to stay on stock, you can skip the LineageOS related stuff.
Thread cleaned
Lets be honest, this is a development site, lets keep the racism out of here.
Greg
bluegrass55 said:
Thank you for your replies.
Managed to install TWRP and decided to stick with stock for now, but install of Xposed fails. Now looking to solve that.
Bought this device because it was cheap. If Xposed install fails will return it.
Click to expand...
Click to collapse
I know you don't want to install Magisk, but you can install Xposed with Magisk without any issues

How do I get a stock backup after flashing magisk? (for ota)

So I've read a bunch of stuff and everything I've read tells me to do the same thing that I've already done. Also those thread seemed pretty old so....
Anyway I need a stock backup so I can perform OTA update but I don't have one. this is what I did
I used msmtool to start over
pushed through setup
unlocked bootloader switch in developer settings
unlocked bootloader in fastboot
updated android
fastboot boot twrp.img
wiped everything
flashed magisk.zip
(I didn't install TWRP because I am under the impression I can't pass safteynet with a custom recovery am I wrong about this?)
installed magisk.apk
So what step am I missing to save the stock backup so I can uninstall magisk for OTAs?
I had a Pixel for 3 years that had a broken fastboot and so I couldn't unlock the bootloader and never got to learn about the new AB partitioning until now. so I'm a little behind
Thanks
GbizzleMcGrizzle said:
(I didn't install TWRP because I am under the impression I can't pass safteynet with a custom recovery am I wrong about this?)
Click to expand...
Click to collapse
Unlocking the bootloader can make you fail safety net, much less Magisk if its not set up right. The recovery wont matter.
My guide here is for installing Lineage, however Step 5 will work for OOS too and make you pass safety net. So feel free to install TWRP.
I recommend Funk Wizards Guide on installing TWRP. Also note the section on EFS backups.
Look into TWRP backups, I dont use them, but I know its not straight forward unfortunately.
So when I'm flashing the magisk file in TWRP, does it save a copy of the image it's modifying? And where does it save that image? Also where should i put that image so I can uninstall-> Restore Images?

Backup without TWRP

I'm currently rooted with Magisk and before I install modules. I'd like to have a backup in case I can't boot back after installing certain Modules.
In the past, I was able to with TWRP but as we can't install TWRP on Oneplus 8 Pro yet, does anyone know of an alternative?
I saw in the other post, we could still flash to TWRP, would that suffice?

Categories

Resources