• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root so i want to re-root with ADB

scotty85

Extreme Android User
id like to further my phone knowledge and learn how to use ADB. planning to read up on it,watch some videos,and then run the flashback zip to put my phone back to stock. then id like to reroot it the "old skool" way :D

just wondering if anyone has any links they liked or found particularly helpful before i start clicking the search button. either on ADB in general,or procedure,files,etc. for using it to root the eris.

thanks for any info :cool:
 
id like to further my phone knowledge and learn how to use ADB. planning to read up on it,watch some videos,and then run the flashback zip to put my phone back to stock. then id like to reroot it the "old skool" way :D

just wondering if anyone has any links they liked or found particularly helpful before i start clicking the search button. either on ADB in general,or procedure,files,etc. for using it to root the eris.

thanks for any info :cool:


You have to download sdk. Have u done that yet? There's a bunch of stuff.
 
Scotty,

When you are ready to really get wild and crazy, check out this thread:

http://androidforums.com/eris-all-things-root/163423-flashing-rom-trackball-not-working.html

There's stuff in here where eu1 (of course ;)) posted steps for doing a Nandroid backup, doing your wipes, flashing your new ROM, all via adb and the custom recovery.

This was the method of last resort for those whose trackball's had totally gone south on them and before the trackball-optional recovery (and part of my impetus for creating said recovery ;)).

Check it out when you feel you are ready.

Cheers!
 
thank you much,misters doogald and scary. i saw your links on the other thread as well. that will get me a good start :D
 
You have to download sdk. Have u done that yet? There's a bunch of stuff.

not yet,BC. i watched the video on the TB root forum,and im about to start checking out the links provided by doogald and scary. usually the GF is out of the house in the evenings,but shes changing jobs and been here the last couple nights pestering me(did i say that out loud?:eek:) so hopefully not much on the agenda tonite and i can start getting it figured out. getting excited to be doin somethin new with my lil eris :D
 
not yet,BC. i watched the video on the TB root forum,and im about to start checking out the links provided by doogald and scary. usually the GF is out of the house in the evenings,but shes changing jobs and been here the last couple nights pestering me(did i say that out loud?:eek:) so hopefully not much on the agenda tonite and i can start getting it figured out. getting excited to be doin somethin new with my lil eris :D

I have all the required stuff but haven't tried my hand at it yet and probably won't have the time to do it. I'm getting started on take offs to quote a contract to plumb 633 new houses.:eek::D
 
I have all the required stuff but haven't tried my hand at it yet and probably won't have the time to do it. I'm getting started on take offs to quote a contract to plumb 633 new houses.:eek::D

holy crap,BC! thats a bunch of plumbing!

ive downloaded andinstalled sdk and got adb working.

i used the adb shell to do a system dump to screen(not sure what that is but it seemed like a harmless command :D) and rebooted,and rebooted to fastboot and to recovery. apparently i have no fastboot drivers as adb doesnt see the phone in that mode.

starting to become less scary :)
 
well guys,i just booted into recovery,made a backup,wiped,and installed a rom from adb :cool:

is there a way to restore backups from adb as well? :D
 
well guys,i just booted into recovery,made a backup,wiped,and installed a rom from adb :cool:

is there a way to restore backups from adb as well? :D

I'm sure there is...want me to dig-up the restore command that nandroid-mobile.sh uses from Amon_RA recovery for ya?

edit: here you go:

Code:
/sbin/nandroid-mobile.sh -r -e --norecovery --nomisc --nosplash1 --nosplash2 --defaultinput -s <nandroid-backup-directory>

For example:

[COLOR="Blue"][B]/sbin/nandroid-mobile.sh -r -e --norecovery --nomisc --nosplash1 --nosplash2 --defaultinput -s /sdcard/nandroid/HT9xxxxxxxxx/BDS-201103221234[/B][/COLOR]
 
*giggle* just restored my GSB 2.2 backup :D

downloading flashback now. tho from doogalds link,it doesnt seem all that tricky to reroot with the hack-v4 zip
 
Scotty,

By the way, I think I left off the part of the command where you have to specify the Nandroid backup to be restored.

Amon_RA's recovery.c appends the name of the selected Nandroid backup path to the end of the command I posted above. I'll edit it in a sec to reflect this.

Thanks! (and I hope I caught you in time)

edit: clearly, you already figured-it out ^^^ ;)
 
lol,i figured there was a way i had to specify what one,but i wasnt sure how to do it... i went ahead and pasted the command and it defaulted to the most recent. wich was coincidentally the one i wanted :)

if id wanted to pick a different one... would i leave off the "--defaultinput -s <nandroid-backup-directory>" and replace it with "/sdcard/nandroid/xxx/yyy" ? or would i just tack that on the end of your entire command? (xxx=phone id,and yyy=backup name)

oops,just saw your comment that youll edit. ill refresh and check now :D

edit: got it! thanks again,mister scary! :cool:
 
lol,i figured there was a way i had to specify what one,but i wasnt sure how to do it... i went ahead and pasted the command and it defaulted to the most recent. wich was coincidentally the one i wanted :)

if id wanted to pick a different one... would i leave off the "--defaultinput -s <nandroid-backup-directory>" and replace it with "/sdcard/nandroid/xxx/yyy" ? or would i just tack that on the end of your entire command? (xxx=phone id,and yyy=backup name)

oops,just saw your comment that youll edit. ill refresh and check now :D

edit: got it! thanks again,mister scary! :cool:

Well, the "--defaultinput" parameter says this in the nandroid-mobile.sh source:

Code:
--defaultinput         Makes nandroid-mobile non-interactive, assumes default inputs from the user.

So, that's probably why it figured-out to restore your latest (or alphabetically last?) backup.

The "-s " is used to specify the subdirectory (i.e., Nandroid backup directory in this context) to be restored.

Here's a .zip containing both the recovery.c and the nandroid-mobile.sh script that it references:

View attachment eris-nandroid-mobile-and-recovery.zip

Cheers!
 
so i now have a rooted thunderbolt :) while i dint go the completely "old school" route with it,the knowledge i gained from this helped me even with the easy root. im not done playing with the eris and adb yet,but wanted to say thanks again for the info everyone provided :D
 
Does the Thunderbolt need to be rooted? I know that I resisted rooting the Eris until it was clear that 2.1 had issues that weren't going away by staying stock.

Or is rooting just like Mt. Everest - it's there, so you do it?
 
so i now have a rooted thunderbolt :) while i dint go the completely "old school" route with it,the knowledge i gained from this helped me even with the easy root. im not done playing with the eris and adb yet,but wanted to say thanks again for the info everyone provided :D

FWIW, the method I used to figure out what command-line the recovery system was using was simply to have an adb shell running, and then, after manually starting the backup/restore operation, run a "ps" command to get the PID of the script process, and then

cat /proc/<PID>/cmdline

(with "<PID>" replaced by the actual numeric value, of course)

This is relatively easy to do because the backup/restore operations take a long time to complete, so there is plenty of time to capture the info.

For shorter-lived jobs, you could get the same info by using "strace" to attach to the running /sbin/recovery program, and looking for exec() or execve() calls in the output of strace.

Just mentioning this because different recoveries use different versions of nandroid-mobile.sh, and also pass it different command-line arguments.

eu1
 
Does the Thunderbolt need to be rooted? I know that I resisted rooting the Eris until it was clear that 2.1 had issues that weren't going away by staying stock.
no,id be a liar if i tried to say it "needed" to be rooted. it does have its share of bloatware,but if you dont mind it being there,it doesnt seem to hurt it... its incredibly smooth,fast,and capable.

Or is rooting just like Mt. Everest - it's there, so you do it?

well,i do really enjoy rooting and romming,and modifying my phones(hello! my name is scott and im a flashoholic ;)),but i did have a couple of somewhat practical reasons:
-the ability to make nandroid backups
-the ability to backup apps and their data with titanium
-the ability to use other root apps like drocap and setcpu.

also cyanogenmod will be supporting it. i love cm7,im not fond of sense at all,so i will be able to set my phone up how imost enjoy using it the most by rooting it. :)
 
Back
Top Bottom