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

Root How to "root" the LG Ally

Ok, I got it to work but had to change some stuff. Did the first part up to the UNMOUNT. I had root in ADB.

Then when I would run the MOUNT command it would never mount the SD Card. So I ejected and reinserted the card and then used ASTRO to install the superuser.apk.

I have root on the phone disconnected from the computer.
 
Steps 6-11 on the windows version will not work for me. I keep getting errors like
cannot stat 'su/asroot2' : No such file or directory

My android sdk is as follows C:\Android\SDK\tools\su
 
These are the exact steps that I used to get root access on my phone.

OS used: Windows XP (windows 7 should be close to the same)

1) Download the software zip that heffe2001 created MEGAUPLOAD - The leading online storage and file delivery service

2) unzip that software to your C:\ drive (you should have a "C:\android" folder when done)

3) Download and install PDANet (Download PdaNet)
-during the install you will have to plug in the phone to your system
-Skip through all the "LG USB Modem" installs
-Make sure the "Android ADB" driver gets install succesfully

4) Enable USB Debugging on the Ally (Settings -> Application Settings -> Development -> check the box next to "USB Debugging" and click "OK" on the next screen)

5) Open a command prompt (Start --> Run --> type in "cmd" and press enter)

6) type in "cd c:\android\sdk\tools" and press enter

-do this step only if you haven't installed the Android SDK toolkit yet -

6a) if you don't have the SDK installed at this point run the SDKSetup program (type in "C:\android\sdk\SDK Setup.exe" then press enter - please use the quotes for this command only.) and proceed to install it. Once it's installed, forget about the update error it will throw at you and just cancel/close out of the program.

7) you should be in the C:\android\sdk\tools directory so type in "adb devices" and press enter. this is to confirm that adb can see the phone that is hooked into your computer. You should see a couple lines, one of which should read "* daemon started successfully *" then the line "List of devices attached". Under that should be a line with some odd long string of letters and numbers. if you don't see that line or any line what-so-ever under the "List of devices", adb can not communicate with your phone. Go back through the instructions and make sure you have done everything to a "T".

8) Once you can confirm adb can see your phone, type in these next few commands:

8a) adb push c:\android\sdk\tools\su\asroot2 /data/local/
8b) adb push c:\android\sdk\tools\su\su /sdcard/su
8c) adb push c:\android\sdk\tools\su\Superuser.apk /sdcard/Superuser.apk
8d) adb shell chmod 0755 /data/local/asroot2
8e) adb shell

*****************************************

If you are getting "permission denied" errors while trying to do "adb push <file> <file>" please see my post here and try that out.

*****************************************

*you will get a "$" prompt in your command window - you are now connected into your phone*

9) At this point, I had to unmount the SD card in my phone and remove it completely (Settings -> SD Card & Phone Storage Settings -> click "Unmount SD card"). I don't know why, but this was the only way the next command would give me the root prompt.

10) once the SD card is unmounted and removed from your phone, type in "/data/local/asroot2 /system/bin/sh". Whether or not it's successful, you'll see a line similar to "SUCCESS! Enjoy ...". After that line (or whatever it says), you should see a "#" prompt instead of a "$" prompt. This is the root prompt. If you don't see this prompt don't try to continue. go back and figure out what might have gone wrong. More than likely the asroot2 program didn't work correctly for you.

************************************

as per travel_rob, if you get stuck here, type in "chmod 0777 /data/local/asroot2" then do step 10 over again

if you're still having issues cdsmith has a good post and a couple tips here

**************************************

11) Once you have the root prompt, type in the following command:

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

This is important. If you don't do this, you won't be able to add any file to the "/system" directory on the phone

12) At this point, push the SD card back into the phone and wait for the phone to re mount it. should take only about 5-10 seconds.

13) finish up with the following commands:

13a) cat /sdcard/Superuser.apk > /system/app/Superuser.apk
13b) cat /sdcard/su > /system/bin/su
13c) chmod 06755 /system/bin/su
13d) reboot

Your phone should reboot and when it comes back up, check your programs. You should see the "Superuser Permissions" icon. Congrats, you're "rooted" (which really just means you have administrator access to your phone)...
 
Steps 6-11 on the windows version will not work for me. I keep getting errors like
cannot stat 'su/asroot2' : No such file or directory

My android sdk is as follows C:\Android\SDK\tools\su

please be aware of your slashes.

windows uses "\"
android (linux) uses "/"

the line should read "adb push su\asroot2 /data/local/"

or fully:

"adb push c:\android\sdk\tools\su\asroot2 /data/local/"

which broken down means that adb is pushing the data from your windows machine to your android (eg. linux) phone
 
please be aware of your slashes.

windows uses "\"
android (linux) uses "/"

the line should read "adb push su\asroot2 /data/local/"

or fully:

"adb push c:\android\sdk\tools\su\asroot2 /data/local/"

which broken down means that adb is pushing the data from your windows machine to your android (eg. linux) phone

I fixed the pack download to reflect the proper slashes. Wasn't sure if the adb utils forced you to use linux-like slashes, or windows. If you download from the new link (MEGAUPLOAD - The leading online storage and file delivery service), it should be the fixed, working version.

More mirrors:

Multiupload.com - upload your files to multiple file hosting sites!
request download ticket | ifile.it
 
Following Crux.V's instructions I was unable to get a root prompt in step 10. Tried over and over without luck, and then I decided I needed to think about what was going on inside the Ally.

Got to thinking about permissions in Linux and just for grins I changed the file permissions on /data/local/asroot2 in step 8d from 0755 to 0777. Bingo! Everything worked, and I got a root prompt.

Thanks again Crux.V and Heffe2001 for both of your efforts!

P.S. - I'm running the 64bit version of Windows 7 (not that the version of Windows should have made any difference at that point in the process).
 
Following Crux.V's instructions I was unable to get a root prompt in step 10. Tried over and over without luck, and then I decided I needed to think about what was going on inside the Ally.

Got to thinking about permissions in Linux and just for grins I changed the file permissions on /data/local/asroot2 in step 8d from 0755 to 0777. Bingo! Everything worked, and I got a root prompt.

Thanks again Crux.V and Heffe2001 for both of your efforts!

P.S. - I'm running the 64bit version of Windows 7 (not that the version of Windows should have made any difference at that point in the process).

updated my post. Thanks!
 
HELL YES! (edited by mod) Successfully rooted. Thanks guys, great Job.

And by god, thank you Crux! If it wasnt for your easy to read guide I wouldnt have been able to do shit :D! Alright! Apps2SD here I come. You guys ROCK!
 
hey guys, on steps
8b) adb push c:\android\sdk\tools\su\su /sdcard/su
8c) adb push c:\android\sdk\tools\su\Superuser.apk /sdcard/Superuser.apk

I get that permission is denied even when using the allyroot batch provided be heffe. I also allowed for 3rd party apps to put on my phone.I used Astro to get Superuser to the phone and got past the $ but the # brought up "directory not found" error. any suggestions? I'm using a windows xp 32 bit.
 
hey guys, on steps
8b) adb push c:\android\sdk\tools\su\su /sdcard/su
8c) adb push c:\android\sdk\tools\su\Superuser.apk /sdcard/Superuser.apk

I get that permission is denied even when using the allyroot batch provided be heffe. I also allowed for 3rd party apps to put on my phone.I used Astro to get Superuser to the phone and got past the $ but the # brought up "directory not found" error. any suggestions? I'm using a windows xp 32 bit.
I have the same problems:(
 
Ok guys to the powers that be. Lets clean this thread up and make the first post as clear and concise as we can, with steps for windows and linux broken down. A lot of good information here and I know everyone is super excited about getting this done! :D I just wish my wife would let me root hers! She is dead set against it! I guess she thinks it will blow up or something. Congrats to the guys that cracked this!
 
I swear to god, i have got every step to complete at least once in this process, but not all of them at the same time! Ive had it tonight, ive been at this for about 3 hrs each night for the last 2 nights! This process is way to buggy to do the way were doing it, someone is gonna have to come up with an easier way to do this. I mean how hard could it be to just take a program like the old droidmod, and mod it to install on the ally and do all this for us. Hell even the allyrootbat file won't work now, i got it to work 1 time, and then i couldn't get past the step were your supposed to finally get the pound sign! Now all i get is stupid permisson denied stupid errors when i try the allyrootbat file! WTF

Supposedly we put a man on the moon, you would think someone could put a ninja on an ally LOL
 
I am all the way to step 13
13c) chmod 06755 /system/bin/su

and when I do this command I get "INVALID LENGTH"
i do the rest, and I see the Superuser Command application, but try to use an app like Barnacle and it doesn't work
 
Thanks for the instructions, it took me like 10 minutes to complete after getting the downloads installed..I did run into a slight problem when running step 10. I had to leave my SD card mounted and then run the command and then unmount it while leaving the card in the slot and run the command again it gave me root prompt after that. Everything else I just copied and pasted as it was in the post, the only thing I typed in was reboot.

THANKS! i was able to download Font sizer and increase my font size love the phone a whole lot more now!
 
Thanks for the instructions, it took me like 10 minutes to complete after getting the downloads installed..I did run into a slight problem when running step 10. I had to leave my SD card mounted and then run the command and then unmount it while leaving the card in the slot and run the command again it gave me root prompt after that. Everything else I just copied and pasted as it was in the post, the only thing I typed in was reboot.

THANKS! i was able to download Font sizer and increase my font size love the phone a whole lot more now!

Forgot to mention I used Windows 7
 
Okay, so I'm running Ubuntu 10.04. I'm not technologically impaired, but I'm not too advanced. So can someone please tell me why is it that it can't find the ./adb directory. Where is it? I have the whole SDK installed with the 2.1 platform installed. I don't get it. Sorry for being such a new***, but I would really appreciate if someone would help.

EDIT:
Okay, so I figured out the ADB directory, but now I get permission denied on step 3. I skipped to step 4 after I saw I manually put the flies on there, but I still get the, "insufficient permissions for device" error. What am I doing wrong?

EDIT:
Sorry I have to keep editing this, but I have come farther. I have completed all the first 5 steps, but I'm still not getting the # in the shell. Someone help?
 
Try removing the card while hooked up in adb, then after a few seconds, install the card back, but don't mount the card. Just let the PC find it on its own.
 
Im guessing your using the linux guide at the top of the screen? Are you typing in the commands or cut an pasting them into your prompt?
 
Oh, sorry. I got it! I think I kept alternating between the
Code:
./asroot2 /system/bin/sh
command between my phone and my computer, and I eventually got it. Jeez. It's 4:43 AM right now and I am tired, but I can't sleep. I had a Monster and 5 Cherry Cokes. :p
 
used the winxp instructions from crux, worked fine...now rooted, and running barnacle without a hitch....thanks for the fine directions!

one question though, are there any security related issues to be aware of as a rooted phone?? I recall the iphone being vulnerable after jailbreaking and unlocking until default passwords are changed....just curious if there is any related issues with the android root

thanks in advance for any advice.

scott
 
every time try to ./adb push or ./adb shell. The phone is in USB debug mode with installs from APK enabled. The microSD card is mounted in Ubuntu 10.04. The Android SDK is in /android/, and superuser.apk and asroot2 are in /android/tools/. Steps are as follows:

ubuntu@ubuntu:~$ cd ~/android/tools/
ubuntu@ubuntu:~/android/tools$ ./adb push ./asroot2 /data/local
error: insufficient permissions for device


Any help?
 
Back
Top Bottom