Easy pre-root backup with adb - Thunderbolt Android Development

Nandroid is just a script. Rooting is another topic. This is to allow you to backup your data before you root. It's simple, fast and easy.
Download http://www.multiupload.com/K4BZ22SIT5
Clear the data for Google apps, and system components such as Browser, to prevent force closes during restore.
If you skip this step, at the end of the guide clear dalvik, fix permissions, and clear the data for the items that keep closing.
adb push psneuter /data/local/psneuter
adb shell chmod 777 /data/local/psneuter
adb shell /data/local/psneuter
adb shell dd if=/dev/block/mmcblk0p26 of=/sdcard/data.img
Your data is now backed up. Sdcard apps will still be on your sdcard, and cache and dalvik need to be cleared anyway. System apps will be replaced and the settings for them is already included in data. In short, you only really need data.
Root your device. After you have rooted, updated, and are on the stock rooted build (before a custom rom for best compatibility), restore your data.
adb shell dd if=/sdcard/data.img of=/dev/block/mmcblk0p26
Now do a titanium backup if you plan to install a ROM that wipes data, install whatever ROM you planned, and restore titanium (if needed).
Sent from my ADR6400L using Tapatalk

Thanks. I'm always amazed at the ideas you come up with. Getting ready to try out ubuntu on the bolt.
Sent from my ADR6400L using XDA App

Thanks, I have been hoping for something like this.

You are basically doing a temp root, right? Genius. Would it be possible to then push/install a backup program (mybackup pro, Titanium, etc) and run it? I guess you would also need to get superuser in first.

tsachi said:
You are basically doing a temp root, right? Genius. Would it be possible to then push/install a backup program (mybackup pro, Titanium, etc) and run it? I guess you would also need to get superuser in first.
Click to expand...
Click to collapse
It is possible, but in actually attempting to install Titanium during the process, I spent 15 minutes doing the temp root and this backup, 4 hours playing with su binaries and superuser apps without getting any combination to play nice, 10 minutes rooting and 20 minutes restoring this backup. It is all about efficiency...

so if I'm reading this right, this will allow restoring of data for games? That's the only thing keeping my wife from rooting.

Yes. You can re install the apps, then restore data files manually after root.
My wife is the same, won't root of I can't restore things after
nrfitchett4 said:
so if I'm reading this right, this will allow restoring of data for games? That's the only thing keeping my wife from rooting.
Click to expand...
Click to collapse
Sent from a gingerbread thunderbolt

True
twistedumbrella said:
It is possible, but in actually attempting to install Titanium during the process, I spent 15 minutes doing the temp root and this backup, 4 hours playing with su binaries and superuser apps without getting any combination to play nice, 10 minutes rooting and 20 minutes restoring this backup. It is all about efficiency...
Click to expand...
Click to collapse
Sent from a gingerbread thunderbolt

tsachi said:
Yes. You can re install the apps, then restore data files manually after root.
My wife is the same, won't root of I can't restore things after
Sent from a gingerbread thunderbolt
Click to expand...
Click to collapse
ok, so do the backup, root, reinstall her games, etc (nothing system), then use adb to restore data.
Makes complete sense as long as I don't think about it too hard...

nrfitchett4 said:
so if I'm reading this right, this will allow restoring of data for games? That's the only thing keeping my wife from rooting.
Click to expand...
Click to collapse
Same with my friend, until he lost signal while I was at 3 bars and he got sick of the battery life
nrfitchett4 said:
ok, so do the backup, root, reinstall her games, etc (nothing system), then use adb to restore data.
Makes complete sense as long as I don't think about it too hard...
Click to expand...
Click to collapse
Don't reinstall anything. Just clear out data for generic system apps (because his browser and gapps force closed until we did) backup, root, restore. The games are in the backup.
And yes, the ScriptFusion AutoBot already has this capability built in. When it detects you don't have root, it will perform the backup, and when you return after rooting it will restore it. It is actually about two steps away from being able to root a phone. Should be capable later this week.
Sent from my ADR6400L using Tapatalk

Almost done building an app to walk you through the entire root with backup process.
Sent from my ADR6400L using Tapatalk

From a similar thread quoted by jcase:
I advise against using this backup method, taking a DD of /data while its r/w can lead to corruption.
A better idea would be to push su (aka a temp root) into your path and use something like titanium backup to backup you data.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1174487

yareally said:
From a similar thread quoted by jcase:
http://forum.xda-developers.com/showthread.php?t=1174487
Click to expand...
Click to collapse
Yeah, thanks. That is there for people who don't think to walk away during the process and not cause data to be changed until it finishes, which is the real risk. As stated, this was tested. You are more than welcome to add additional findings, but EVERYTHING can risk corruption. You are playing with the bootloader, which could cause a brick... Did you root anyway? There ya go...
As for the app, that actually does a temp root with su included, which is actually a whitelist temp root (psneuter already gave you a temp root) and offers the chance to perform a backup before proceeding, either with dd or titanium.
Sent from my ADR6400L using Tapatalk

twistedumbrella said:
Yeah, thanks. That is there for people who don't think to walk away during the process and not cause data to be changed until it finishes, which is the real risk. As stated, this was tested. You are more than welcome to add additional findings, but EVERYTHING can risk corruption. You are playing with the bootloader, which could cause a brick... Did you root anyway? There ya go...
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
Yeah, I don't see the problem in doing what you were trying either, just wanted to bring it up . I would probably back it up outside of the booted OS area though just to be safe, like in recovery where can access adb still. Not sure if you can in hboot offhand though.

yareally said:
Yeah, I don't see the problem in doing what you were trying either, just wanted to bring it up . I would probably back it up outside of the booted OS area though just to be safe, like in recovery where can access adb still. Not sure if you can in hboot offhand though.
Click to expand...
Click to collapse
You would need root to root in recovery, which is a slight problem.
Sent from my ADR6400L using Tapatalk

twistedumbrella said:
You would need root to root in recovery, which is a slight problem.
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
That's why I mentioned hboot (the bootloader) as well, which you wouldnt need to, though I am not sure if adb detects the device in hboot. Not at a computer, so I can't try at the moment. Please don't half read what I write. I would like to try to help out if possible.

yareally said:
That's why I mentioned hboot (the bootloader) as well, which you wouldnt need to, though I am not sure if adb detects the device in hboot. Not at a computer, so I can't try at the moment. Please don't half read what I write. I would like to try to help out if possible.
Click to expand...
Click to collapse
Wow, lol. Well I don't quite understand what you mean "which you wouldn't need to". I read the full comment, but tried to bypass the parts that showed complete lack of understanding as to why rooting is done the way it is, but since you called me out on it... The device detects usb in fastboot, but cannot flash a radio there due to s-on. It detects in recovery due to modifications to the image that require the capability to flash modified images. The temp root works like my script, in that it tricks the system into believing it is unlocked, while other things are done to allow it to be truly unlocked, at which time a replacement image is loaded. Help me help you by at least researching the process before trying to alter it. Thanks.
Sent from my ADR6400L using Tapatalk

twistedumbrella said:
Wow, lol. Well I don't quite understand what you mean "which you wouldn't need to". I read the full comment, but tried to bypass the parts that showed complete lack of understanding as to why rooting is done the way it is, but since you called me out on it... The device detects usb in fastboot, but cannot flash a radio there due to s-on. It detects in recovery due to modifications to the image that require the capability to flash modified images. The temp root works like my script, in that it tricks the system into believing it is unlocked, while other things are done to allow it to be truly unlocked, at which time a replacement image is loaded. Help me help you by at least researching the process before trying to alter it. Thanks.
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
Eh, call me out, i dont care, it's just the internet and it's not the first or the last time I will be incorrect.
You are right though after trying in the bootloader myself. I only meant to do the datadump part, nothing else outside the os area.

yareally said:
Eh, call me out, i dont care, it's just the internet and it's not the first or the last time I will be incorrect.
You are right though after trying in the bootloader myself. I only meant to do the datadump part, nothing else outside the os area.
Click to expand...
Click to collapse
twistedumbrella said:
I read the full comment, but tried to bypass the parts that showed complete lack of understanding as to why rooting is done the way it is, but since you called me out on it...
Click to expand...
Click to collapse
yareally said:
Please don't half read what I write.
Click to expand...
Click to collapse
Sent from my ADR6400L using Tapatalk

twistedumbrella said:
Almost done building an app to walk you through the entire root with backup process.
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
How is this coming along?

Related

[Q] Rooting Continuum with new Froya upgrade

I was waiting to root my continuum until I got the new upgrade, which I expected months ago. Anyway I got the upgrade (froyo 2.2) and everything works great. I would like to root the phone, so I can tether it to my laptop.
I have seen older videos for other phones, but I was not sure they would work for the continuum, or if there is a newer easier way, as I am not tech savvy. I just want to work on my laptop as I run my kids to their after school activities.
Finally, which app works best for turning the phone into a hotspot.
Thanks in advance
The easiest way is to find superoneclick 2.3.3 That roots, nothing else.
The slightly more complicated way, is to flash a rooted version in Odin. And there are tutorials all over. You can also swing into IRC, and we can get ya going.
webchat.freenode.net
#samsung-continuum
Or....manual root
Sent from my SCH-I400 using Tapatalk
rooting problem
I was originally having problems tethering, but I figured it out. Too bad there is not an option for deleting posts, but I am excited that I can now tether.
abby_nitewolf said:
Or....manual root
Sent from my SCH-I400 using Tapatalk
Click to expand...
Click to collapse
How is that done? I've dabled with Linux on my PC so I'm familiar enough to be dangerous, but this question has been bugging me for a while now.
LGartrell said:
How is that done? I've dabled with Linux on my PC so I'm familiar enough to be dangerous, but this question has been bugging me for a while now.
Click to expand...
Click to collapse
adb devices
adb push psneuter /data/local/tmp
adb shell
$ cd /data/local/tmp
$ chmod 777 psneuter
$ ./psneuter
adb kill-server
adb devices
# mount -o remount,rw -t rfs /dev/block/st19 /system
# exit
adb push busybox /system/bin
adb push su /system/bin
adb install Superuser.apk
adb shell
# chmod 4755 /system/bin/busybox
# chmod 4755 /system/bin/su
# mount -o remount,ro -t rfs /dev/block/st19 /system
# exit
adbreboot
There you go, you need a few files:
psneuter
su
busybox
Superuser.apk
Adb
But its easier and faster with SuperOneClick,
Sent from my SCH-I400 using Tapatalk
The kernel I included with the CWM recovery file will install the su binary for you. Get busybox and then install Superuser from the market and you'll be rooted.
Sent from my Galaxy Nexus
imnuts said:
The kernel I included with the CWM recovery file will install the such binary for you. Get busybox and then install Superuser from the market and you'll be rooted.
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
Thanks. I've been playing with my Continuum now for several months with everyone's mods. Love the work you're all doing!
Question about installing ClockworkMod Recovery on Continuum.
Hi,
I am trying to figure out which version of CWM recovery is the appropriate, and most recent one for the continuum.
Can anyone point me to the correct file for the Samsung Continuum SCH-i-400.
Also, after I root the phone, how do I install CWM. Should I use a ROM manager, or do it manually?
Someone please help.
Thank you!!
You should try reading through the forums. I believe there is a thread that will have all necessary files.
Sent from my SCH-I400 using XDA
I used imnuts froyo rom.flashed with no problem.its not 100% stable,but it got the job done.
Sent from my SCH-I400 using Xparent ICS Blue Tapatalk 2
I figured I'd post in this thread instead of making a new one since it seems to be a similar issue. I rooted my phone ages ago right when I got it using the super one click program. Everything was working fine as far as I could tell, until I had a app on my phone tell me that it wasn't in fact rooted. I assume it was because my phone updated to 2.2.2 by it self one evening causing me to lose root. I checked with a few other apps that used to work fine (Titatium Back being one of them) which also told me my phone wasn't rooted.
I downloaded the newest version of SuperOneClick (2.3.3) and tried to re-root my phone. The program said my phone was already rooted and asked if I wanted to continue. I clicked no and then tried the 'Unroot' option. The program hung up and stopped responding so I did a factory reset and tried again. When I tried to root it again the program still said my phone was rooted and Superuser was still in my app list with no option to uninstall. I went to the market to try and uninstall that way but there wasn't an option either. I tried the un-root option again and SOC still would ended up not responding at a certain point (Installing BusyBox Step 2).
I pulled my battery and just tried to root again, it gets to the point of installing Superuser and freezes. I tried downloading an uninstall root app which didn't even show superuser. I also downloaded root explorer and tried to delete the superuser.apk from the system/apps folder and it failed to DL.
I am at a loss for what to do and would really appreciate any help in getting my phone rooted. I am in USB debugging and never installed any ROMS or anything previously. If there is any other information that would help troubleshooting this please let me know.
Vsoup25 said:
I figured I'd post in this thread instead of making a new one since it seems to be a similar issue. I rooted my phone ages ago right when I got it using the super one click program. Everything was working fine as far as I could tell, until I had a app on my phone tell me that it wasn't in fact rooted. I assume it was because my phone updated to 2.2.2 by it self one evening causing me to lose root. I checked with a few other apps that used to work fine (Titatium Back being one of them) which also told me my phone wasn't rooted.
I downloaded the newest version of SuperOneClick (2.3.3) and tried to re-root my phone. The program said my phone was already rooted and asked if I wanted to continue. I clicked no and then tried the 'Unroot' option. The program hung up and stopped responding so I did a factory reset and tried again. When I tried to root it again the program still said my phone was rooted and Superuser was still in my app list with no option to uninstall. I went to the market to try and uninstall that way but there wasn't an option either. I tried the un-root option again and SOC still would ended up not responding at a certain point (Installing BusyBox Step 2).
I pulled my battery and just tried to root again, it gets to the point of installing Superuser and freezes. I tried downloading an uninstall root app which didn't even show superuser. I also downloaded root explorer and tried to delete the superuser.apk from the system/apps folder and it failed to DL.
I am at a loss for what to do and would really appreciate any help in getting my phone rooted. I am in USB debugging and never installed any ROMS or anything previously. If there is any other information that would help troubleshooting this please let me know.
Click to expand...
Click to collapse
Here's the problem. SOC see's the superuser.apk in your app drawer, so it thinks you are still rooted. You aren't because you no longer have the su.bin (which is the reason none of the apps you have - including the 'unroot' app will work.). The fix for this is easy. When SOC says 'you are already rooted, would you like to root again', or whatever that message is, click yes. The worst thing that will happen is it will overwrite existing files with the same one (Have you ever opened a word document, and when you close it, it asks if you want to save, even though you haven't made any changes? Same thing). In this case, the files you need (su.bin and busybox) AREN'T there. So you don't even overwrite anything.
For the most part, rooting this phone is a pretty failsafe, and innocuous process. You can do it over and over again, and you won't hurt the phone in the slightest.
Txwolf1980 said:
Here's the problem. SOC see's the superuser.apk in your app drawer, so it thinks you are still rooted. You aren't because you no longer have the su.bin (which is the reason none of the apps you have - including the 'unroot' app will work.). The fix for this is easy. When SOC says 'you are already rooted, would you like to root again', or whatever that message is, click yes. The worst thing that will happen is it will overwrite existing files with the same one (Have you ever opened a word document, and when you close it, it asks if you want to save, even though you haven't made any changes? Same thing). In this case, the files you need (su.bin and busybox) AREN'T there. So you don't even overwrite anything.
For the most part, rooting this phone is a pretty failsafe, and innocuous process. You can do it over and over again, and you won't hurt the phone in the slightest.
Click to expand...
Click to collapse
Are there any other programs to use than SOC? When the dialog window pops up saying my phone is rooted I click yes, it goes through the process until it tries to install SuperUser. Once it get to that point it just freezes and is flagged as not responding by windows. Is there anything I should double check settings wise on my phone other than USB Debugging that could be causing the problem?
Vsoup25 said:
Are there any other programs to use than SOC? When the dialog window pops up saying my phone is rooted I click yes, it goes through the process until it tries to install SuperUser. Once it get to that point it just freezes and is flagged as not responding by windows. Is there anything I should double check settings wise on my phone other than USB Debugging that could be causing the problem?
Click to expand...
Click to collapse
As far as straight rooting programs, soc is the only one I know of that works. You said a factory reset didn't remove superuser from your app drawer? It should have. I spills try a factory reset in recovery, as opposed to the privacy section of settings.
The other option is to flash a pre rooted rom. A little more dangerous, if you don't know what you are doing, but gaurunteed to work. I have a territorial in this section that seems to with for everyone that's tried it. Our, if you want I can meet you in irc tomorrow evening, and we can look at it.
Sent from my SCH-I400 using Tapatalk 2
Txwolf1980 said:
As far as straight rooting programs, soc is the only one I know of that works. You said a factory reset didn't remove superuser from your app drawer? It should have. I spills try a factory reset in recovery, as opposed to the privacy section of settings.
The other option is to flash a pre rooted rom. A little more dangerous, if you don't know what you are doing, but gaurunteed to work. I have a territorial in this section that seems to with for everyone that's tried it. Our, if you want I can meet you in irc tomorrow evening, and we can look at it.
Sent from my SCH-I400 using Tapatalk 2
Click to expand...
Click to collapse
That's why I'm getting frustrated, after two factory resets through the privacy menu superuser is still in my app drawer. I think because it's flagged as a system file it isn't really touched when the phone restores it self. Are there any programs that would give me root folder access through my PC?
I really don't know much about doing anything with these phones, so I'd be a bit apprehensive about flashing new ROMs or anything that could brick my phone if I mess up. How can I reset it through the recovery menu? That at least sounds like something has a low chance of causing any irreparable damage.
I'm not sure if I think I'll be around later this evening, I'm on the east coast and don't think I'll be available until after 9pm.
Vsoup25 said:
That's why I'm getting frustrated, after two factory resets through the privacy menu superuser is still in my app drawer. I think because it's flagged as a system file it isn't really touched when the phone restores it self. Are there any programs that would give me root folder access through my PC?
I really don't know much about doing anything with these phones, so I'd be a bit apprehensive about flashing new ROMs or anything that could brick my phone if I mess up. How can I reset it through the recovery menu? That at least sounds like something has a low chance of causing any irreparable damage.
I'm not sure if I think I'll be around later this evening, I'm on the east coast and don't think I'll be available until after 9pm.
Click to expand...
Click to collapse
To reset in recovery, power down completely. Then hold the vol up, vol down, and power at the same time, until samsung logo comes up. It will color you into stock recovery (3e)
Using volume down to scroll, and camera button to select, choose wipe data/factory reset.
Next, scroll to yes, and select. Not sure if that will work to get rid of super user, but it's worth a shot.
If that direct with, let new knits, and I'll walk you through flashing a custom recovery, then a deodexed rom, if you'd like.
Sent from my SCH-I400 using Tapatalk 2
Txwolf1980 said:
To reset in recovery, power down completely. Then hold the vol up, vol down, and power at the same time, until samsung logo comes up. It will color you into stock recovery (3e)
Using volume down to scroll, and camera button to select, choose wipe data/factory reset.
Next, scroll to yes, and select. Not sure if that will work to get rid of super user, but it's worth a shot.
If that direct with, let new knits, and I'll walk you through flashing a custom recovery, then a deodexed rom, if you'd like.
Sent from my SCH-I400 using Tapatalk 2
Click to expand...
Click to collapse
I tried the wipe from the recovery menu to no luck, superuser is still in my app drawer. I'll probably have time tomorrow afternoon to jump on IRC. I really appreciate all your help so far, thank you.
Vsoup25 said:
I tried the wipe from the recovery menu to no luck, superuser is still in my app drawer. I'll probably have time tomorrow afternoon to jump on IRC. I really appreciate all your help so far, thank you.
Click to expand...
Click to collapse
I'll be around. Just pm me, when you know what time you will be on
Sent from my SCH-I400 using Tapatalk 2

[Q] Root without wiping?

Since I was smart and forgot to unlock my N7 before doing anything, I'm in a bit of a predicament. I don't want to wipe everything off my N7, I have game progress, lot of apps, etc. I looked in the dev forum, but didn't see anything. I just need a root to throw TiBu on there. Not sure if I missed it, misunderstood something, or if I'm boned and just have to deal with lost data or no root. This is my first nexus, and on other devices, there's always been root without wipe. Is that just something effort isn't put into on a nexus since unlock is so easy?
E_man5112 said:
Since I was smart and forgot to unlock my N7 before doing anything, I'm in a bit of a predicament. I don't want to wipe everything off my N7, I have game progress, lot of apps, etc. I looked in the dev forum, but didn't see anything. I just need a root to throw TiBu on there. Not sure if I missed it, misunderstood something, or if I'm boned and just have to deal with lost data or no root. This is my first nexus, and on other devices, there's always been root without wipe. Is that just something effort isn't put into on a nexus since unlock is so easy?
Click to expand...
Click to collapse
As far as I know, no, there isn't a way. To get CWM on the Nexus 7, you have to unlock the bootloader which deletes all user information for security purposes. I made the same mistake, but it didn't take too long to get it back to where it was (I mean, we only got them less than a week ago!).
Raikia said:
As far as I know, no, there isn't a way. To get CWM on the Nexus 7, you have to unlock the bootloader which deletes all user information for security purposes. I made the same mistake, but it didn't take too long to get it back to where it was (I mean, we only got them less than a week ago!).
Click to expand...
Click to collapse
Unfortunately, that's several hours of game data. Do other Nexi eventually get root without wipe?
Why can't you use Titanium Backup before and after?
rohandhruva said:
Why can't you use Titanium Backup before and after?
Click to expand...
Click to collapse
TiBU doesn't work on un-rooted devices.
gtalum said:
TiBU doesn't work on un-rooted devices.
Click to expand...
Click to collapse
OMG that was really silly of me. Sorry!
E_man5112 said:
Unfortunately, that's several hours of game data. Do other Nexi eventually get root without wipe?
Click to expand...
Click to collapse
Bootloader unlock without wipe only comes about via some kind of exploit/hack. Such discoveries are unpredictable.
The first one I saw for the GN was about a two months ago (though I won't pretend to have seen everything).
I suggest just biting the bullet now rather than waiting potentially months later.
Couldn't you just backup the /sdcard/Android folder that has some (if not all) of your game data? I'm a little rusty on my ADB commands but you might be able to pull it from the system partition, although I doubt it..
Sent from my SGH-T989D using xda premium
The "Nexus Root Toolkit" lets you back up before unlocking:
http://forum.xda-developers.com/showthread.php?t=1766475
Also, I believe you don't need root to run AirDroid (search the store).
I suppose you could see if any root exploits work to get root without unlocking the bootloader no harm in trying a few, use backup then unlock the bootloader. Not sure if any root exploits work with jellybean though.
Sent from my Transformer while the N7 is lost in the Play Store Black Hole.
16gb N7 UK ordered 3rd July.
tjupille said:
The "Nexus Root Toolkit" lets you back up before unlocking:
http://forum.xda-developers.com/showthread.php?t=1766475
Also, I believe you don't need root to run AirDroid (search the store).
Click to expand...
Click to collapse
Thanks, I thought the Toolkit only backed up sdcard data. I'll check them both out.
The toolkit did it, thanks a bunch!

Root Nexus 7 without erasing/losing data?

Hello, I have had my nexus 7 for about 2 days and have set everything up how I want it. From what I've read you can't root without erasing everything. If this is the case are there any apps that will back up my applications + app settings?
Thanks
dizzdiamonds said:
Hello, I have had my nexus 7 for about 2 days and have set everything up how I want it. From what I've read you can't root without erasing everything. If this is the case are there any apps that will back up my applications + app settings?
Thanks
Click to expand...
Click to collapse
titanium backup ftw
funkyboy1281 said:
titanium backup ftw
Click to expand...
Click to collapse
Thanks, I was under the assumption that TB only works on rooted devices. I will give it a shot anyways.
tb only does work on rooted devices.. u should of rooted it right out of box so u wouldnt have to erase anything
dizzdiamonds said:
Thanks, I was under the assumption that TB only works on rooted devices. I will give it a shot anyways.
Click to expand...
Click to collapse
probably would've helped if I actually read the question word for word...oops
dizzdiamonds said:
If this is the case are there any apps that will back up my applications + app settings?
Click to expand...
Click to collapse
You can backup most of your device with 'adb backup' before you do the unlock and then 'adb restore' it afterwards. It seems to miss certain things, like paid apps (or it did for me), so if those apps have options to dump config backups to /sdcard that would help in case you have to restore them.
movieaddict said:
tb only does work on rooted devices.. u should of rooted it right out of box so u wouldnt have to erase anything
Click to expand...
Click to collapse
Doh! I've made the same mistake as wel!
Harry GT-S5830 said:
ADB Backup & ADB Restore
Click to expand...
Click to collapse
Nvm, already posted.
It's not rooting that causes you the wipe, it's unlocking.
However no one has made a way to root without unlocking first.
So if someone figures out how to just root, it would be fine.
Cryingmoose said:
It's not rooting that causes you the wipe, it's unlocking.
However no one has made a way to root without unlocking first.
So if someone figures out how to just root, it would be fine.
Click to expand...
Click to collapse
So, I rooted my Nexus 7 a while back (using the Nexus Root Toolkit), then when Google pushed out the JB 4.1.2 Update, the root access vanished, should just clicking the root button re-root it without wiping everything?
hydroxyde said:
You can backup most of your device with 'adb backup' before you do the unlock and then 'adb restore' it afterwards. It seems to miss certain things, like paid apps (or it did for me), so if those apps have options to dump config backups to /sdcard that would help in case you have to restore them.
Click to expand...
Click to collapse
1. adb backup
2. unlock
3. adb restore
Or do I need to root as well and restore at last?
mgutt said:
1. adb backup
2. unlock
3. adb restore
Or do I need to root as well and restore at last?
Click to expand...
Click to collapse
Anybody answering?
I also have a Nexus 7 well setup and would like to understand how to root it without scratching data on it...
if eventually this could work, it would be great. SO, adb backup and then adb restore after unlocking?:crying:
1. adb backup
2. unlock
3. adb restore
Or do I need to root as well and restore at last?
Click to expand...
Click to collapse
It doesn't matter.
Unlocking is what erases the data, what you do afterwards doesn't make any difference.
But since you're already hooking up N7 to PC and booting it in all these weird modes, you might as well finish what you start.
I also have a Nexus 7 well setup and would like to understand how to root it without scratching data on it...
if eventually this could work, it would be great. SO, adb backup and then adb restore after unlocking?
Click to expand...
Click to collapse
You can't unlock the bootloader without erasing data.
You can use adb backup, but I just manually backed up what I needed (launcher settings, apps are downloaded automatically from play store, 'sd card' stuff, you don't really need anything else.) Besides, you're gonna be playing with all the settings all the time anyway for next couple of weeks , it doesn't really matter if they get erased.
Ramstein said:
Anybody answering?
I also have a Nexus 7 well setup and would like to understand how to root it without scratching data on it...
if eventually this could work, it would be great. SO, adb backup and then adb restore after unlocking?:crying:
Click to expand...
Click to collapse
I did that and it worked. I wanted the savegame of Final Fantasy III that is located in data/data/... after restoring the data the Nexus was still unlocked.

Is there a stock (ROM) root method that will not require me to reset all my settings?

I'm sorry if this has been posted already, but searching on my phone for this answer has been less than ideal, so I've resorted to making a post. I'm hoping someone can link me to a thread that has this available.
I'm looking to root my phone, but I've already got it setup the way I like and I really don't want to go through the hassle of getting everything all ironed out again. So here is what I'm looking for:
1. Root the phone while remaining with the stock N4 ROM.
2. Don't need to "reformat" my phone or start from scratch.
3. Just to clarify 2, I want to keep the phone the way it is now, but just gain root access so I can take advantage of some apps that require it such as the Sixaxxis app for the PS3 controller and Titanium Backup.
4. Still will receive OTA updates without breaking root.
As of now I have no desire to go after any custom ROMs until I find some added functionality that I really see being useful that also doesn't break other features of my phone. So I'm really waiting on development to mature a bit more for this device before even considering something custom.
Thanks to anyone who can offer some help.
1. Root the phone while remaining with the stock N4 ROM.
Click to expand...
Click to collapse
Rooting doesn't touch your ROM, so you're still in stock.
2. Don't need to "reformat" my phone or start from scratch.
3. Just to clarify 2, I want to keep the phone the way it is now, but just gain root access so I can take advantage of some apps that require it such as the Sixaxxis app for the PS3 controller and Titanium Backup
Click to expand...
Click to collapse
Most, if not all, rooting methods have boot-loader unlocking as a prerequisite.
Unlocking boot-loader will wipe your phone. There is no alternative.
On the bright side, you can make a backup of your system, unlock boot-loader, restore your system, then root the phone.
4. Still will receive OTA updates without breaking root.
Click to expand...
Click to collapse
As long as you don't flash customer recovery, you're fine.
What are my backup alternatives then to keep all those settings? I've only ever rooted one device before and I thought Titanium Backup (which requires root) was one of the only backup methods for this sort of thing? Or is there something I'm missing?
there is one backup that the app has a picture of one of those hula hoops use for saving people from drowning...
My backup pro.
I'd try this way. Backup whole ROM in custom recovery and if needed restore via app extractor (found on market)
Sent from my Nexus 4 using xda premium
The guide stickied in this section is relevant to your interests.
Adb backup...
Unlock.
Restore...and it'll be like you never touched anything.
MattSkeet said:
My backup pro.
I'd try this way. Backup whole ROM in custom recovery and if needed restore via app extractor (found on market)
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
How exactly is he going to backup the ROM in custom recovery.. if he is still bootloader locked?
ADB backup will backup your settings without being rooted.
OK thanks, I'll give that a try.

A solution for all those affected by the ,,forgot pattern'' bug

Finally, i have solved it !!! A couple of days ago, i forgot my pattern and clicked on forgot pattern, but i didn't get a prompt to turn on wifi. So basically, i was stuck, unless i wanted to do a factory reset and lose all of my data. Here's my unique solution to this problem, :
First of all, you need to be rooted and to have usb debugging ON. Otherwise, it won't work.
Second, you need to install wug's nexus toolkit, because it gives you an option to boot with a modified boot.img which has root privileges, go to advanced, you'll see it (if you know of any other way to boot up such an image, use it, because when you get locked out with the ,,forgot pattern'', your root won't work, that's why you need this boot image).
Here's what i did:
First, i booted the modified boot image and by using either adb or the toolkit, i pulled /data/data and /data/app to my pc.
Second, I made a full wipe and set up my N7 as usual. At this point, you need a good root file explorer in order to get to the /data folder. I installed colornote (from the app backup i made, because i wan't sure that there was a new version and,if there was, it could be a possible failure, because i wasn't sure how it would behave with the last version's data) and rebooted (in order for colornote to get into the dalvik cache).
Third, i opened up colornote's folder in /data/data and just replaced the databases folder with the one from my backup and i went to /data/dalvik-cache and deleted the corresponding color note dalvik file. Afterwards, i just rebooted and voila, all my stuff that i had written in color note was staring at me.
Now, i want to mention that i've only tried this with colornote (as it was my foremost priority to get to the essays that were stored there) and i've tried this on only 4.1.2. I can't guarantee that it will work on other apps or that you won't get damage to your precious Nexus 7, so please, proceed with caution, and don't blame me if something unexpected comes up. Good luck !!!
P.S. If you get more than one device or emulator, it's because you have bluestacks, disable or uninstall it, and you're good to go !!!
Did you try any of the suggestions offered to you in the other thread you started on this topic?
They seem like way less effort and some of them don't involve any wiping.
BTW when you do an adb pull you lose all file ownership and mode information; it is important to restore those correctly.
iAndroidOS said:
Second, you need to install wug's nexus toolkit, because it gives you an option to boot with a modified boot.img which has root privileges, go to advanced, you'll see it (if you know of any other way to boot up such an image, use it, because when you get locked out with the ,,forgot pattern'', your root won't work, that's why you need this boot image).
Click to expand...
Click to collapse
You can do whatever you want with the custom recovery - it is unaffected by the lock condition. You are complicating things by using a toolkit.
good luck
If you have USB debugging enabled you can just use adb to delete the pattern file and then unlock the tab.
Sent from my GT-I9000 using xda premium
NIMBAH said:
If you have USB debugging enabled you can just use adb to delete the pattern file and then unlock the tab.
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
I tried that and it didn't work
bftb0 said:
Did you try any of the suggestions offered to you in the other thread you started on this topic?
They seem like way less effort and some of them don't involve any wiping.
BTW when you do an adb pull you lose all file ownership and mode information; it is important to restore those correctly.
You can do whatever you want with the custom recovery - it is unaffected by the lock condition. You are complicating things by using a toolkit.
good luck
Click to expand...
Click to collapse
Thank you for reminding me, it is imperative to restore the permissions
iAndroidOS said:
I tried that and it didn't work
Click to expand...
Click to collapse
Weird I've done it a few times and its always worked. How did you do it ?
Sent from my GT-I9000 using xda premium
NIMBAH said:
Weird I've done it a few times and its always worked. How did you do it ?
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
I dunno, i went into adb and used the adb shell rm /data/system/gesture.key
command and as soon as it finished, i unplugged my N7 and rebooted it, and the login prompt was still there.

Categories

Resources