[Q] Want to unlock and root but use with stock rom - Nexus 6P Q&A, Help & Troubleshooting

Is it possible to unlock bootloader, root, flash twrp and somehow flash the stock rom? If yes, where can I get the rom files for flashing with twrp?
thanks

You're already stock. You don't have to flash stock images again. Do yourself a favor and read Heisenberg's unlock/root/flash guide in the general section. Its stickied. Had everything you need to know about this device.

I've read the post already. The problem is that when unlocking the bootloader the phone is hard reseted. So after unlocking, rooting and installing twrp I would need to flash the stock rom. I just want to have root, but with stock rom.

joooe said:
I've read the post already. The problem is that when unlocking the bootloader the phone is hard reseted. So after unlocking, rooting and installing twrp I would need to flash the stock rom.
Click to expand...
Click to collapse
After unlocking it erases your user data. The system image is still there it would be as if you turned it on for the first time. You do not need to reflash stock after unlocking, rooting and installing twrp.

Good news then! Thanks!

Just follow that guide exactly as it states and you'll be golden

The folks above are correct. That's exactly what I did. I'm unlocked, rooted and running the stock rom. You can also install kernels on the stock rom w/o having to reinstall anything.

@jejb What will you do when Google launches another update and you want to have it?

That's a good question. And it seems they roll out these little updates monthly. So far, I'm just ignoring them. I wish I could find a way to remove the notification. But I'll wait until there is a meaningful update to go through the process of un-rooting. That process is in the pinned thread, too. If you can live with the systemless root, it's a lot easier to take the updates.

@joooe, your question is covered in the above mentioned guide. Look at section 10. Before doing anything to your phone, I strongly suggest reading guide in its entirety.

Related

[Q] Quick firmware question

If I was lucky enough to get a new GS4 At&t with the mdl firmware I can root and install a custom recovery like twrp. Is that right?
I was thinking of using this guide and then installing cyanogenmod. This should be possible right?
SSMI said:
If I was lucky enough to get a new GS4 At&t with the mdl firmware I can root and install a custom recovery like twrp. Is that right?
I was thinking of using this guide and then installing cyanogenmod. This should be possible right?
Click to expand...
Click to collapse
Yes - MDL firmware will work with the loki bootloader exploit no problem. Definitely read that guide and probably the other stickies as well, so you fully understand what's going on.
Also, when you get the phone, take measures to make sure it does not download the update. Remove the SIM card and turn off wifi so it can't download anything. Then root and install custom recovery and you can turn that all back on (update can't happen with custom recovery).
If you're going to keep it stock for a bit, make sure you root and use Titanium Backup to disable the update apps. You can find those in one of the stickies.

How can I just root and not unlock

Is it possible to just root my phone?
if so how do i do it?
All the posts I have seen go into unlocking and then rooting
gjjh25 said:
Is it possible to just root my phone?
if so how do i do it?
All the posts I have seen go into unlocking and then rooting
Click to expand...
Click to collapse
you will need to unlock to flash custom zip, but u can relock after
gjjh25 said:
Is it possible to just root my phone?
if so how do i do it?
All the posts I have seen go into unlocking and then rooting
Click to expand...
Click to collapse
Question - why? What do you want to root your phone for if not to use the wonderful tools of root. Why do you think fully rooting your phone will harm something. Locked or unlocked bootloader is not going to affect your phone. Rooted stock rom with recovery will not make it act funny.... Sorry not putting you out there but just asking why? Feel free to ignore me if you must...
Edit: Sorry to answer your question like the post above said you can root and then lock it right back up if that is your preference
playya said:
Question - why? What do you want to root your phone for if not to use the wonderful tools of root. Why do you think fully rooting your phone will harm something. Locked or unlocked bootloader is not going to affect your phone. Rooted stock rom with recovery will not make it act funny.... Sorry not putting you out there but just asking why? Feel free to ignore me if you must...
Edit: Sorry to answer your question like the post above said you can root and then lock it right back up if that is your preference
Click to expand...
Click to collapse
I have come from an HTC Desire, which I rooted and had a custom rom (Cyganonmod) on and was very happy with it.
I am still not sure of what I would gain by doing the same with my Nexus 4 ?
any advice is much appreciated.
Is this new Cyganonmod installer the best way to go?
gjjh25 said:
I have come from an HTC Desire, which I rooted and had a custom rom (Cyganonmod) on and was very happy with it.
I am still not sure of what I would gain by doing the same with my Nexus 4 ?
any advice is much appreciated.
Is this new Cyganonmod installer the best way to go?
Click to expand...
Click to collapse
This phone is built for rooting and modding. You wont know what benefit you have until you either read up and see if the mods are ones you want or actually flash a rom. Sure try the CM installer but if you dont toolkits or just basic knowledge of android can get this phone roooted in minutes.
the CM rom on your HTC will give you the same benefits on your Nexus 4
playya said:
This phone is built for rooting and modding. You wont know what benefit you have until you either read up and see if the mods are ones you want or actually flash a rom. Sure try the CM installer but if you dont toolkits or just basic knowledge of android can get this phone roooted in minutes.
the CM rom on your HTC will give you the same benefits on your Nexus 4
Click to expand...
Click to collapse
Thanks, what do you recommend for the easiest way to unlock and root then?
gjjh25 said:
Thanks, what do you recommend for the easiest way to unlock and root then?
Click to expand...
Click to collapse
I used a toolkit but honestly you can unlock manually by just booting into bootloader mode. Go into development and try Wugs Toolkit.... Rooting the phone is easy and all methods are relatively the same.
I do not see anything wrong with giving CM a try as well
gjjh25 said:
Is it possible to just root my phone?
if so how do i do it?
All the posts I have seen go into unlocking and then rooting
Click to expand...
Click to collapse
I recommend you to stick to your original plan, its your phone, do what you like, you don't need to flash custom roms if you don't want to. I am using stock kernel and stock KitKat right now and the performance is excellent.
Follow these instructions to unlock bootloader, install latest kitkat factory image, install custom TWRP recovery, and root. http://forum.xda-developers.com/showthread.php?t=2010312
The links to fastboot package and driver required is in my signature.
Link to download factory image: https://developers.google.com/android/nexus/images
Link for latest TWRP: TWRP recovery
Link for latest SuperSU package: SuperSU package
After you do all that, in bootloader menu, you can flash back the stock recovery (recovery.img), which is location in the "image-occam-******.zip" of the factory image. (fastboot flash recovery recovery.img)
Then lock your bootloader by "fastboot oem lock". You can also use BootUnlocker to lock and unlock your bootloader on the fly while in the phone, without losing your data, since everytime you do fastboot oem unlock, it will wipe the entire device.
By using stock rom, stock recovery, stock kernel and temporarily unroot (SuperSU) or hide root (SuperSU paid version), it allows you to receive future OTA updates from Google. If you want to modify your phones more while staying with stock, read up on Xposed Framework and its module Gravity Box, which is not yet compatible with Android 4.4 but will be eventually.
Just remember if you don't have custom recovery, once something goes wrong and your phone can't boot, its very hard to save the data inside. Once you have custom recovery like TWRP, you can make a backup of your stock image (which also backup your stock kernel) and try out other custom roms and easily go back to stock, then you can flash stock recovery again to receive OTA updates.
Thanks for advice everyone.
I rooted and unlocked with Wugfresh over the weekend. A lot easier than I thought it would be

[Q] Getting Lollipop on rooted Nexus 4 with custom recovery - guide for fools?

I want Lollipop and my Nexus 4 won't shut up about the OTA update. Naturally, it failed, and i have since tried to find a fool-proof guide to uptade it WITHOUT LOOSING DATA. Not been so lucky. Theres talk about fastbooting (?) and going back to stock, but not much in the way of step-by-step guides. I think most people with nexus 4 and root are like me - did it because it was easy, not knowing a lot about it...
I have rooted with towelroot, installed TWRP custom recovery with flashify, unlocked bootlocker with Bootunlock, installed Xposed framework and SuperSU. Never used ADB or any commands. Can't be the only one in this exact situation
What excactly do i need to do to get Lollipop without loosing any data (like a regular OTA update)?
Maybe user Titanium Backup or some kinda backup software to backup files and stuff then just go for a fresh installation? Most of the basic settings should be saved to your google account.
This post should help you with setting up ADB in your computer and to get you up to speed with using ADB and Fastbooot
KishanW said:
Maybe user Titanium Backup or some kinda backup software to backup files and stuff then just go for a fresh installation? Most of the basic settings should be saved to your google account.
This post should help you with setting up ADB in your computer and to get you up to speed with using ADB and Fastbooot
Click to expand...
Click to collapse
Thanks for the quick reply! But i was hoping for a solution that DIDN'T wipe my phone. I just wanna undo all the rooting business, so i can do the OTA...
605
tommyhj said:
Thanks for the quick reply! But i was hoping for a solution that DIDN'T wipe my phone. I just wanna undo all the rooting business, so i can do the OTA...
Click to expand...
Click to collapse
That would be interesting if someone has an answer for your question. I can use it too
Sorry that I couldn't help you.
tommyhj said:
I want Lollipop and my Nexus 4 won't shut up about the OTA update. Naturally, it failed, and i have since tried to find a fool-proof guide to uptade it WITHOUT LOOSING DATA. Not been so lucky. Theres talk about fastbooting (?) and going back to stock, but not much in the way of step-by-step guides. I think most people with nexus 4 and root are like me - did it because it was easy, not knowing a lot about it...
I have rooted with towelroot, installed TWRP custom recovery with flashify, unlocked bootlocker with Bootunlock, installed Xposed framework and SuperSU. Never used ADB or any commands. Can't be the only one in this exact situation
What excactly do i need to do to get Lollipop without loosing any data (like a regular OTA update)?
Click to expand...
Click to collapse
Hey,
Follow these instructions http://forum.xda-developers.com/nexus-4/general/how-to-how-to-flash-factory-image-t2010312.
there are a few things to note:
1. You do not need to unlock the bootloader, you will have done that when you rooted
2. Download the 5.0 image instead of the original stock image when you do this.
3. DO NOT flash userdata.img. That will wipe your data.
Those are the steps I followed to flash over to 5.0 without losing data.
But I would absolutely do a backup anyway, just in case something goes wrong.
gardn227 said:
Hey,
Follow these instructions http://forum.xda-developers.com/nexus-4/general/how-to-how-to-flash-factory-image-t2010312.
there are a few things to note:
1. You do not need to unlock the bootloader, you will have done that when you rooted
2. Download the 5.0 image instead of the original stock image when you do this.
3. DO NOT flash userdata.img. That will wipe your data.
Those are the steps I followed to flash over to 5.0 without losing data.
But I would absolutely do a backup anyway, just in case something goes wrong.
Click to expand...
Click to collapse
Ok, cool. So you're saying to towel-root my device, unlock bootloader with bootunlocker app, remove root by installing SuperSU and using the clean-up funtion. And then adb fastboot flash boot/recovery/system from the FACTORY img? Why not sideload the OTA instead? Because it wont work unless i reflash stock 4.4.4 completely?

T-Mobile FOG->FOJ Root

Hey guys,
I just rooted yesterday (G900T..FOG) using the TrapKernel method and everything is working just fine. Today I got a prompt for a new security update (FOJ). I haven't installed it yet and was curious -- if I do, will that remove my root? I'm assuming yes. Say I do install it -- is there anything I can do to get back my root aside from downgrading and re-applying TrapKernel?
Secondly, would I be able to flash a rooted FOJ ROM over the top of my FOG and still keep my root or will the update from J to G ? What steps would I need to do to accomplish this other than find the ROM and flash & wipe cache/davlik. Would I be able to dirty flash this or would a full wipe be required?
Last question (for now), if I choose to flash a CM ROM like Fusion would that keep my root as well? Again, I'm pretty sure the answer is yes I just don't want to make bad things happen that could be avoided.
1. if you take the OTA, root will be lost. You will have to downgrade, root, then upgrade using a prerooted rom to get it back.
2. Prerooted stock ROMs are the way to go. Just download Muniz_ri's prerooted stock OJ4 rom and flash it, you'll update to OJ4 and keep root.
http://forum.xda-developers.com/tmobile-galaxy-s5/development/how-to-update-to-g900tof6-5-1-1-pc-t3141404
Straight from that page:
- No need to wipe, the ROM will perform a factory data reset during the flash. Backup your User Data prior to flashing.
Click to expand...
Click to collapse
The ROM will wipe itself, you'll need to back up your stuff before the update.
3. The vast majority of custom ROMs are prerooted. Cyanogen based ones require you to enable root in the developer settings, FYI

ZTE Axon 7 Tenfar's Root and Magisk

Hi all,
let me first start by thanking the good people of xda community for your kind help and contribution. It would not be possible for people like me with extremely limited rooting knowledge to even have the courage to attempt a root if it wasn't for the good people like you here.
I just got my Axon 7 and is trying to work up the courage to attempt a root following tenfar's instruction (I'm extremely scared of bricking my new phone) I also hope that I can continue to play Pokemon Go after I root it, but unfortunately with the latest update, it seems impossible until I discovered Magisk. My question may seem fairly simple but it is extremely confusing to me. In Magisk's instruction it says that in order to install Magisk, one must remove any kind of root and systemless Xposed. Since my phone is not rooted, I do not have to go through the step of removing root and xposed? However, it says that I have to download Magisk and flash it. My confusion rests on the concept on how I can flash Magisk if my phone is not rooted? I thought one can only flash a rom etc after the phone is rooted? So should I follow tenfar's root first and root my axon 7 then try to flash Magisk? or the other way around? Any advice /tips/precautions/high level guides regarding both rooting using the tenfar method and flashing Magisk is greatly appreciate! I may suck at rooting and etc, but what I can do is follow all instructions carefully. Thank you everyone, you are the best!
To flash something (a ROM or an app, like Magisk) you need to have a custom recovery installed (such as TWRP, you boot into the custom recovery to flash the .zip file that contains whatever you want to flash) which generally means having an unlocked boot-loader, neither of those has anything to do with root (other than that they make rooting the phone considerably easier) they don't require it and they don't do it by themselves.
@Nameless One is right, you need a custom recovery (TWRP) to be able to flash Magisk. There is a thread about this in the forums.
However I would advise you to wait until next week when a new update is expected and perhaps some changes to the bootloader unlock policy and hopefully stock ROMs, which will make it much easier to solve any problems.
If you insist on going through with this now, you should take backup images of various partitions so that you can restore your phone to stock to receive the OTA.
How does it work if you have uninstall any kind of root? I would think root would be a requirement.
KyJelly69 said:
How does it work if you have uninstall any kind of root? I would think root would be a requirement.
Click to expand...
Click to collapse
It right on the top of their post
"This mod requires boot image modification, so unlocked bootloaders are required!"
What it does is implement it's own system-less root management module that will not be detected like other root methods. But will conflict with other root methods hence you have to be unrooted
Unlocked bootloader let's you flash custom recovery. That in turn let's you flash anything else including root modifications. In essence tenfar's boot image is modified to allow root. This will do something similar but you have to have the BL unlocked since patching boot image will change the signature.
iirc magisk alters the bootimage, so you need a unlocked Bootloader go get it to work.
And no, root is not a preq, you can use magisk to /aquire/ root though.
What u need:
- unlocked bootloader
- custom recovery
- a somewhat clean and not already modified system
Thank you all for the helpful replies, I greatly appreciate them.
I'm running out of the box ZTE Axon 7 A2017U with 6.0.1 Android. My goal is to install Magisk then eventually root so I can play Pokemon Go on the phone. Please advise on the next step? What are some of the safety precautions I should take? Thank you all very much!
I'm also planning on waiting until the next update [email protected]'s advice. Can anyone please explain to me the reasoning behind mh127's safety precautions? Thanks!
projectseahorse said:
Thank you all for the helpful replies, I greatly appreciate them.
I'm running out of the box ZTE Axon 7 A2017U with 6.0.1 Android. My goal is to install Magisk then eventually root so I can play Pokemon Go on the phone. Please advise on the next step? What are some of the safety precautions I should take? Thank you all very much!
I'm also planning on waiting until the next update [email protected]'s advice. Can anyone please explain to me the reasoning behind mh127's safety precautions? Thanks!
Click to expand...
Click to collapse
If you have copies of the stock images you will probably be able to fix your phone if something goes wrong and you want to go back to stock.
Not having these copies is like jumping out of a plane without a parachute and hoping you'll hit a haystack, without the pitchfork in it...
There are never any guarantees, every phone is different and as you are playing with important partitions there is a chance, generally through users fault, to brick your device...
Hello all,
Do we know if the "stock rom" @mh127 was talking about is available? Am I safe to proceed with the the magisk/root installation? Thanks!
projectseahorse said:
Hello all,
Do we know if the "stock rom" @mh127 was talking about is available? Am I safe to proceed with the the magisk/root installation? Thanks!
Click to expand...
Click to collapse
Well, the stock images have not been released for the B27 update, which would make it much easier to recover if something goes wrong. However, unofficial images are available (look around the forums). So at this point it is your call, just be careful.

Categories

Resources