Rooting 5X same as 5 ? Even after encryption? - Nexus 5X Q&A, Help & Troubleshooting

TWRP is released for 5X! So to root, do we need to follow the same steps like Flash TWRP and flash SuperSU?

1. Unlock bootloader
2. Flash twrp
3. Boot into twrp and flash supersu
4. Profit!

You need to flash the custom boot image/kernel for root to work in Enforcing mode for SELinux on Marshmallow.

But even if SELinux is not enforcing, it wont affect most of the apps right? What will be affected ? @lysm bre

TheDj408 said:
But even if SELinux is not enforcing, it wont affect most of the apps right? What will be affected ? @lysm bre
Click to expand...
Click to collapse
I mean if you try to flash SuperSU without flashing the custom boot image/kernel beforehand, you WILL end up in a bootloop.

Yes got it! Thanks This is a good article- http://www.xda-developers.com/a-look-at-marshmallow-root-verity-complications/
So are there any modified boot images available yet? @lysm bre

TheDj408 said:
Yes got it! Thanks This is a good article- http://www.xda-developers.com/a-look-at-marshmallow-root-verity-complications/
So are there any modified boot images available yet? @lysm bre
Click to expand...
Click to collapse
What build number are you on? There's only 1 modified boot image so far.

lysm bre said:
What build number are you on? There's only 1 modified boot image so far.
Click to expand...
Click to collapse
MDB08I !

TheDj408 said:
MDB08I !
Click to expand...
Click to collapse
Ok. I claim no responsibility if this bricks your phone! I'm about to test this myself. The steps are:
1) Unlock bootloader (don't forget to enable unlocking first via developer options from the booted device)
2) Flash modified boot image
3) Flash TWRP
4) Format data in TWRP (Wipe -> Format Data)
5) Flash SuperSU
EDIT: I got stuck in a bootloop after doing this. Had to flash system images. Trying again.

You have the build no MDB08I ? @lysm bre

TheDj408 said:
You have the build no MDB08I ? @lysm bre
Click to expand...
Click to collapse
Yes, I'm on MDB08I. I figured it out. My phone's unencrypted and successfully rooted now. The way I did it was unlock bootloader, reflash system image (since I got stuck in a bootloop before), skip everything in setup, reboot into bootloader, flash the modified boot image, reboot into system to make sure it's booting properly, then reboot into bootloader, flash twrp, boot into twrp, allow modifications, wipe -> format data, reboot into system without rooting, and skip through setup again. At this point, if you check the encryption status of your phone (Settings -> Security -> Encrypt phone), it won't be encrypted anymore as it'll give you the option of encrypting it, which means it currently isn't encrypted. Anyways, transfer SuperSU onto your phone, reboot into bootloader, boot into TWRP, and flash SuperSU. After this, you should be successfully rooted with encryption disabled.

Okay thanks! So now I'll flash the modified boot image, then boot the phone then flash twrp! Lets see if that works!

Rooted succesfully ! Made a video too! Editing now! Will upload in few hours @lysm bre

how does the phone perform being unencrypted

Awesome development. Waiting for details/video.

lysm bre said:
Yes, I'm on MDB08I. I figured it out. My phone's unencrypted and successfully rooted now. The way I did it was unlock bootloader, reflash system image (since I got stuck in a bootloop before), skip everything in setup, reboot into bootloader, flash the modified boot image, reboot into system to make sure it's booting properly, then reboot into bootloader, flash twrp, boot into twrp, allow modifications, wipe -> format data, reboot into system without rooting, and skip through setup again. At this point, if you check the encryption status of your phone (Settings -> Security -> Encrypt phone), it won't be encrypted anymore as it'll give you the option of encrypting it, which means it currently isn't encrypted. Anyways, transfer SuperSU onto your phone, reboot into bootloader, boot into TWRP, and flash SuperSU. After this, you should be successfully rooted with encryption disabled.
Click to expand...
Click to collapse
Notice any difference without encryption? Are there still occasional issues with lots of scrolling?

bblzd said:
Notice any difference without encryption? Are there still occasional issues with lots of scrolling?
Click to expand...
Click to collapse
Seems plenty smooth to me. I never noticed any lagginess even before I rooted and disabled encryption, so I don't think I can provide an accurate comparison.

No difference! Smooth as before! Benchmarks are same too! @bblzd @lysm bre

TheDj408 said:
No difference! Smooth as before! Benchmarks are same too! @bblzd @lysm bre
Click to expand...
Click to collapse
Video almost done? Just want to make sure I'm doing it right

Up on the channel just 5 mins back- https://youtu.be/mUq1xdJ-7-E here you go @Pikezer1337 !

Related

March 2016 Updates Bug

My recent apps button is no longer working. And when I go to Developer Options, I see Developer Options are not available for this user. Anyone else seeing that?
I installed MHC19J first and that was the incorrect version. I then flashed MMB29V and then the problems above started. I couldn't access quick menu, the recent apps button didn't work, and Developer Options showed as not available for this user. I just did a factory data reset and that seemed to get everything working again, but always a pain to have set everything up again! Damn Google! :-/
Probably due to you flashing the wrong image before flashing the correct one. Had no such problems after flashing this morning
Skickat från min Nexus 5X via Tapatalk
I too am on MHC19J , but why is it the wrong image? I actually find my phone working rather well with it, but I guess I will have to wipe and install MMB29V
granets said:
I too am on MHC19J , but why is it the wrong image? I actually find my phone working rather well with it, but I guess I will have to wipe and install MMB29V
Click to expand...
Click to collapse
Only do that if you are not rooted etc. If you use TWRP recovery and are not prompted for a password when booting into recovery, then you have the right image. It does work, the problem is trying to use Custom Recovery to flash SuperSU. Check that thread below.
https://www.reddit.com/r/nexus5x/comments/49e0ij/601_mhc19j/
I just flashed the J image. Installed TWRP 3.0 and got the pin code request. Cancelled it, mounted OTG, flashed SuperSU 2.68, and Osmosis busybox. Rebooted and all looks great. Restoring from Titanium now and Android Pay still works. It really looks like only TWRP needs to be updated. Haven't flashed a kernel yet, I'll let this one settle in for a few days.
no issues here on 19J. modified boot image here
bobby janow said:
I just flashed the J image. Installed TWRP 3.0 and got the pin code request. Cancelled it, mounted OTG, flashed SuperSU 2.68, and Osmosis busybox. Rebooted and all looks great. Restoring from Titanium now and Android Pay still works. It really looks like only TWRP needs to be updated. Haven't flashed a kernel yet, I'll let this one settle in for a few days.
Click to expand...
Click to collapse
Was your data/storage encrypted before flashing J version? I'm on stock rooted(systemless, v2.6x beta), data/storage DEcrypted, xposed isntalled, TWRP v3.0.0.0. Does flashing J version automatically re-encrypt data/storage?
mickey4mice said:
Was your data/storage encrypted before flashing J version? I'm on stock rooted(systemless, v2.6x beta), data/storage DEcrypted, xposed isntalled, TWRP v3.0.0.0. Does flashing J version automatically re-encrypt data/storage?
Click to expand...
Click to collapse
I'm sorry I don't know. I haven't decrypted in quite some time now. I also haven't used xposed in a long time either. I don't ever format userdata or flash the userdata.img unless I absolutely have to. I'm encrypted, systemless, 2.68 SU and twrp 3.0. I'm leery to do anything now until twrp gets fixed for the J build. Although I might flash a J kernel via OTG if there comes one.
mickey4mice said:
Was your data/storage encrypted before flashing J version? I'm on stock rooted(systemless, v2.6x beta), data/storage DEcrypted, xposed isntalled, TWRP v3.0.0.0. Does flashing J version automatically re-encrypt data/storage?
Click to expand...
Click to collapse
Unless something has changed, you will be encrypted after first boot (same for prior releases). You'd need to sideload and flash SuperSU before booting since TWRP 3.0 currently cannot access internal storage on MHC19J.
Sent from my Nexus 5X using Tapatalk
SlimSnoopOS said:
Unless something has changed, you will be encrypted after first boot (same for prior releases). You'd need to sideload and flash SuperSU before booting since TWRP 3.0 currently cannot access internal storage on MHC19J.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
I always flash google images sans userdata for every monthly security data, my decrypted data/storage has never re-encrypted itself after first boot before I flash systemless SU via TWRP. But those were done with TWRP v2x, has anything changed with TWRP 3x in this regard?
mickey4mice said:
I always flash google images sans userdata for every monthly security data, my decrypted data/storage has never re-encrypted itself after first boot before I flash systemless SU via TWRP. But those were done with TWRP v2x, has anything changed with TWRP 3x in this regard?
Click to expand...
Click to collapse
Are you booting into system or booting into TWRP from bootloader after flashing the monthly factory images?
Sent from my Nexus 5X using Tapatalk
i had some trouble so i clicked the flash all batch file. Anyone know how to root this build? i cant get super su zip file i transfer to show up in twrp. The file is there but twrp doesnt see it.
SlimSnoopOS said:
Are you booting into system or booting into TWRP from bootloader after flashing the monthly factory images?
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
I was wondering if someone could direct me on how to put Supersu.zip into the /cache as from what I have read so far it is possible to root on mhc19j you just need to move Supersu there as it is not encrypted.
Bump
Dominicano2 said:
I was wondering if someone could direct me on how to put Supersu.zip into the /cache as from what I have read so far it is possible to root on mhc19j you just need to move Supersu there as it is not encrypted.
Click to expand...
Click to collapse
They likely used "ADB push" command to move SuperSU from their computer to the /cache directory.
Sent from my Nexus 5X using Tapatalk
SlimSnoopOS said:
They likely used "ADB push" command to move SuperSU from their computer to the /cache directory.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
Thanks could you tell me what I am doing wrong I started abd and I do the following command adb push supersu.zip /cache/ and it comes back with Permission Denied
edit: Never mind I booted into twrp with fastboot boot and once there I did the adb push and was able to install Supersu
Dominicano2 said:
Thanks could you tell me what I am doing wrong I started abd and I do the following command adb push supersu.zip /cache/ and it comes back with Permission Denied
edit: Never mind I booted into twrp with fastboot boot and once there I did the adb push and was able to install Supersu
Click to expand...
Click to collapse
Sweet, glad you got that figured out
How is the new update in terms of making the phone better?
gvsukids said:
How is the new update in terms of making the phone better?
Click to expand...
Click to collapse
Seems like the lag pulling down the notification window that happened time to time is gone. Feels a little snappier but will need a week of up time to know for sure.
Notice that the "keep WiFi on during sleep" setting for "never" still doesn't work on the 5x. Also still have an audio bug that duplicates the source a second behind on Bluetooth when a notification is received which is disappointing.

Can't flash custom roms

Once again I am stuck in same situation.*
I can only boot on restored twrp backup.*
I cant boot on any other custom roms.*
It install perfectly but after i reboot it gets stuck on 1+ boot logo.*
op3lite
saultanised cm
cm14
be it any rom i am already on 3.2.7 firmware.*
Followed mega unbrick guide and restored stock partitions. the phone boots properly. but when i remove encryption via fastboot,phone doesnt boot after that. again i have to go through all unbrick guide. back to stock 3.1.2. none of the roms boot except twrp restore.*
I m totally fed up. Please help.
nikhilsnigam said:
Once again I am stuck in same situation.*
I can only boot on restored twrp backup.*
I cant boot on any other custom roms.*
It install perfectly but after i reboot it gets stuck on 1+ boot logo.*
op3lite
saultanised cm
cm14
be it any rom i am already on 3.2.7 firmware.*
Followed mega unbrick guide and restored stock partitions. the phone boots properly. but when i remove encryption via fastboot,phone doesnt boot after that. again i have to go through all unbrick guide. back to stock 3.1.2. none of the roms boot except twrp restore.*
I m totally fed up. Please help.
Click to expand...
Click to collapse
What twrp version are you using?
Piyush lalwani said:
What twrp version are you using?
Click to expand...
Click to collapse
latest official twrp
nikhilsnigam said:
latest official twrp
Click to expand...
Click to collapse
Can you give a try to nodded twrp and one more thing mount system before flashing any ROM.
Note: after decrypting if you want too boot into OOS you need to Flash SuperSU or otherwise the OOS will force encryption and that may create problem.
Piyush lalwani said:
Can you give a try to nodded twrp and one more thing mount system before flashing any ROM.
Note: after decrypting if you want too boot into OOS you need to Flash SuperSU or otherwise the OOS will force encryption and that may create problem.
Click to expand...
Click to collapse
I did that already. after flashing supersu immediately then also stuck at boot screen. tried with modded twrp too 3.0.2.22
Piyush lalwani said:
Can you give a try to nodded twrp and one more thing mount system before flashing any ROM.
Note: after decrypting if you want too boot into OOS you need to Flash SuperSU or otherwise the OOS will force encryption and that may create problem.
Click to expand...
Click to collapse
okay now after few trial and error method i have come to the conclusion that this happens only after unencrypting the device. after eunencrypting it wont boot any other roms except those which have been already backed up.
So,
can i flash roms on encrypted device? I mean i test a lot of roms and i change frequently.
I guess no, right?
Yes try with encryption as the ROMs doesn't require decrypting the device. Decrypted device is only required if you want to use multirom.
Good Luck.
Piyush lalwani said:
Yes try with encryption as the ROMs doesn't require decrypting the device. Decrypted device is only required if you want to use multirom.
Good Luck.
Click to expand...
Click to collapse
but every time we try to reboot in recovery it asks for password to decrypt.
and if i enter default password storage shows only 32gb. that is strange
nikhilsnigam said:
but every time we try to reboot in recovery it asks for password to decrypt.
and if i enter default password storage shows only 32gb. that is strange
Click to expand...
Click to collapse
In nodded recovery too?
Piyush lalwani said:
In nodded recovery too?
Click to expand...
Click to collapse
going to try with modded recovery this time
nikhilsnigam said:
going to try with modded recovery this time
Click to expand...
Click to collapse
Yeah give a try
Piyush lalwani said:
Yeah give a try
Click to expand...
Click to collapse
how does modded recovery helps in this btw?
hope it works
OK So I am able to flash any rom with encrypted storage and latest modified twrp.
This is working for me right now but still haven't found solution why it wouldn't work on unencrypted storage.
Thank you.
This guide solved everything
http://forum.xda-developers.com/oneplus-3/how-to/oneplus-3-decryption-ultimate-guide-t3497940

How to flash official nougat without wiping internal storage?

Hello all!
I am currently on OOS 3.2.8, and official TWRP. I have read all the instructions on the forums but all lead to one option, formatting internal memory. So, my question are:
1. Will flashing oos 4.0 work with official TWRP or 8 have to use modified 28 version?
2. How can I flash oos 4 with modified TWRP and not have to wipe internal memory?
I would appreciate all the responses. Thanks
I was the same predicament as you. I finally took the plunge and now I have Nougat running on my OP3. Here is what I did :
Start: OOS 3.2.8 w/ custom kernel and modified TWRP
1. Flash stock recovery (Google for a forum post in the OP3 forums on downloading the stock recovery and flash it through fastboot)
2. Reboot and let 3.2.8 start
3. Download Snap VPN and change the country to Canada. You will be prompted for the system update.
4. Let the update download (~1 GB)
5. Install the update. You may see an error of the installation may fail as your phone is rooted. Ignore and go ahead.
6. The installer will now boot to stock recovery and reboot with Nougat. All settings and apps will be maintained
The only catch is that you may have ext4 instead of f2fs. I am okay with it for now... But your mileage may vary
All the best!
Edit : Nougat running on my op3.
abhibnl said:
Hello all!
I am currently on OOS 3.2.8, and official TWRP. I have read all the instructions on the forums but all lead to one option, formatting internal memory. So, my question are:
1. Will flashing oos 4.0 work with official TWRP or 8 have to use modified 28 version?
2. How can I flash oos 4 with modified TWRP and not have to wipe internal memory?
I would appreciate all the responses. Thanks
Click to expand...
Click to collapse
Are you rooted? Are you encrypted? What file systems are you using for your partitions? You're not giving full information. Why is formatting not an option if it'll give you the results you want?
To get to F2fs (I do recommend it)
Take a backup of your Data partition. , copy it to your pc with "adb pull /sdcard/Twrp/whatever".
Now go to Twrp>Wipe>Advanced select data and click on change file system. Change it to F2fs. Now restore your backup (Reader the guide all info is there). Profit!
anshulajain said:
I was the same predicament as you. I finally took the plunge and now I have Nougat running on my OP3. Here is what I did :
Start: OOS 3.2.8 w/ custom kernel and modified TWRP
1. Flash stock recovery (Google for a forum post in the OP3 forums on downloading the stock recovery and flash it through fastboot)
2. Reboot and let 3.2.8 start
3. Download Snap VPN and change the country to Canada. You will be prompted for the system update.
4. Let the update download (~1 GB)
5. Install the update. You may see an error of the installation may fail as your phone is rooted. Ignore and go ahead.
6. The installer will now boot to stock recovery and reboot with Nougat. All settings and apps will be maintained
The only catch is that you may have ext4 instead of f2fs. I am okay with it for now... But your mileage may vary
All the best!
Click to expand...
Click to collapse
I don't have any issues with ext4, infact i do feel ext4 is more stable than f2fs so file system is my last concern. Thanks for your method, but then how did u root again? Installing nougat is fine but what after that? I have read that you can't use modified twrp without formatting internal memory first, as it'll show you the pin issue. Let me know how do you propose a safe method to achieve root.
Renosh said:
Are you rooted? Are you encrypted? What file systems are you using for your partitions? You're not giving full information. Why is formatting not an option if it'll give you the results you want?
Click to expand...
Click to collapse
Yes i am encrypted, rooted, stock OOS 3.2.8 + Franco kernel. Official TWRP(not modified). I am using ext4, never used f2fs at all. The time to backup data and then to restore it all back is the reason formatting is not an "preferred" option for me. I can do it, but i would have to wait until i find enough time to do the whole process. I am in a full time job, so i hope you would understand.
Puddi_Puddin said:
To get to F2fs (I do recommend it)
Take a backup of your Data partition. , copy it to your pc with "adb pull /sdcard/Twrp/whatever".
Now go to Twrp>Wipe>Advanced select data and click on change file system. Change it to F2fs. Now restore your backup (Reader the guide all info is there). Profit!
Click to expand...
Click to collapse
Well this again defeats the purpose of my original question, but thanks mate. I would definitely read the guide if decide to switch to f2fs.
@abhibnl. BTW your encrypted. So the modified TWRP won't work.
How to fix:
Wipe Userdata with Fastboot / fastboot erase UserData
Boot into Twrp modified twrp.
Flash OOS 4.0 flash SuperSU and let it boot
You should be decrypted DO NOT install a boot password since you will be encrypted again.
I haven't rooted my phone again. My only reason to root is to install Adaway to block all ads. With DNS66 and Adguard, I have little incentive to root my stock nougat install.
Edit : I had encryption during 3.2.8 and it carried over to 4.0
Puddi_Puddin said:
@abhibnl. BTW your encrypted. So the modified TWRP won't work.
How to fix:
Wipe Userdata with Fastboot / fastboot erase UserData
Boot into Twrp modified twrp.
Flash OOS 4.0 flash SuperSU and let it boot
You should be decrypted DO NOT install a boot password since you will be encrypted again.
Click to expand...
Click to collapse
Thanks a lot for informing me mate. I really don't want to decrypt my storage as of now. I guess flashing stock recovery is the only solution now. Will hope someone would pick up the twrp and update it.
anshulajain said:
I haven't rooted my phone again. My only reason to root is to install Adaway to block all ads. With DNS66 and Adguard, I have little incentive to root my stock nougat install.
Edit : I had encryption during 3.2.8 and it carried over to 4.0
Click to expand...
Click to collapse
Seems like stock recovery is the best way as of now. Seems like I'll have to love without root until someone updates twrp to support encrypted storage.
I haven't updated to Nougat yet, but I looked over Chainfire's SuperSU changelog and its installation script and both of them confirm that from March installing SuperSU prevents forced encryption. Also many guides suggest installing it as way for disabling forced encryption. Of course you have to flash SuperSU just after flashing ROM, before booting the system.
abhibnl said:
Hello all!
I am currently on OOS 3.2.8, and official TWRP. I have read all the instructions on the forums but all lead to one option, formatting internal memory. So, my question are:
1. Will flashing oos 4.0 work with official TWRP or 8 have to use modified 28 version?
2. How can I flash oos 4 with modified TWRP and not have to wipe internal memory?
I would appreciate all the responses. Thanks
Click to expand...
Click to collapse
Very simple indeed...
1. Switch on wifi
2. Download OTA and click install whem finished
3. Once installation completed, flash twrp .28 and latest su
4. Reboot and ignore any errors, youwill beup and running fine...
Zielony360 said:
I haven't updated to Nougat yet, but I looked over Chainfire's SuperSU changelog and its installation script and both of them confirm that from March installing SuperSU prevents forced encryption. Also many guides suggest installing it as way for disabling forced encryption. Of course you have to flash SuperSU just after flashing ROM, before booting the system.
Click to expand...
Click to collapse
That i already knew mate. But i WANT my storage to remain encrypted. And that's the issue with modified TWRP. You can't enter into recovery on that if your storage is encrypted.
kpmohamedhussain said:
Very simple indeed...
1. Switch on wifi
2. Download OTA and click install whem finished
3. Once installation completed, flash twrp .28 and latest su
4. Reboot and ignore any errors, youwill beup and running fine...
Click to expand...
Click to collapse
Again, "You can't enter into recovery on modified TWRP if your storage is encrypted." So i won't be able to enter into twrp in the first place, let alone flash anything.
abhibnl said:
Hello all!
I am currently on OOS 3.2.8, and official TWRP. I have read all the instructions on the forums but all lead to one option, formatting internal memory. So, my question are:
1. Will flashing oos 4.0 work with official TWRP or 8 have to use modified 28 version?
2. How can I flash oos 4 with modified TWRP and not have to wipe internal memory?
I would appreciate all the responses. Thanks
Click to expand...
Click to collapse
In the same boat as you. I have OOS 3.2.8 encrypted, rooted and TWRP 3.0.2-1.26. I too would like to update but have way to much stuff on my phone to back it all up and restore it. Hope you or someone come's up with a solution. I will be following your thread.
Thanks.
Go to twrp. Press backup. Select only data. Save to PC youre backup for safety..
3.2.8 it's Android 6, 4.0 it's Android 7. Some apps might not work from base to base.
If you want to change to F2FS it will format youre phone, wipe phone full internal memory. If you want to change it back to ext4, same.
Clean flash, full wipe it's always better.
dmoses1969 said:
In the same boat as you. I have OOS 3.2.8 encrypted, rooted and TWRP 3.0.2-1.26. I too would like to update but have way to much stuff on my phone to back it all up and restore it. Hope you or someone come's up with a solution. I will be following your thread.
Thanks.
Click to expand...
Click to collapse
My suggestion (and my steps are in #1), install stock recovery, install snap VPN, download the update and install (ignore any errors on root). Once done, you will have Nougat with stock recovery, encryption maintained and all app data also intact.
anshulajain said:
My suggestion (and my steps are in #1), install stock recovery, install snap VPN, download the update and install (ignore any errors on root). Once done, you will have Nougat with stock recovery, encryption maintained and all app data also intact.
Click to expand...
Click to collapse
This is the last resort brother. With this method, unfortunately I won't have any root available. The only way now is to wait for updated twrp.
abhibnl said:
This is the last resort brother. With this method, unfortunately I won't have any root available. The only way now is to wait for updated twrp.
Click to expand...
Click to collapse
I dont know. I found this on Oneplus forum. May be worth trying. Just not 100% sure.....
Thanks! Will try and let you know
abhibnl said:
Thanks! Will try and let you know
Click to expand...
Click to collapse
Well, I tried something, waiting on it to finishing booting and see how it went.
I flashed twrp-3.0.2-1.28-oneplus3p version,
Flashed the OnePlus3Oxygen_16_OTA_035_all_1612310359_e10cadfb2af7.zip inside TWRP,
Flashed SR1-SuperSU-v2.79-SR1-20161221223537.zip right after flashing OTA zip.
Its rebooting and says Android is upgrading. Fingers crossed.
EDIT: Its booted and I am on Nougat, didnt lose my data and phone is still encrypted!
Edit: Ended up having issues with settings app locking up. So, I went a different route and its all working great now.
Downloaded the stock recovery image and renamed it to recovery.img
Make sure after you rename it its not named recovery.img.img, If you have show file extensions enabled on your pc you should already see the file extension.
Rebooted to bootloader - adb flash recovery recovery.img
Using the volume keys and power button selected - reboot recovery.
Now in stock recovery - flashed OnePlus3Oxygen_16_OTA_035_all_1612310359_e10cadfb2af7.zip
After rom is done flashing, went right back into bootloader. Did not let my phone reboot to start the OS.
Renamed twrp-3.0.2-1.28-oneplus3p.img to recovery.img
adb flash recovery recover.img
Powered off phone and Manually boot it into recovery by holding Power + Volume Down button.
Phone booted into TWRP
Flashed SR1-SuperSU-v2.79-SR1-20161221223537.zip
Wiped cache / dalvik
Rebooted system from TWRP and waited. System is really smooth now, no issues yet. Been playing with it for awhile now.
During the booting up process it might take a minute and it will reboot twice. Dont get nervous like I did thinking it was going to start bootlooping. It booted just fine. I read in a nother thread that SuperSU is what causes it to boot twice.
So......Now I have OOS 4.0 Nougat, Rooted, Encrypted and everything seems to be working fine.

[HOW-TO] How to SuperSU the Moto G5 Plus (Rooting Guide)

Hey guys,
Thanks to @vanche for the modified kernel and twrp recovery and @fayiaz for the guide on how to root and @Johny Cipel for the original guide and everyone else like
@topjohnwu
@santhosh
@abdyasar
For the original twrp, root and other stuff.
Now thats out of the way
Requirements:
-Unlocked Bootloader (Moto G5 Plus with offers from Amazon won't have unlockable bootloaders but if you buy the standard model from them then you'll be fine)
-Vanche's Modified TWRP from here (http://cloud.vache-android.com/Moto/potter/TWRP/twrp-3.1.0-0-potter.img)
- Vanche's Modified Boot Kernel from here (http://cloud.vache-android.com/Moto/potter/root/potter_boot_test7.img)
- Vanche's Wifi Patch because wifi will stop working after flashing the modified boot kernel (http://cloud.vache-android.com/Moto/potter/root/wlan_custom.zip)
- Chainfires Root http://download.chainfire.eu/1021/SuperSU/SR3-SuperSU-v2.79-SR3-20170114223742.zip
--- If you already have TWRP on your phone, the one by Santosh, you must flash the one made by Vanche or it wont work and you can just download the recovery image and flash it via twrp by toggling the flash zip button on the twrp recovery install menu.
1.. Download all the three files then boot your phone into bootloader mode by holding Volume Down + Power
2. Connect your phone to your PC and then open the adb terminal wherever adb is located open command prompt at that folder
3. Place the recovery image and boot image where the adb terminal folder is located
4. Fastboot flash recovery first and then boot into recovery at least once then reboot into bootloader fastboot flash boot the modified boot image.
5. Boot into the system (May take a while for the first time after flashing the boot image).
6. Place the wlan_custom.zip into your phones internal storage
7. Boot back into recovery and then flash the zip this time
8. Then download and flash the SR3 Super Su from above using recovery and you should have root!!
Safety net may break so if you wanna use Snapchat or any other apps that use safety net make sure you login first then root. You can't logout or else you'll have to unroot and log back in.
wiping?
do we need to wipe storage in this process?
yourtitan said:
do we need to wipe storage in this process?
Click to expand...
Click to collapse
It shouldnt, But if you cant boot then you need to flash the no-verity crypt zip once
Awesomeslayerg said:
It shouldnt, But if you cant boot then you need to flash the no-verity crypt zip once
Click to expand...
Click to collapse
thanks for the reply. but i have several data in my phone. can i just unlock bootloader and root as instructed above without wiping my storage? its a task to take backup of everything. thanks in advance.
wifi not working after supersu root
wifi not working mate.. Flashed custom zip .. No use..
Dhan... said:
wifi not working mate.. Flashed custom zip .. No use..
Click to expand...
Click to collapse
Did you correctly flash vanche TWRP and boot image? Because you're supposed to do that first and then flash the wifi zip..
yourtitan said:
thanks for the reply. but i have several data in my phone. can i just unlock bootloader and root as instructed above without wiping my storage? its a task to take backup of everything. thanks in advance.
Click to expand...
Click to collapse
The phone will wipe as soon as you unlock the bootloader so best to back up first.
Sorry but what's the differences beetwen this method and magisk?
Awesomeslayerg said:
Requirements:
-Unlocked Bootloader (Amazon bought Moto G5 Plus dont have unlockable bootloaders so your out of luck)
Click to expand...
Click to collapse
Only the 'Prime Exclusive - With Offers and Ads' Amazon models don't have an unlockable bootloader, while the 'Standard Version' models can definitely be unlocked. You probably should clarify that or some will think that they can't buy from Amazon and unlock/root the phone.
Dahenjo said:
Only the 'Prime Exclusive - With Offers and Ads' Amazon models don't have an unlockable bootloader, while the 'Standard Version' models can definitely be unlocked. You probably should clarify that or some will think that they can't buy from Amazon and unlock/root the phone.
Click to expand...
Click to collapse
Will do thanks
The "Magisk method" didn't give me privileges on /system, there are some things I can do and others do not, this method gave me full root access like in the other MotoG devices? And the safetynet check fails too?
Anyway thank you very much!!
What's going to be different than magisk root?
Videon Tutorial [SuperSu]
Guys I Found This Video Tutorial For This Thread On Roting Moto g5 Plus With Super Su ------- And Worked Great For Me----- link:-
https://www.youtube.com/watch?v=TV78iWxQrRE
gr8 work mate.....I'm rooted with Magisk...wanna go with super su........do i need to
gr8 work mate.....I'm rooted with Magisk...wanna go with super su........do i need to reflash above said recovery?
will it wipe my current data on both storage?
Pls guide..........How is Moto app working with super su?
Shamith08 said:
Guys I Found This Video Tutorial For This Thread On Roting Moto g5 Plus With Super Su ------- And Worked Great For Me----- link:-
https://www.youtube.com/watch?v=TV78iWxQrRE
Click to expand...
Click to collapse
Thank you so much! This worked! Why would WiFi stop working with this boot image?
I'm
donjuro said:
Thank you so much! This worked! Why would WiFi stop working with this boot image?
Click to expand...
Click to collapse
I don't know why but you have to flash WLAN in order to get it to work
Twrp backup can't worked
I successfully rooted my moto g5 plus mobile. And TWRP INSTALL Latest supersu via. But sdcard card backup can't worked. Why can't work sdcard in twrp? I think this twrp unofficial so not supported sdcard process. Please help me. How to work sdcard backup twrp. I try mount sdcard. But can't mount sdcard. Totally I'm very tired. Please help me.
Does someone have the img file for G5/Cedric?
Awesomeslayerg said:
...Safety net may break so if you wanna use Snapchat or any other apps that use safety net make sure you login first then root. You can't logout or else you'll have to unroot and log back in.
Click to expand...
Click to collapse
Do you think that will be fixed soon with a newer version of SuperSU, or some "root hider" apps? The idea of running a phone without root is absurd/offensive/rediculous IMO, but I don't want to be denied the ability to run certain apps because the developers have the rediculous idea that running without root should be "OK" to ordinary users? This idea is extremely offensive to me!!!
Guys, I wonder why the OP is "Account currently disabled"? I hate running without root, but, it seems a bit early and not all the problems have been worked out yet, such as TWRP not accessing SDCARD yet - I think I was a little premature buying my Moto G5 Plus as we don't really have "stable" release custom ROMs or fully functioniong TWRP and to even root we have to rely on some not well known sources for kluged files to make SU work?

TWRP 3.2.3-1 for Pixel 2 XL

Note: Do not use if you have multiple users (including a guest user)
Lots more information here: https://plus.google.com/u/1/+DeesTroy/posts/i33ygUi7tiu
I strongly recommend that kernel developers start building the touch drivers into the kernel instead of depending on modules to ensure a fully functional TWRP since recovery is now part of the boot partition.
Be careful about what you install on your device as far as kernels and ROMs go. I think there is a high potential for losing the ability to decrypt because of the OS and patch level tags that are included in the boot image and the anti-rollback features that Google has implemented.
MTP does not work in TWRP on the Pixel 2 and will not work until we have time to update the TWRP MTP implementation. You may still use adb to push and pull files.
Pixel devices have 2 "slots" for ROMs / firmware. TWRP will detect whichever slot is currently active and use that slot for backup AND restore. There are buttons on the reboot page and under backup -> options to change slots. Changing the active slot will cause TWRP to switch which slot that TWRP is backing up or restoring. You can make a backup of slot A, switch to B, then restore the backup which will restore the backup of A to slot B. Changing the slot in TWRP also tells the bootloader to boot that slot.
The zip install method installs TWRP to both slots.
Installation:
If you already have TWRP installed: Download the latest zip and install the zip using TWRP.
If you do not already have TWRP installed: Download both the img and the zip. Copy the zip to your device. You will need to have fastboot binaries and the correct drivers installed. Power off your device completely. Hold volume down and turn on the device. Your device should now be in the bootloader. Connect the device to your PC. Open a command window and run the following command from the proper location:
fastboot boot path/to/twrp.img
This will temporarily boot TWRP on your device. If you are using a lockscreen pin/pattern/password and do not get prompted to enter your passord, reboot to the bootloader and try again. Go to install and browse to the zip and install the zip. If you are currently rooted, you will need to reflash the stock boot image before installing TWRP. After installing the stock boot image, follow the instructions for installing TWRP. Once TWRP is installed, you will need to reflash root.
If you accidently flash TWRP to your device using fastboot instead of temporarily booting the image, you will need to download the latest factory image for your device and reflash the boot image.
3.2.1-1 has working decrypt with the February security patch!
3.2.1-2 fixes some zip install errors
3.2.3-1 supports decrypting Android 9.0 Pie even with a pin / pattern / password set
Pixel 2:
https://twrp.me/google/googlepixel2.html
https://dl.twrp.me/walleye/
Pixel 2 XL:
https://twrp.me/google/googlepixel2xl.html
https://dl.twrp.me/taimen/
Reserved!
Awesome to see the progress here, thank you for working on it and dealing with all the impatient requests. Will definitely be keeping an eye on this thread ?
Hurray for progress!
fastboot boot /path/to/twrp.img reboots into TWRP, but it never goes past the teamwin splash screen. I am able to reboot the phone normally after that, so no biggie.
I don't have time now to mess with figuring out how to get you logs, but I'll do that later this evening. Just wanted to give you a quick "what happened when I tried it."
And THANK YOU for working on this for us so quickly!
Edit: The logs are posted here:
https://forum.xda-developers.com/pixel-2-xl/development/twrp-alpha-pixel-2-xl-t3698148/post74363478
This makes me smile. Thanks Troy and TeamWin!
Thanks Dees_Troy and Team for getting this started!
Things are looking up, thanks guys!
Awesome to see action with this phone! Thanks!!
You da man
sharkie405 said:
fastboot boot /path/to/twrp.img reboots into TWRP, but it never goes past the teamwin splash screen. I am able to reboot the phone normally after that, so no biggie.
I don't have time now to mess with figuring out how to get you logs, but I'll do that later this evening. Just wanted to give you a quick "what happened when I tried it."
And THANK YOU for working on this for us so quickly!
Click to expand...
Click to collapse
Here are those logs.
Nice! Great to see the progress
Thanks for the progress guys. Has anyone tried flashing root from TWRP yet? I wonder if this process would work, if we used this modded TWRP... https://forum.xda-developers.com/pixel-xl/how-to/guide-how-to-systemlessly-root-pixel-xl-t3660324
sharkie405 said:
Here are those logs.
Click to expand...
Click to collapse
Did you try unlocking critical?
cwalker0906 said:
Did you try unlocking critical?
Click to expand...
Click to collapse
Yes, I've already unlocked critical.
Sent from my Pixel 2 XL using XDA Labs
Great to see...this is the start!
I unlocked the bootloader without critical and was able to bootloader into twrp. No just figuring out a way to get root.
bggold said:
I unlocked the bootloader without critical and was able to bootloader into twrp. No just figuring out a way to get root.
Click to expand...
Click to collapse
From here we should be able to push ADB shell comands to edit build.prop right?
I just fastboot booted your .img. All functioning as expected except for the issues that you indicated.
Rebooted back to system without any issues.
Thank You Great Job!
chazall1 said:
I just fastboot booted your .img. All functioning as expected except for the issues that you indicated.
Rebooted back to system without any issues.
Thank You Great Job!
Click to expand...
Click to collapse
Have you unlocked critical?
Sent from my Pixel 2 XL using XDA Labs

Categories

Resources