[Q] Is it possible to root without losing all my data? - Samsung Galaxy Nexus

I've read much about rooting, but it always seems to come in conjuncture with going into recovery mode and invoking factory settings..
Is there a way that I could just get root access without losing all of my data?
Thanks!
[GSM Galaxy Nexus, Android 4.0.2]

aaagever said:
I've read much about rooting, but it always seems to come in conjuncture with going into recovery mode and invoking factory settings..
Is there a way that I could just get root access without losing all of my data?
Thanks!
[GSM Galaxy Nexus, Android 4.0.2]
Click to expand...
Click to collapse
Akaik the answer is no. Once you unlock the bootloader the device gets wiped.

Looks like CF-Root might be able to do the job..
aaagever said:
I've read much about rooting, but it always seems to come in conjuncture with going into recovery mode and invoking factory settings..
Is there a way that I could just get root access without losing all of my data?
Thanks!
[GSM Galaxy Nexus, Android 4.0.2]
Click to expand...
Click to collapse
Alright! I love answering myself!
I just found out the CF-Root doesn't wipe the phone.
http://forum.xda-developers.com/showthread.php?t=1396952
Because: "THIS IS NOT A ROM - it is only a modified kernel. You need to have the relevant firmware already on your device. You do NOT need to wipe anything for this patch."
I'll try it an let you all know

aaagever said:
Alright! I love answering myself!
I just found out the CF-Root doesn't wipe the phone.
http://forum.xda-developers.com/showthread.php?t=1396952
Because: "THIS IS NOT A ROM - it is only a modified kernel. You need to have the relevant firmware already on your device. You do NOT need to wipe anything for this patch."
I'll try it an let you all know
Click to expand...
Click to collapse
Nice work.

aaagever said:
Alright! I love answering myself!
I just found out the CF-Root doesn't wipe the phone.
http://forum.xda-developers.com/showthread.php?t=1396952
Because: "THIS IS NOT A ROM - it is only a modified kernel. You need to have the relevant firmware already on your device. You do NOT need to wipe anything for this patch."
I'll try it an let you all know
Click to expand...
Click to collapse
Rooting doesn't wipe your phone, unlocking your bootloader does.
Sent from my Galaxy Nexus using xda premium

joshnichols189 said:
Rooting doesn't wipe your phone, unlocking your bootloader does.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
That's what I thought.

joshnichols189 said:
Rooting doesn't wipe your phone, unlocking your bootloader does.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
So can I root without unlocking the bootloader?

aaagever said:
So can I root without unlocking the bootloader?
Click to expand...
Click to collapse
I don't think so. MAybe Josh knows????

aaagever said:
So can I root without unlocking the bootloader?
Click to expand...
Click to collapse
I doubt it: it's set up to do that because anyone can unlock it from fastboot and get full access to the phone, it's an attempt to prevent peeps getting access to the data on a stolen phone.

Related

Quick question

Is it possible to unlock the bootloader/root the GN on the stock rom, I know this can be done, however, will it cause any problems without a custom rom?
Yes it is possible. No it will not cause problems.
Sent from my Galaxy Nexus using xda premium
It will wipe your phone.
Sdcard partition too.
It'll wipe your phone, and if you change anything more than just rooting, you can't automatically update with an OTA.
nodstuff said:
It will wipe your phone.
Sdcard partition too.
Click to expand...
Click to collapse
So I'll need to reflash the stock rom? From my understanding only user data gets deleted.
biscuitownz said:
So I'll need to reflash the stock rom? From my understanding only user data gets deleted.
Click to expand...
Click to collapse
No your rom will be fine and yes its just user data, ALL user data.
Photos music etc!
But ya the rom will be fine!!
Since there's no 'SDCard' on the GNex, all your user data + pics + files + anything non-ROM will be wiped. What you will get after bootloader unlock will be the same as when you first turned your phone on.
Of course, this is IF you didn't buy your phone off Google Play. There are rumors that Google Play phones don't delete user data when bootloader unlocked.
Either way, here are the steps:
(1) use an exploit to root the phone without unlocking the bootloader
(2) use backup tools to save your apps + data + user data off the phone
(3) unlock the bootloader
(4) root the phone (again, with the same exploit in step 1)
(5) restore your phone from the backups you made in step 2
*NOTE* - you will still get OTA updates even after you've done the above steps, but you will probably lose root after each OTA update and will have to wait for a new exploit, if any, before you can root again.
biscuitownz said:
So I'll need to reflash the stock rom? From my understanding only user data gets deleted.
Click to expand...
Click to collapse
martonikaj said:
It'll wipe your phone, and if you change anything more than just rooting, you can't automatically update with an OTA.
Click to expand...
Click to collapse
Ahh..I see.
So once I'm rooted and do the OTA updates....does the root stay? Or I have to re-root it?
biscuitownz said:
Ahh..I see.
So once I'm rooted and do the OTA updates....does the root stay? Or I have to re-root it?
Click to expand...
Click to collapse
You have to re-root or use OTA root keeper from the play store.
nodstuff said:
You have to re-root or use OTA root keeper from the play store.
Click to expand...
Click to collapse
Oo ic. Thanks!

[Q] root w/out wipe out

is there a way to get root/jailbreak without full wipe out?
Jailbreak? What's that?
Sent from my Galaxy Nexus using xda premium
ÜBER™ said:
Jailbreak? What's that?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
you know what i mean )
a1exus said:
you know what i mean )
Click to expand...
Click to collapse
There is such a way, since i dont have the verizon nexus... i dont quite know where it is but im sure its a sticky in your android development. Or somebody with your phone will come in and post a link.. sorry just jerking your chain
ÜBER™ said:
There is such a way, since i dont have the verizon nexus... i dont quite know where it is but im sure its a sticky in your android development. Or somebody with your phone will come in and post a link.. sorry just jerking your chain
Click to expand...
Click to collapse
doesnt work on 4.0.4, only 4.0.2 i believe.
Wipe happens when you unlock your bootloader (which you have to do to flash root), and you can't unlock without wiping.
Swyped on my CM9 Galaxy Nexus
a1exus said:
is there a way to get root/jailbreak without full wipe out?
Click to expand...
Click to collapse
You can back up your stuff via adb, unlock (wipe), and then restore via adb. It'll take a while, but it will be like it was never wiped.
a1exus said:
is there a way to get root/jailbreak without full wipe out?
Click to expand...
Click to collapse
As was mentioned before:
a) if you are on 4.0.2 or 4.0.1, follow the instructions here to root. Then you can flash CWM, backup via that, and then unlock your bootloader.
b) if you are 4.0.4, follow the instructions here to backup, then unlock your bootloader by following the instructions here (you do not need to do steps 5-13 under part D if you only want to unlock your bootloader), and root by following part E in the same post.

Should I relock bootloader after root?

I have unlocked my gnex and rooted it.And then should I relock it?is there any difference whether relock it or not?thanks in advance
No difference just keep it open because if you ever have to reflash recovery or something you'll have to re unlock and that will wipe all data.
Sent From My Toro+ via White Tapatalk
I would read this...
http://forum.xda-developers.com/showthread.php?t=1898664
danger-rat said:
I would read this...
http://forum.xda-developers.com/showthread.php?t=1898664
Click to expand...
Click to collapse
so detail.thank you
The Play Store bought Galaxy Nexus doesn't even wipe when unlocking the bootloader, so there is no reason to bother relocking if that's what you have.
Sent from my Galaxy Nexus
andrewNY said:
The Play Store bought Galaxy Nexus doesn't even wipe when unlocking the bootloader, so there is no reason to bother relocking if that's what you have.
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
Seems like this shouldn't be true...
cwoggon said:
Seems like this shouldn't be true...
Click to expand...
Click to collapse
Agreed, but multiple users have reported this. I'm rather curious what's going on with those play store devices. It's hard to believe Google deliberately removed a crucial security feature. If unlocking the bootloader does not wipe userdata, everybody who's not using encryption is basically facing a security risk.
cwoggon said:
Seems like this shouldn't be true...
Click to expand...
Click to collapse
It's widespread enough to be true.
http://forum.xda-developers.com/showthread.php?t=1650830&page=22
Mach3.2 said:
It's widespread enough to be true.
http://forum.xda-developers.com/showthread.php?t=1650830&page=22
Click to expand...
Click to collapse
I was unaware, haven't been following the GNex forums for awhile. Seems like this could be a security issue...
My purpose to root is limited to supersu on the stock rom and xposed framework if possible. I do not want to flash any custom rom.
Is it possible to keep all DRM related functionalities with stock rom + root, with this method?

Will I be able to apply/receive software updates when root enabled?

Will I be able to apply/receive software updates when root enabled? I am worried that I won't be able to apply google updates once root enable, is this an issue? Is there a workaround?
Thanks!
Sent from my Nexus 7 using xda app-developers app
geocine said:
Will I be able to apply/receive software updates when root enabled? I am worried that I won't be able to apply google updates once root enable, is this an issue? Is there a workaround?
Click to expand...
Click to collapse
If you install the simple fix here:
http://forum.xda-developers.com/showthread.php?p=44597339#post44597339
You can install future OTAs successfully and keep root.
geocine said:
Will I be able to apply/receive software updates when root enabled? I am worried that I won't be able to apply google updates once root enable, is this an issue? Is there a workaround?
Thanks!
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Just rooting doesn't prevent updates. You just lose root and have to reapply after update.
Custom recovery means you probably need to download the update file and apply it via the recovery instead of the automatic updater.
Changing or removing system files will almost definitely prevent updates being applied.
Sent from my Nexus 7 using Tapatalk 2
gbroon said:
Just rooting doesn't prevent updates. You just lose root and have to reapply after update.
Click to expand...
Click to collapse
Actually I was surprised also, but SuperSU does prevent the OTA from completing successfully.
Read the referenced link.
http://forum.xda-developers.com/showthread.php?p=44597339#post44597339
I JUST did this. I had TWRP and rooted. I has 15J. Booted my nandroid. Downloaded the 15Q update, restarted to install. TWRP caught the stock image and flashed it.
Then I booted into 15Q. I lost root and TWRP. Flashed over TWRP through fastboot and rooted.
No issues.
Sent from my Nexus 7 using XDA Premium 4 mobile app
player911 said:
I JUST did this. I had TWRP and rooted. I has 15J. Booted my nandroid. Downloaded the 15Q update, restarted to install. TWRP caught the stock image and flashed it.
Click to expand...
Click to collapse
Are you rooted using SuperSU, what version, and can I examine the zip file.
Thanks guys, actually I haven't rooted this device yet. Because I am still reading on stuff here on xda how to do it the right way and the links you posted
Sent from my Nexus 7 using xda app-developers app
sfhub said:
If you install the simple fix here:
http://forum.xda-developers.com/showthread.php?p=44597339#post44597339
You can install future OTAs successfully and keep root.
Click to expand...
Click to collapse
hi sfhub, do I need to do
fastboot oem unlock
before doing
fastboot boot twrp.img ?
I've been rooted since day one and gotten ota updates fine.
I use twrp and just make sure to flash supersu each time and call it good. Not a single problem on my end.
Even still if you bork it just flash factory image. It's pretty simple to get out of a pinch. But rooting and ota should work fine as long as you keep stock image. Just reflash supersu each time and you're good to go.
Sent from my Nexus 7 using xda app-developers app
geocine said:
hi sfhub, do I need to do
fastboot oem unlock
before doing
fastboot boot twrp.img ?
Click to expand...
Click to collapse
If you aren't already unlocked then, yes.
Most people will already be unlocked though if they are rooted.
fastboot oem unlock process will force a factory reset for security purposes so backup anything important.
sfhub said:
If you aren't already unlocked then, yes.
Most people will already be unlocked though if they are rooted.
fastboot oem unlock process will force a factory reset for security purposes so backup anything important.
Click to expand...
Click to collapse
I haven't rooted my device yet , I am on all stock. Does 'fastboot boot' just loads the twrp image and not flash it?
How will I be able to backup stuff, are there any other options aside from titanium backup that requires root .
sent from flo
geocine said:
I haven't rooted my device yet , I am on all stock. Does 'fastboot boot' just loads the twrp image and not flash it?
Click to expand...
Click to collapse
Yes.
geocine said:
How will I be able to backup stuff, are there any other options aside from titanium backup that requires root .
Click to expand...
Click to collapse
There are some backup apps that don't need root, but probably need to restore.
You can also try adb backup, but it may not backup 100% of your stuff.
I'm not the best person to ask on the backup as I always unlock before I do most of the software installs just so I can avoid losing customizations later on.
sfhub said:
Yes.
There are some backup apps that don't need root, but probably need to restore.
You can also try adb backup, but it may not backup 100% of your stuff.
I'm not the best person to ask on the backup as I always unlock before I do most of the software installs just so I can avoid losing customizations later on.
Click to expand...
Click to collapse
Thanks, I am currently backing up using adb., a non 100% backup is better than no backup at all. I hate redoing things.
sfhub said:
Yes.
There are some backup apps that don't need root, but probably need to restore.
You can also try adb backup, but it may not backup 100% of your stuff.
I'm not the best person to ask on the backup as I always unlock before I do most of the software installs just so I can avoid losing customizations later on.
Click to expand...
Click to collapse
While we are it, I just want to ask if it is also possible to bring back the bootloader to a locked state. thanks.
geocine said:
While we are it, I just want to ask if it is also possible to bring back the bootloader to a locked state. thanks.
Click to expand...
Click to collapse
Yes, very simple, just type
fastboot oem lock
I would advise against doing so unless you plan to return the unit though, as if you ever need to do stuff to your system (even factory restore) then you'd need to unlock again, which would factory reset again.
sfhub said:
If you install the simple fix here:
http://forum.xda-developers.com/showthread.php?p=44597339#post44597339
You can install future OTAs successfully and keep root.
Click to expand...
Click to collapse
Here is a post from sfhub
Sent from my Nexus 7 using xda app-developers app
geocine said:
Here is a post from sfhub
Click to expand...
Click to collapse
BTW the author of SuperSU recently implemented the change I made so starting in v1.55 the separate fix is no longer necessary.
sfhub said:
BTW the author of SuperSU recently implemented the change I made so starting in v1.55 the separate fix is no longer necessary.
Click to expand...
Click to collapse
The 1.55 update doesn't appear to want to install properly for me from Google Play. Is this an issue of having the OTA fix installed?
Nevermind...i guess i needed to reboot...but, this does beg the question, is there anything related to the OTA fix that needs to be "uninstalled" in general?
The Holocron said:
Nevermind...i guess i needed to reboot...but, this does beg the question, is there anything related to the OTA fix that needs to be "uninstalled" in general?
Click to expand...
Click to collapse
No, there is nothing to uninstall. It is very clean.
sfhub said:
BTW the author of SuperSU recently implemented the change I made so starting in v1.55 the separate fix is no longer necessary.
Click to expand...
Click to collapse
Is there anything I should do if I already have your fix installed?
Sent from my Nexus 7 using xda app-developers app

locking bootloader? Android 8

I went into super su and unrooted my phone. Can I lock my bootloader now or is this a bad idea?
corster88 said:
I went into super su and unrooted my phone. Can I lock my bootloader now or is this a bad idea?
Click to expand...
Click to collapse
Bad idea. Next update might fail from left over stuff from root or a mod...then you are done.
TonikJDK said:
Bad idea. Next update might fail from left over stuff from root or a mod...then you are done.
Click to expand...
Click to collapse
Whats the solution?
corster88 said:
Whats the solution?
Click to expand...
Click to collapse
The solution (I think) would be to wipe data and flash the entire stock image for your phone, then re-lock the bootloader. This will make sure that any folders/files pertaining to being rooted are gone and shouldn't cause any problems when it comes to validating your OS. Just make sure you properly unrooted SU by using their uninstaller/unroot tool before wiping and reflashing.
corster88 said:
Whats the solution?
Click to expand...
Click to collapse
LeMoise said:
The solution (I think) would be to wipe data and flash the entire stock image for your phone, then re-lock the bootloader. This will make sure that any folders/files pertaining to being rooted are gone and shouldn't cause any problems when it comes to validating your OS. Just make sure you properly unrooted SU by using their uninstaller/unroot tool before wiping and reflashing.
Click to expand...
Click to collapse
Yes run flashall unless you are extremely brave. I used to lock and unlock my nexus 6 bootloader with custom firmwares but this phone is a completely different animal
corster88 said:
I went into super su and unrooted my phone. Can I lock my bootloader now or is this a bad idea?
Click to expand...
Click to collapse
Flash. all to both slots and be sure to include -w
Out of curiosity, why do you even wish to lock the bootloader? Especially with the numerous horror stories of users unable to resurrect a bootlooping device (rather simple to fix if unlocked) because their bootloader is locked.
Pain-N-Panic said:
Out of curiosity, why do you even wish to lock the bootloader? Especially with the numerous horror stories of users unable to resurrect a bootlooping device (rather simple to fix if unlocked) because their bootloader is locked.
Click to expand...
Click to collapse
Android pay? I know I miss it.
poor2rican1 said:
Android pay? I know I miss it.
Click to expand...
Click to collapse
Isn't there a way to get Android pay working with su hide and magisk?
corster88 said:
I went into super su and unrooted my phone. Can I lock my bootloader now or is this a bad idea?
Click to expand...
Click to collapse
Locking the bootloader is always a bad idea if you have to ask if it's a bad idea.
poor2rican1 said:
Android pay? I know I miss it.
Click to expand...
Click to collapse
Flash a custom kernel.
Sent from my Pixel C using Tapatalk
Bryanx86 said:
Flash. all to both slots and be sure to include -w
Click to expand...
Click to collapse
I'm nub. What do you mean?
Ok I flashed to stock can I lock now?
corster88 said:
Ok I flashed to stock can I lock now?
Click to expand...
Click to collapse
Just an FYI, here's someone that locked their bl. Only 2 reasons I can see this as necessary is RMA, and Android pay. And Android pay works with magisk, so really only one reason. Just be sure to know what you're doing. https://forum.xda-developers.com/pixel-xl/help/pixel-xl-bricked-bootloader-locked-t3698638/page2

Categories

Resources