Android One Expanding to Bangladesh, Nepal, and Sri Lanka

At Google I/O 2013, Google proudly announced that the Android operating system was … more

Android 5.0.2 Fixes 2012 Nexus 7! Sony’s Making a Google Glass Competitor? – XDA TV

Android 5.0.2 Lollipop is available for the … more

Early Lollipop Ports for Micromax A116 and A117

It feels like it was only yesterday when Google announced the mysterious Android L.After … more

Now Gesture Tweaks Replaces Google Now with Custom Action

On most modern Android devices with software navigation keys, swiping up from the … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Command Prompt Issue When Trying To Exit ADB Shell?

OP omgsufc

2nd May 2011, 07:18 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2011
More
Hi this is my first post on the site and i would appreciate it if anyone could help me with this problem. (I know your probably fed up of hearing about rooting problems but anyway!)

I have succesfully installed ADB and as far as i know it seems to be working properley as i can access the ADB shell on my device.

However when i get to a certain stage of the rooting process it all seems to go wrong.

wiki.cyanogenmod.com/index.php?title=HTC_Tattoo:_Full_Update_Guide

I have been using the above rooting guide (can't hyperlink first post!) and i cannot get past stage 7 of the process because the 'exit' command doesnt seem to work in Command Prompt (Windows 7) and it is stopping me from being able to exit the ADB Shell. I have tried other ways of exiting the shell such as ctrl+C but this kills ADB completely and i think that it is undoing the previous steps of the guide.

I do get the message:
uid=0(root) gid=1000(shell) groups=1003(graphics),1004(input),1007(log),1011(a db),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt ),3003(inet)

so i think that i have successfully rooted the device but i cannot proceed to push the 'su' file to the device as i can't exit the adb shell, i just keep getting lists of text saying reboot (-n) (-p) and everytime i use the exit command nothing seems to happen and the flashing # symbol keeps coming back.

Has anybody else had this problem? or have any idea of how to stop the ADB Shell with any other commands other than 'exi't or Ctrl+C?

Cheers.
2nd May 2011, 10:03 PM   |  #2  
Senior Member
Thanks Meter: 233
 
1,894 posts
Join Date:Joined: Jan 2007
More
If device is rooted, by writing in command prompt the command "adb shell", must appear the symbol #, if the symbol $ appears the device isn't rooted.
If you cannot use adb from pc, run on device a terminal emulator(you can find one on market) the above command to see if you're rooted. Then you can give the next commands from terminal emulator(maybe you need to copy the nessecary files on sd card and change the related paths to point to sd card)
2nd May 2011, 11:18 PM   |  #3  
Junior Member
Flag Funchal
Thanks Meter: 0
 
1 posts
Join Date:Joined: May 2011
More
I'm having the exact same problem while rooting my HTC Tattoo (on Windows 7).
I have Android 1.6 (Donut), the baseband is 13.29a.55.13H_3.35.07.33, kernel is 2.6.29-gf922713 and build is 1.67.173.37.
Please help and thanks in advance . I really want to install CyanogenMod 7...
3rd May 2011, 12:12 AM   |  #4  
OP Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2011
More
more info
When i say i have rooted the device i mean temporarily by pushing and changing the 'm7' file, the problem is pushing the 'su' file to the device to make the root permanent.

I do get the # symbol when in ADB Shell but only after changing m7 on the device. As i cannot complete the whole rooting process the # is not there permanently and it returns to the $ symbol.

Thanks for the reply, i will try and do it using a terminal on the device. Do you not need root access to use a terminal app?
Last edited by omgsufc; 3rd May 2011 at 12:19 AM. Reason: typo
3rd May 2011, 05:12 PM   |  #5  
Junior Member
Thanks Meter: 0
 
20 posts
Join Date:Joined: Apr 2011
I'm having the same issue. When I input exit it stucks into that loop and then I got to ctrl+c, and of course the root does not stick
From that point forward I can't do anything else...

If someone overcome the problem please post.
3rd May 2011, 09:57 PM   |  #6  
Senior Member
Thanks Meter: 233
 
1,894 posts
Join Date:Joined: Jan 2007
More
I just used this app to root a zte blade with a new greek stock rom:
http://forum.xda-developers.com/showthread.php?t=803682
Seems to work for almost all devices and in first post have some info about root levels and links to a workaround for devices that have some lock which prevents the full rooting.
I didn't tried anythink cause the rooting process was successful, but you can try this app and if still have problems try to follow the instructions given.
Good luck.
3rd May 2011, 11:17 PM   |  #7  
Junior Member
Thanks Meter: 0
 
20 posts
Join Date:Joined: Apr 2011
If you have your mobile rooted can you just use this commands:
cd /data/local/bin/
chmod 755 flash_image
flash_image recovery /sdcard/recovery-clockwork-x.x.x.x-click.img
to perform a recovery flash? Without using the su command?

I don't remember if I tried it, but, if it works I recommend using Androot for rooting the device, it worked for me(checked by Root Checker ).
I'm mentioning this just because you recommended the SuperOneClick app.
7th May 2011, 11:04 AM   |  #8  
Junior Member
Thanks Meter: 0
 
20 posts
Join Date:Joined: Apr 2011
Update:

For all trying to get thing done, follow the instructions on 1Click modified by tenis and flash the latest cyanogenmod.
It worked!!!
7th May 2011, 01:20 PM   |  #9  
OP Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2011
More
I got it to work using androot. Cm7 is awesome

Sent from my HTC click using XDA App
20th August 2011, 01:48 PM   |  #10  
Junior Member
Flag Thimphu
Thanks Meter: 8
 
17 posts
Join Date:Joined: Aug 2011
More
exit command in adb seems to lock up
like omgsufc, I also reach this stage and can see the message:

uid=0(root) gid=1000(shell) groups=1003(graphics),1004(input),1007(log),1011(a db),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt ),3003(inet)

Again, like omgsufc, when I issue the command:

# exit

ADB shell seems to go into some kind of loop. Pressing ctrl-c or ctrl-d also give the same results. I thus can't go to the next stage. Any help or clues would be greatly appreciated.

I'm on Ubuntu 11.04.

TIA for any help.

Post Reply Subscribe to Thread

Tags
adb, command prompt, exit, root, shell
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes