[How-To] Unroot your phone and return to stock

Status
Not open for further replies.
I'm having kind of the same problem... when I enter "adb shell" I get the pound sign. But every time I try to do "su" it says "not found," and when I try "chmod 755 ...." it says "not a directory." Any ideas?
 
Question

What if you are not able to get your phone out of Safe mode to root it? Im not able to root the phone or do a full reset as described. I have tryed the power button and home button thing to get to the menu and reboot normally as well, nothing i have done has worked yet. In safe mode the file system is readonly and without it rooted, I get permission denied on trying to root it or run any of the core functions. If you know of a solution for this, please let me know.
Thanks.

Phone: LG Optimus S - LS670ZVC
Android 2.2.1
 
I'm having kind of the same problem... when I enter "adb shell" I get the pound sign. But every time I try to do "su" it says "not found," and when I try "chmod 755 ...." it says "not a directory." Any ideas?
Are you booted in recovery or in android?

What is the output of
/system/bin/ls -l /system/bin/su
 
What if you are not able to get your phone out of Safe mode to root it? Im not able to root the phone or do a full reset as described. I have tryed the power button and home button thing to get to the menu and reboot normally as well, nothing i have done has worked yet. In safe mode the file system is readonly and without it rooted, I get permission denied on trying to root it or run any of the core functions. If you know of a solution for this, please let me know.
Thanks.

Phone: LG Optimus S - LS670ZVC
Android 2.2.1
How did you obtain the VC version of the phone software? If the phone came with it or you applied the OTA VC update, you will need to revert to V9 first. Instructions are in my signature.
 
ok i need help, this is where im at so far


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Peter Griffin>cd C:\android-sdk-windows\platform-tools


C:\android-sdk-windows\platform-tools>adb push recovery-RA-GNM-thunderc-s-1.1.0i
mg/sdcard
Android Debug Bridge version 1.0.26

-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT

environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this ocmmand with no additional arguments

will disconnect from all connected TCP/IP devic
es.

device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport

adb install [-l] [-r] [-s] <file> - push this package file to the device and i
nstall it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.

adb help - show this help message
adb version - show version num

DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:

- If <directory> is not specified, both /system and /data partitions will be u
pdated.

- If it is "system" or "data", only the corresponding partition
is updated.

environmental variables:
ADB_TRACE - Print debug information. A comma separated list
of the following values
1 or all, adb, sockets, packets, rwx, usb, sync
, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes prior
ity over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these de
bug tags are printed.

C:\android-sdk-windows\platform-tools>adb push flash_img/data/local/tmp
Android Debug Bridge version 1.0.26

-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT

environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this ocmmand with no additional arguments

will disconnect from all connected TCP/IP devic
es.

device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport

adb install [-l] [-r] [-s] <file> - push this package file to the device and i
nstall it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.

adb help - show this help message
adb version - show version num

DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:

- If <directory> is not specified, both /system and /data partitions will be u
pdated.

- If it is "system" or "data", only the corresponding partition
is updated.

environmental variables:
ADB_TRACE - Print debug information. A comma separated list
of the following values
1 or all, adb, sockets, packets, rwx, usb, sync
, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes prior
ity over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these de
bug tags are printed.

C:\android-sdk-windows\platform-tools>adb shell
adb server is out of date. killing...
 
haven't been keeping up to date lately and am just now trying to go from v8 to v9. do i need to follow the entire first part and unroot and go back from lego rom to stock?

if so, this will unfortunately make me lose everything right? or can i make like a nandroid backup...or is a backup app such as titanium the only way?
 
ok i need help, this is where im at so far


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Peter Griffin>cd C:\android-sdk-windows\platform-tools


C:\android-sdk-windows\platform-tools>adb push recovery-RA-GNM-thunderc-s-1.1.0i
mg/sdcard

Android Debug Bridge version 1.0.26

-d - directs command to the only connected USB devic
e

Usually if adb spits out the "how to use" page, that means it receives parameters it doesn't recognize.

I can't tell if you have a cut/paste problem or typo as the formatting of your commands isn't clear.

Your post says you typed this:
adb push recovery-RA-GNM-thunderc-s-1.1.0i
mg/sdcard

You should have typed this:
adb push recovery-RA-GNM-thunderc-s-1.1.0.img /sdcard/

Notice you missed the "." in ".img", you did not have a space between "img" and "/sdcard/", and you didn't have a "/" at the end of "/sdcard/"
 
haven't been keeping up to date lately and am just now trying to go from v8 to v9. do i need to follow the entire first part and unroot and go back from lego rom to stock?

if so, this will unfortunately make me lose everything right? or can i make like a nandroid backup...or is a backup app such as titanium the only way?
You can try this thread. Theoretically it should work from V8 to VC.

http://forum.androidcentral.com/lg-...ptimus-s-vc-without-losing-all-your-data.html
 
now im getting

C:\Documents and Settings\Peter Griffin>cd C:\android-sdk-windows\platform-tools


C:\android-sdk-windows\platform-tools>adb push recovery-RA-GNM-thunderc-s-1.1.0.
img /sdcard/
adb server is out of date. killing...
* daemon started successfully *
cannot stat 'recovery-RA-GNM-thunderc-s-1.1.0.img': No such file or directory

C:\android-sdk-windows\platform-tools>adb push recovery-RA-GNM-thunderc-s-1.1.0.
img /sdcard/
cannot stat 'recovery-RA-GNM-thunderc-s-1.1.0.img': No such file or directory
 
now im getting

C:\Documents and Settings\Peter Griffin>cd C:\android-sdk-windows\platform-tools


C:\android-sdk-windows\platform-tools>adb push recovery-RA-GNM-thunderc-s-1.1.0.
img /sdcard/
adb server is out of date. killing...
* daemon started successfully *
cannot stat 'recovery-RA-GNM-thunderc-s-1.1.0.img': No such file or directory

C:\android-sdk-windows\platform-tools>adb push recovery-RA-GNM-thunderc-s-1.1.0.
img /sdcard/
cannot stat 'recovery-RA-GNM-thunderc-s-1.1.0.img': No such file or directory
I don't know about the adb server out of date error, but the no such file or directory usually means there isn't a file with that name in the directory you are in.

Try typing in DOS command prompt
c:
cd \android-sdk-windows\platform-tools
dir *.img

and see if "'recovery-RA-GNM-thunderc-s-1.1.0.img" shows up.
 
i didnt, i guess i didnt unzip it to the right folder, so i got that fixed. but now this is what i get ... sigh lol

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Peter Griffin>cd C:\android-sdk-windows\platform-tools


C:\android-sdk-windows\platform-tools>adb push recovery-RA-GNM-thunderc-s-1.1.0.
img /sdcard/
1869 KB/s (4935680 bytes in 2.578s)

C:\android-sdk-windows\platform-tools>adb push flash_image /data/local/tmp
1635 KB/s (26172 bytes in 0.015s)

C:\android-sdk-windows\platform-tools>adb shell
$ su
su
Pchmod 755 /data/local/tmp/flash_imageermission denied
$ chmod 755 /data/local/tmp/flash_image
chmod 755 /data/local/tmp/flash_imagechmod 755 /data/local/tmp/flash_image
Unable to chmod /data/local/tmp/flash_imagechmod: No such file or directory
$
 
Last edited:
Before you type "su", turn on the phone and make sure you aren't in the lock screen.

Type "su" and look on the phone for a prompt that asks you to allow root privileges. Acknowledge that prompt by allowing root privileges.
 
In case this helps anyone.

The optimus I have came with v9 stock.

I just wanted to get rid of Sprint ID so the phone wouldn't be stuck on the stupid gray activation screen (requiring the use of voice rec workaround to navigate menus and apps), then keep the stock rom and give it to someone less technical to use.

rooted with rageagainstthecage

installed custom recovery partition to create a nandroid backup

installed titanium backup apk

in titanium backup, removed sprint id

Everything was working great, phone booted into a usable state w/o need for extra voice rec shenanigans. I was about the do a ##786 reset then realized that I had installed the custom recovery partition to do the nandroid backup. In hindsight I didn't really need to do that other than to make backups, but it was already done. Didn't want my friend to inadvertently do a reset (or be told by CS to do a reset) and be left with a phone stuck in recovery mode.

Seemed circuitous to go back to v8 just to upgrade to v9. I decided to just flash the v9 recovery.img. I also wanted to verify the recovery.img was indeed the v9 (OP said it was, but never hurts to verify). Took a backup recovery.img I had and ran checksums against the one in the first post. Yup, exactly the same.

I proceeded to flash the recovery.img and reboot.

Then did a ##786 reset.

formatting DATA
formatting CACHE
factory reset
reboot

Phone booted into Android home menu w/o the dreaded Sprint ID configuration. The phone was nice and usable with wifi even without activation. Standard resets through android methods like privacy and ##786 worked fine.

This is on a never activated Optimus S that came with v9 stock.

Anyway, all this is already implied in the instructions of the first post. Just wanted to share my version of how I used these instructions in case it helps someone else.

I'm guessing, in theory, if you were happy with your version of ThunderRom and weren't going to flash new ones anytime soon, you could also just flash the v9 recovery.img and restore the ##786 and Privacy reset functionality, though I didn't test this. That would make it safe to hand over to someone less technical.
I have the same problem with the activation screen and I'm stuck on the rooting part. Can you give more detailed instruction on how to root the phone and get rid of the Sprint ID Activation screen? I do not want to activate this phone. Thanks!

G
 
I have the same problem with the activation screen and I'm stuck on the rooting part. Can you give more detailed instruction on how to root the phone and get rid of the Sprint ID Activation screen? I do not want to activate this phone. Thanks!
I don't have an unactivated Optimus S lying around to test any of my suggestions, so apologize in advance if they don't work.

If your phone came with V9, you just follow the How to root thread.

If your phone came with VC, it can get more complicated.

You could first try using the Voice Command button, then saying "Sprint ID"

If you just want to get the phone running, you could use the Voice Command button, then say "WiFi settings"
 
Status
Not open for further replies.

Trending Posts

Forum statistics

Threads
956,604
Messages
6,969,133
Members
3,163,585
Latest member
zolepso1