rooting the stock rom without wiping data. - Samsung Galaxy Nexus

hi, is there a way to root a stock galaxy nexus without the need of wiping the phone?
should I unlock the bootloader to root the phone?

when you unlock the bootloader it will wipe your phone data. its a security measure.

sblantipodi said:
hi, is there a way to root a stock galaxy nexus without the need of wiping the phone?
should I unlock the bootloader to root the phone?
Click to expand...
Click to collapse
4.0.1-4.0.2: yes via exploit.
4.0.4: no.

http://forum.xda-developers.com/showthread.php?t=1420351

Related

[Q] rooting erases the phone?

ive read in some other posts here that rooting our gsm gnexus will erase the phones data/settings/etc. because it is an "oem root". is this true? does it apply to the gnex toolkit?
thanks!
joshtb86 said:
ive read in some other posts here that rooting our gsm gnexus will erase the phones data/settings/etc. because it is an "oem root". is this true? does it apply to the gnex toolkit?
thanks!
Click to expand...
Click to collapse
Rooting does not erase data/settings. HOWEVER, if you unlock your bootloader, it will erase everything. All toolkits that I have seen, root by unlocking your bootloader first (if it is locked).
Use this, and you will root without losing anything, locked bootloader or not.
efrant said:
Rooting does not erase data/settings. HOWEVER, if you unlock your bootloader, it will erase everything. All toolkits that I have seen, root by unlocking your bootloader first (if it is locked).
Use this, and you will root without losing anything, locked bootloader or not.
Click to expand...
Click to collapse
why does unlocking the bootloader erase everything? and that is necessary to flash a new rom or kernel, correct?
joshtb86 said:
why does unlocking the bootloader erase everything? and that is necessary to flash a new rom or kernel, correct?
Click to expand...
Click to collapse
Because it just does. It's a security thing. But it doesn't matter - with what I pointed you to in my previous post, you can root, flash a custom recovery, backup everything, then unlock your bootloader and restore the backup.
An unlocked bootloader is not required to flash a new ROM or kernel if you have root. You cannot, however, flash things through fastboot, but it doesn't matter.
In any case, I would recommend you unlock your bootloader and leave it unlocked.
joshtb86 said:
why does unlocking the bootloader erase everything?
Click to expand...
Click to collapse
security reason...if you have a phone with the bootloader locked and a lockscreen password, ur phone is secure (EDIT: usb debug need to be disabled to be real secure)...so if u lost the phone for example someone could unlock the bootloader and with root permission could get ur personal data..instead in this way if he unlock the bootloader the data in it is wiped..
with the bootloader unlocked ur phone give u free access to the system, so u can root it, flash rom, kernel and everything
in case a day u change idea, u can also relock the bootloader (this will wipe again ur phone EDIT: will not wipe it)..this is usefull to get warranty for example
there is also an exploit, mentioned before in the thread, that is able to root ur phone without unlocking the bootloader..but i suggest to unlock the bootloader as u have more control of ur phone by having access to fastboot commands
thanks for the help guys! i have to figure out if i really want to wipe all my data. if i use titanium to backup everything, then unlock bootloader, can i still restore the same backed up data, or does the changed bootloader make that impossible?
andQlimax said:
security reason...if you have a phone with the bootloader locked and a lockscreen password, ur phone is secure...
Click to expand...
Click to collapse
Not entirely true. You need to have USB debugging disabled in settings as well for it to be secure.
andQlimax said:
in case a day u change idea, u can also relock the bootloader (this will wipe again ur phone)..this is usefull to get warranty for example
Click to expand...
Click to collapse
Not true. Relocking the bootloader does not wipe anything.
---------- Post added at 11:21 AM ---------- Previous post was at 11:17 AM ----------
joshtb86 said:
thanks for the help guys! i have to figure out if i really want to wipe all my data. if i use titanium to backup everything, then unlock bootloader, can i still restore the same backed up data, or does the changed bootloader make that impossible?
Click to expand...
Click to collapse
You do NOT have to wipe all your data.
Follow these steps:
1) Root your device using the method I linked to above;
2) Download ROM Manager from the market;
3) Using ROM Manager, flash CWM recovery;
4) Reboot into recovery and perform a backup;
5) Copy that backup OFF of your device;
6) Unlock your bootloader; <== This will wipe your device, including everything in /sdcard...
7) Copy your backup back to your device;
8) Reboot into recovery and restore your backup;
9) Done. Now your bootloader is unlocked, you have root, and your data/settings are exactly how they were before.
EDIT: Yes, you can use Titanium Backup once you root, but using CWM recovery is easier and faster.
efrant said:
Not entirely true. You need to have USB debugging disabled in settings as well for it to be secure.
Click to expand...
Click to collapse
yeah true
efrant said:
Not true. Relocking the bootloader does not wipe anything.
Click to expand...
Click to collapse
didn't know that..it makes sense anyway
thanks for the corrections
so the bootloader is not affected by a CWM backup.
this is so helpful. thanks so much guys! i thanked both of you for your replies!
joshtb86 said:
[snip]
so the bootloader is not affected by a CWM backup.
Click to expand...
Click to collapse
No, it is not.
Always root the first day to avoid this!

[Q] Restoring root

I forgot to backup my root access on Voodoo OTA RootKeeper before doing the update to 4.0.4. In version 4.0.2 I had root access, but with locked bootloader. So I have two questions:
There is an option to restore the root access without unlock the bootloader?
There is an option to copy the files of those who made up the root access backup in 4.0.2 to put in backup place of Voodoo RootKeeper OTA (don't know which is the location) and restoring the root access?
Thanks
RicardoSul said:
I forgot to backup my root access on Voodoo OTA RootKeeper before doing the update to 4.0.4. In version 4.0.2 I had root access, but with locked bootloader. So I have two questions:
There is an option to restore the root access without unlock the bootloader?
There is an option to copy the files of those who made up the root access backup in 4.0.2 to put in backup place of Voodoo RootKeeper OTA (don't know which is the location) and restoring the root access?
Thanks
Click to expand...
Click to collapse
With a locked bootloader: no and no.
Sent from my Galaxy Nexus using Tapatalk 2
but it's extremely easy to unlock it, root it, then re-lock it
ahmad.afef said:
but it's extremely easy to unlock it, root it, then re-lock it
Click to expand...
Click to collapse
Yeah, but unlocking wipes all your data, including /sdcard
Sent from my Galaxy Nexus using Tapatalk 2
back it up!
ahmad.afef said:
but it's extremely easy to unlock it, root it, then re-lock it
Click to expand...
Click to collapse
I know that and the procedure, but I have to wipe data =/
I will wait for a new way to root without unlock the bootloader, if it is possible
I hope you find a way
but for me i'd do it the hard way
looks faster for me
ahmad.afef said:
I hope you find a way
but for me i'd do it the hard way
looks faster for me
Click to expand...
Click to collapse
I'm with IMM76I 4.0.4, if a new update rolling out and the update does not appear I'll unlock the bootloader

[Q] Can I pull/push system files without being root?

My bootloader is locked so I can't boot an insecure boot.img and run adb root, without unlocking it and loosing all my data. Is there any other way to pull and push system files?
i believe you can pull, but cannot push.
i'm not a 100% on that however.
Zepius said:
i believe you can pull, but cannot push.
i'm not a 100% on that however.
Click to expand...
Click to collapse
I need to edit /data/data/com.android.providers.contacts/databases/contacts2.db in order to enable Facebook contacts sync. I can confirm that pull doesn't work.
Can you confirm that I need to unlock and thus loose all my data to apply this hack?
if you need root, you will have to unlock the bootloader and that will trigger a data wipe (including contents on your /sdcard/)
Gremo said:
My bootloader is locked so I can't boot an insecure boot.img and run adb root, without unlocking it and loosing all my data. Is there any other way to pull and push system files?
Click to expand...
Click to collapse
You can try rooting without unlocking the bootloader using this exploit:
http://forum.xda-developers.com/showthread.php?t=1894717
Once rooted, you can use bootunlocker to unlock the bootloader without losing any data.
strumcat said:
You can try rooting without unlocking the bootloader using this exploit:
http://forum.xda-developers.com/showthread.php?t=1894717
Once rooted, you can use bootunlocker to unlock the bootloader without losing any data.
Click to expand...
Click to collapse
According to his signature he's on JB 4.1.2 so I don't think that exploit will work
3rdstring said:
According to his signature he's on JB 4.1.2 so I don't think that exploit will work
Click to expand...
Click to collapse
OK, thanks. I'm using Tapatalk and can't see signatures, etc.

Savest way to root already unblocked nexus without wiping

Hello guys!
My girlfriend lost her emulated_sd card partion on her nexus galaxy.
Im trieing to recover the data with the help of this thread: http://forum.xda-developers.com/showthread.php?t=1994705
Therefore I need Root, which needs an Unblocked Bootloader.
To Unblock the bootloader without wiping data I did this: http://forum.xda-developers.com/showthread.php?t=2016628 and it worked brilliant! Wuhu!
Now, so I dont dail after hours, my question:
Whats now the safest way too root? I dont wont to use any toolkits I am not sure about that they dont wipe data in the attempt to root.
In my understanding its now, with unlocked bootloader, possible to root without wiping data right?
Thank you very much!
Just flash the latest SuperSU ZIP in recovery: http://download.chainfire.eu/supersu
Sent from Google Nexus 4 @ CM11
Thank you very much AndyYan!!
I managed it with GNext Toolkit.
She is realy hoping to see her data recovered!

Nexus 5X, Root + BusyBox

Hi, I'm wondering if it´s possible to root my Nexus 5X and install BusyBox without loosing my data
Every guide I've read so far you always end up with loosing your data.
swe-trojan said:
Hi, I'm wondering if it´s possible to root my Nexus 5X and install BusyBox without loosing my data
Every guide I've read so far you always end up with loosing your data.
Click to expand...
Click to collapse
If you have already unlocked the bootloader, yes. Download SuperSU, fastboot flash TWRP and install root.
If bootloader locked, no. You'll have to do something like adb backup then unlock the bootloader.
Sent from my Nexus 5X using Tapatalk

Categories

Resources