[How-To] Root LG Optimus T

Ok well now you're rooted so you can forget about that part. Try doing just this

adb push su /data/local/tmp/
adb push busybox /data/local/tmp/
adb shell
chmod 4755 /data/local/tmp/busybox
cd /data/local/tmp
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cd /data/local/tmp
./busybox cp su /system/bin
./busybox cp busybox /system/bin
cd /system/bin
chmod 4755 su
chmod 4755 busybox
busybox --install /system/bin
exit
exit


This is the same as above just minus the rageagainstthecage piece which simplifies things.
 
actually, you should already have SU so technically you could ...

adb push busybox /data/local/tmp/
adb shell
chmod 4755 /data/local/tmp/busybox
cd /data/local/tmp
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cd /data/local/tmp
./busybox cp busybox /system/bin
cd /system/bin
chmod 4755 busybox
busybox --install /system/bin
exit
exit
 
and i just restarted my phone and computer and got back to the $, not the #. starting over. :sigh:
 
I'm still getting the no such file or directory errors. :(

Wait ... we need to take a step back and do some simple logical troubleshooting ...

1) Have you tried installing superuser from the market? What happened?
2) If it worked, have you tried running an app that requests root? What happened?
 
Wait ... we need to take a step back and do some simple logical troubleshooting ...

1) Have you tried installing superuser from the market? What happened?
2) If it worked, have you tried running an app that requests root? What happened?

Yeah I must've read your mind. I just installed superuser and installed titanium backup. I hit problems and had it do the busybox thing. it requested su priveleges and was given them. i guess i was good the whole time and was freaking out about some error messages.

i will give your other request a try now.
 
('-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.

D:\Users\Omoni>d:/android-sdk-windows/adb su/data/local/tmp/
'd:/android-sdk-windows/adb' is not recognized as an internal or external comman
d,
operable program or batch file.

D:\Users\Omoni>d:/android-sdk-windows/tools/adb su/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.

D:\Users\Omoni>d:/android-sdk-windows/tools/adb push busybox/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.

D:\Users\Omoni>d:/android-sdk-windows/tools/adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
$
 
@lightos I had that happen to me too. looks like you got it figured out because adb restarted.

Need help with something?
 
Maybe the error messages i got should be mentioned in the instructions. Just in case. Cuz i know it screwed me up and had me (and beezy, poor guy) running in circles for an entire day.
 
great job on getting root! is it possible to pull the Contacts.apk for me? I own a mytouch3g but I'm so jealous of your contacts list and dialer.
 
it's the AOSP version. you can find the APK. don't you have the sense version on your phone? personally i like that version better, but to each his own.
 
nah no sense for me.. i'm running cyanogen 6.1.
is it the AOSP version? in the screen shots it looks different. for example on the contacts tab theres the search field and 'create new contact' button as well as the column of alphabets to quickly jump to contacts.. i dont have that =( do you mind pulling it for me? i'd appreciate it so much!

edit: just in case you need it =)
adb pull /system/app/Contacts.apk c:\somewhere\Contacts.apk
 
Last edited:
I need help. I cant get past adb shell. I get a $ not a #.please describe how you did everything from the begining. I NEED ROOT!
 
I need help. I cant get past adb shell. I get a $ not a #.please describe how you did everything from the begining. I NEED ROOT!

Follow the steps in post 1 exactly. Have patience it takes time. Did all of the programs install correctly? Next time you try copy the command permit and post it here so we can see what's going on.

Sent from my Optimus T
 
I posted them on page 3 but its always the same. when installing the sdk to my root hard drive you mean unzip and put it there right. i moved the rooting files provide the this post and moved them to the tools folder. when i copy and paste the words in the post it keeps saying that no directory exists. it doesnt like spaces. everything I type must be like this."d:/android/tools/adb push rageagainstthecage-arm5.bin/data/local/tmp/rageagainstthecage" in the post there is a space right afeter "...arm5.bin /..."
 
Ok sorry. When you say that you moved the files to the tools folder did you unzip them to the tools folder? You can't copy and paste them. You have to unzip them into that folder. If you don't do that you won't be able to push the files to your phone.

It looks like you can get to where you need (because after all of that stuff you are in adb shell), but something else is going on. Also when you're pushing the files you don't want to be in shell. You just want to cd d:/ where-ever-your-tools-folder-is

EDIT: so for you you'll open a command prompt and type cd D:\Users\Omoni>d:/android-sdk-windows/tools/ that should get you into adb. it does the daemon out of date restarting thing that's fine. let it finish then you can push the files.
 

Forum statistics

Threads
955,402
Messages
6,964,720
Members
3,163,285
Latest member
thajokersboss