So I was trying to replace SuperSU with MagiskSU, and one of the step necessary (I think) is to do full unroot and flash magisk afterwards
However after I did full unroot, the device no longer boot to the system. It now stuck at TWRP
Anything I can do to fix this without needs to lose all the data? Thanks
Mod, please move this to the proper Q&A forum. Thanks
Related
Hi guys, the last time I rooted my 5X was a very long time ago when I did a "traditional" root by using a modified boot.img. I checked out Heisenberg's guide to rooting thread and I no longer see references to systemless root or modified boot.img files. Is the current rooting method no longer requiring these things? Is the only root now systemless? I would like to update to the most recent stock rom and then re-root. Thanks.
When you install SuperSU (through TWRP) it will detect your nexus 5x needs systemless root and on the fly it will patch your boot.img (and backup your original boot.img to /data).
It will also install /data/su.img which is a mountable image containing SuperSUs main files.
If you do a factory reset, it will wipe out /data (and thus su.img) so you'll lose root, but you will still have the patched boot.img (meaning dm-verity verifying of /system and /vendor is disabled, /data is not forceencrypt, and some se contexts were adjusted)
To reinstall root in the case of factory reset, just reinstall SuperSU-*.zip. It will complain that it can't restore your boot.img (because it was also wiped out by the factory reset) but by that time everything has been installed to get root back so it'll just work.
Also, one other thing, you need to actually install twrp.img into the recovery partition (fastboot flash recovery twrp.img) rather than just taking the shortcut of doing fastboot boot twrp.img or twrp won't be able to decrypt your /data partition.
Thanks @sfhub. So sounds like the answer is yes SuperSU will only install the systemless root if you're on the 5x.
Is there anything else I would need to do in order to finalize the "systemless" portion of the root?
I.e. delete the /data/SU.img or something?
also - is there a way to know if my root is "systemless" or not? does the systemless route not have a supersu application installed?
Since I have the traditional root, ie using an old modified boot.img, should I just wipe my device and flash the newest firmware from adb? I'd like to keep everything in tact a go stock rooted on newest software but I'm worried I will brick my phone going from the traditional root to systemless method. Thoughts?
SeriesOfTubes said:
Since I have the traditional root, ie using an old modified boot.img, should I just wipe my device and flash the newest firmware from adb? I'd like to keep everything in tact a go stock rooted on newest software but I'm worried I will brick my phone going from the traditional root to systemless method. Thoughts?
Click to expand...
Click to collapse
You probably have systemless root already. The modified boot image was required until CF make it so SuperSU patched the boot on install. Anyway, thats kind of irrelevant now that you plan on updating.
The quickest way to update is to to flash the latest factory images. This is done in fastboot mode and with the tool called, you guessed it, fastboot. ADB and fastboot are not the same thing. ADB only works when booted up or in recovery. Fastboot only works in... fastboot mode. :good:
You can update without losing any of your installed application or data. To do this you need to edit one line in the flash-all.bat file (Windows) or the flash-all.sh file (Linux/Mac). This flash-all file is located in the tarball that contains the factory images. You simply need to remove the -w near the end of this file. So from...
this:
Code:
fastboot -w update image-bullhead-xxx##x.zip
to this:
Code:
fastboot update image-bullhead-xxx##x.zip
That way userdata is not wiped when you run the flash-all file.
To re-root I suggest you follow the guide HERE. Note that flashing the factory images will wipeout either of the root styles you may have at the moment.
EDIT: Obviously you need to reflash TWRP to flash SuperSU or any other flashable zip. If you aren't interested in Android Pay, you dont need to follow the instructions in the link i posted above. Simply flash the latest SuperSU.
EDIT 1: If you want to decript, might as well do it straight away. No sense in setting everything up that then wiping it out. Remember this is done by formatting data. You can do it just after flashing TWRP from within TWRP. Note wiping data and formatting data are two separate things.
Good luck.
Thanks for all the help, you guys are awesome.
Hi,
I've just bought a Nexus 5X and wanted to root it with systemless method for being able to get OTA in futur.
I've booted to TWRP to flash SuperSU zip but I've made the mistake to use the slider when TWRP ask if I want to keep the system as read only.
Is there an easy way to revert back without the reflashing the rom ?
And is there a way to boot to TWRP from android (if i keep the. .img on my phone) ?
Thank you
Sebacestmoi said:
Hi,
I've just bought a Nexus 5X and wanted to root it with systemless method for being able to get OTA in futur.
I've booted to TWRP to flash SuperSU zip but I've made the mistake to use the slider when TWRP ask if I want to keep the system as read only.
Is there an easy way to revert back without the reflashing the rom ?
And is there a way to boot to TWRP from android (if i keep the. .img on my phone) ?
Thank you
Click to expand...
Click to collapse
If you had TWRP touch your /system in R/W mode even if it made no changes, the system partition is tainted (there is meta-data that changed)
The only practical way to get back to untainted /system is to flash the stock system.img. The flashing is simple, but it might take a little time to download the factory image and extract the system.img.
I usually keep twrp in the recovery partition, probably chainfire has something to boot twrp directly. I do know that if you boot twrp over usb there is a problem where it doesn't accept your pin/pattern/pass to decrypt the user partition. I don't know if it suffers the same problem through other booting methods.
BTW even with systemless root, you cannot flash the differential OTA you receive over the air directly. You need to restore the stock boot.img before flashing the OTA.
The FULL OTA you get from the factory image website, on the other hand, can flash over anything, regardless of whether you have boot, system, or vendor modified.
Thank you for the clear answer
Sebacestmoi said:
Hi,
I've just bought a Nexus 5X and wanted to root it with systemless method for being able to get OTA in futur.
I've booted to TWRP to flash SuperSU zip but I've made the mistake to use the slider when TWRP ask if I want to keep the system as read only.
Is there an easy way to revert back without the reflashing the rom ?
And is there a way to boot to TWRP from android (if i keep the. .img on my phone) ?
Thank you
Click to expand...
Click to collapse
The command
Code:
[I]fastboot boot <img file name>[/I]
will boot twrp from your computer with out having to install it.
My oneplus 3 was rooted (oxygen 3.2.5 maybe) but I installed the update 3.2.6 today from phone by going into settings. When the phone got updated my root does not work anymore. Please help.
I forgot how I rooted my phone before but it was still on android 6 when I rooted.
When I reboot I still get the black screen saying the device can't be trusted because xxxxxxxxxx Is unlocked, dont remember what.
Usb debugging is on as well as oem unlocked ( these options are still showing unlocked when i went to settings but don't know if they are ACTUALLY unlocked.
Xposed luck patcher, etc not working
Root checker says root not installed properly
Used twrp before.
Also is there any way that I can re-root my phone again without data loss?
Its my first post ever in any form so dont know about posting much.
You can mail me too at [email protected].
Thanks
Try flashing Super su manually from Recovery
Flash latest SuperSU (I think it is 2.78) in twrp. Flash xposed module in twrp too
If you did the official update from Settings > System Updates, then you are most likely back to stock recovery as well. You're going to have to re flash twrp before you can flash root and xposed. You will not lose data by performing any of these steps as your bootloader is still unlocked.
http://forum.xda-developers.com/oneplus-3/development/toolkit-oneplus-3-toolkit-unlock-t3398799
Download twrp
Boot to fastboot
fastboot boot sometwrp.img
Flash supersu from temporary twrp
Hw4ng3r said:
If you did the official update from Settings > System Updates, then you are most likely back to stock recovery as well. You're going to have to re flash twrp before you can flash root and xposed. You will not lose data by performing any of these steps as your bootloader is still unlocked.
Click to expand...
Click to collapse
If you had root and custom recovery (TWRP) then you couldn't have updated by this method as it wouldn't have worked. You need to reflash SuperSU in TWRP as others have stated.
Much simple: from recovery (hope you're having TWRP installed) flash latest SuperSU and Xposed zip file.
Then Wipe Cache/Dalvik, then reboot in System.
If you won't to lose root, you should consider a custom rom like FreedomOS, that provides SuperSU binary by itself (even Xposed, if I'm not wrong).
Hey all,
I'm trying to better understand what I'm doing with my phone here. Currently I have my OP3 rooted (aka unlocked bootloader, correct?) and on 8.0.0.
1. If I wanted to keep it rooted and reinstall the OS, is this as simple as downloading whichever ROM I want, copying it to my phone's internal storage, and flashing it in recovery using TWRP?
2. Is stock recovery (recovery_OP3.img on the oneplus.net website) the same part of the software as TWRP? As in the stock recovery is locked bootloader and TWRP is unlocked bootloader?
3. I've been searching for the most recent root guide, can I get a recommendation? I've read that SuperSU is not the thing to use any longer, but rather Magisk. Correct?
4. What is boot.img?
Thanks all
Shoruk3n said:
Hey all,
I'm trying to better understand what I'm doing with my phone here. Currently I have my OP3 rooted (aka unlocked bootloader, correct?) and on 8.0.0.
1. If I wanted to keep it rooted and reinstall the OS, is this as simple as downloading whichever ROM I want, copying it to my phone's internal storage, and flashing it in recovery using TWRP?
2. Is stock recovery (recovery_OP3.img on the oneplus.net website) the same part of the software as TWRP? As in the stock recovery is locked bootloader and TWRP is unlocked bootloader?
3. I've been searching for the most recent root guide, can I get a recommendation? I've read that SuperSU is not the thing to use any longer, but rather Magisk. Correct?
4. What is boot.img?
Thanks all
Click to expand...
Click to collapse
1. If you switch roms, always do a clean install (wipe all partitions) . If you want to get rid off all the mods wipe system and flash the same rom + gapps + root. You won't loose data since you are only modifying the system partition.
2. Stock recovery by Oneplus is as if says stock, you littery can't do anything with it apart from upgrading your OOS, wiping cache partitions and doing a factory reset. I do recommend the TWRP provided by Bluspark since that seems to be the only one I tried without any issues whatsoever.
3. Magisk is the new root method in my opinion, it supports Magisk modules which simply are mods that can be installed and removed with a single click (reboot required tho). You can compare it to xposed but very limited when compared.
4. Boot.img is your kernel, never flash standalone img files apart from TWRP since the kernel modifies more the only the boot img. Always flash the full zip.
Greetings. I received the OTA update (which I did not install!) on my OnePlus 5T today. I'm on OxygenOS 5.0.4 with magisk installed, phone is rooted, bootloader unlocked, stock recovery (no TWRP).
What's the right path to upgrade to 5.1.0?
I'm experienced with the command line and have no problems with it.
Based on my ideas, I think the path should be:
- Download full Oxygen OS 5.1.0 Full Zip
- Start TWRP using adb
Code:
fastboot boot
(which TWRP version?)
- Wipe dalvik and cache
- Flash the downloaded file
- Wipe dalvik and cache
- Flash magisk
That's it. Am I missing something? Do I need to reinstall magisk as specified as last step? Which TWRP version should I use (from the official website?)?
Thanks for your help :good:
Please go through the dedicated update thread that ive made for the update
https://forum.xda-developers.com/oneplus-5t/how-to/official-oxygenos-4-7-2-7-1-1-ota-t3709265
The thread has all the instructions and files needed to update. As far as twrp is concerned i recommend latest codeworkx or or bluspark recovery. The links are available on the thread.
Feel free to post on the thread if you have any further doubts.
Thanks @Funk Wizard , I read that thread (I linked it in my post) but it mentions "For Stock Non Rooted Users with Stock Recovery" and "For Rooted Users with TWRP Recovery" while in my case I'm rooted with STOCK recovery, which doesn't fit any of those 2 sentences. Which one should I follow?
As you are rooted you can flash the full zip from stock recovery that would remove root or you need follow and flash via twrp. If rooted stock recovery is no good TBH and i recommend staying on TWRP.
You can flash twrp from fastboot and then follow the instructions on the flashing post.
In case you dont need root anymore you can just flash the full zip from stock recovery. It will remove root and you will stay on stock recovery. In both the cases, use the full zip to flash via twrp or stock recovery.
No good? Please be more specific, why it's no good? From my understanding keeping stock recovery with magisk installed and bootloader unlocked allows me to pass all SafetyNet checks, which is very helpful if you don't want to deal with apps complaining that you are rooted. I can easily boot to TWRP as long as I can plug my phone into my computer by just using the fastboot command. The only downside I could see is if I brick my phone and have usb debugging disabled, I can't fastboot from adb.
Flashing TWRP would make me fail SafetyNet checks, which I'm not interested into.
After I flash the full zip, do I also need to flash the OTA update?
Thanks by the way, basically the only real "special" thing I need to do is install Magisk again after flashing.
Flashing twrp doesn't break safety net. So it's upto you if you want to stay on stock recovery with no additional benefits or on twrp.
Also, if have full time zip then you don't need to flash ota zip again.
That's good! I'll definitely flash twrp in that case.
@sshivampp Sorry to resurrect this thread, but looks like it's important. On TWRP website itself it's stated that installing TWRP would break dm-verity. What's the consequence of this? https://twrp.me/oneplus/oneplus5t.html