Updated steps for root:
(this assumes linux with adb in the current directory)
wget http://zenthought.org/tmp/asroot2
wget http://bit.ly/brI0EV (superuser 2.1)
extract this and copy Superuser.apk and su to your sdcard
./adb push asroot2 /data/local/ && ./adb shell chmod 0755 /data/local/asroot2
./adb shell
/data/local/asroot2 /system/bin/sh
(at this point your $ prompt should be a # meaning you are root)
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cat /sdcard/Superuser.apk > /system/apps/Superuser.apk
cat /sdcard/su > /system/bin/su
chmod 06755 /system/bin/su
install terminal emulator on phone and try su to test, you should get a dialog that says "this app wants root access Allow Deny"
These steps were pretty much perfect! Thank you! Two notes: first, the path in the third from last step is /system/app/, not /system/apps/.
Second, I noticed that asroot2 seemed to only give a root shell when the SD card was mounted on the computer. Otherwise, it would claim success, but still give '$' as the prompt and mount failed with a permission error. However, once a root shell was obtained, I needed to unmount the SD card from the computer, so that it's again available as /sdcard. Hope that saves some people a few minutes of confusion.
(at this point your $ prompt should be a # meaning you are root, if not, type exit and then begin over, when you open the new ./adb shell you will be # root)
When you get # shell, UNMOUNT the sdcard!!!!! This will make the correct link available. Then continue on.
Has anybody tried any of the wireless tethering on their Ally since they rooted it? Curious to see if that works now.
I tried it but as soon as the app opens it says that its not supported, but i think theyre gonna make it work, well crepiduse said he will so its all on him or kfazz i guess.
I did try. The most commonly recommended wireless tether app requires a kernel with netfilter support, which is NOT installed on the LG Ally. However, another app called Barnacle Wifi Tether seems to get somewhere. Got it to create the network, connected via a laptop (Ubuntu 10.4), but was not able to get any data transfer. I stopped before figuring out what the problem was.
These directions SHOULD work for Windows, just make sure you use the drivers from pdanet, as they work in XP/Vista/7, x32 & x64. Most of these instructions are from Crepiduse. I HAVE NOT TESTED THIS AT ALL, BUT THIS SHOULD WORK JUST LIKE THE LINUX DIRECTIONS. I'M NOT RESPONSIBLE FOR YOU BRICKING YOUR PHONE, YOU HAVE BEEN WARNED... Also, if someone would test this and report back if it works or not, that'd be great, lol.
My pre-configured pack with batch file for the initial parts of the root process is available here... Let me know if you get errors pushing the files up to the phone (not sure if the sdk uses the standard windows \, or the linux / on the windows side, lol).
Windows
Part 1
Mount SD Card in Phone!
1) download windows client pack for pdanet for your flavor of windows and install drivers for debug access (or my pack I already pre-configured for root on the Ally) Download PdaNet
To make things easier, I would create a folder under the c:\android\sdk\tools called su (md c:\android\sdk\tools\su) and copy the asroot2, and the contents of the zip file over to this (just the su file, and the apk file, the rest shouldn't matter). Alternately, I'll post up a pre-configured folder you can extract into your c: root, and run the allyroot batch file in the c:\android\sdk\tools folder from there with everything where it should be for these directions...
5) bring up a command prompt in windows (might have to be administrator-level cmd, not sure)
6) Change into the folder you created in step 2 (cd c:\android\sdk\tools in my example)
7) adb push su/asroot2 /data/local/
8) adb push su/su /sdcard/su (unless you've already done #4)
9) adb push su/Superuser.apk /sdcard/Superuser.apk
10) adb shell chmod 0755 /data/local/asroot2
11) adb shell
A $ prompt from the android will open now (this should also be where the Allyroot.bat file should drop you, with the above steps already completed):
Part 2
Enter these commands from the $ prompt above:
1) /data/local/asroot2 /system/bin/sh
(at this point your $ prompt should be a # meaning you are root, if not, type exit and then begin over, when you open the new ./adb shell you will be # root)
When you get # shell, UNMOUNT the sdcard!!!!! This will make the correct link available. Then continue on.
2) Use the menu option on the phone to disable sharing the SD card via USB
2a) mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
3) cat /sdcard/Superuser.apk > /system/app/Superuser.apk
4) cat /sdcard/su > /system/bin/su
5) chmod 06755 /system/bin/su
Last edited by heffe2001; July 1st, 2010 at 09:07 AM.
Reason: Left out a step
The Following 4 Users Say Thank You to heffe2001 For This Useful Post:
I'm trying to do this through Ubuntu so i'm assuming I need to download the Android SDK for linux (which I did), but i'm obviously doing something wrong because when I try to run the ./adb commands, I get an error about the file or directory not found.
Anyone have any ideas why I would be having trouble with the adb commands? Do I need to extract the sdk to a certain location?
I'm trying to do this through Ubuntu so i'm assuming I need to download the Android SDK for linux (which I did), but i'm obviously doing something wrong because when I try to run the ./adb commands, I get an error about the file or directory not found.
Anyone have any ideas why I would be having trouble with the adb commands? Do I need to extract the sdk to a certain location?
you need to point the terminal to your adb location if its on desktop do:
cd ~/Desktop
Yeah i tried those steps on windows (vista x64) and i get all the way until it says "SUCCESS: Enjoy the shell" (supposedly gaining root access) except the prompt never changes from $ to #. it just stays stuck unrooted. i've tried this method several times with the same result. Also my sd card was mounted when i was doing this as i know some people have had that problem before.
The Following User Says Thank You to philly For This Useful Post:
Yeah i tried those steps on windows (vista x64) and i get all the way until it says "SUCCESS: Enjoy the shell" (supposedly gaining root access) except the prompt never changes from $ to #. it just stays stuck unrooted. i've tried this method several times with the same result. Also my sd card was mounted when i was doing this as i know some people have had that problem before.
Read the topic better, it says:
When you get # shell, UNMOUNT the sdcard!!!!! This will make the correct link available. Then continue on.
2) Use the menu option on the phone to disable sharing the SD card via USB
3) cat /sdcard/Superuser.apk > /system/app/Superuser.apk
4) cat /sdcard/su > /system/bin/su
5) chmod 06755 /system/bin/su
The Following User Says Thank You to Vmanisme For This Useful Post:
[QUOTE=Vmanisme;1040988]Read the topic better, it says:
A $ prompt from the android will open now (this should also be where the Allyroot.bat file should drop you, with the above steps already completed):
Part 2
Enter these commands from the $ prompt above:
1) /data/local/asroot2 /system/bin/sh
(at this point your $ prompt should be a # meaning you are root, if not, type exit and then begin over, when you open the new ./adb shell you will be # root)
When you get # shell, UNMOUNT the sdcard!!!!! This will make the correct link available. Then continue on.
2) Use the menu option on the phone to disable sharing the SD card via USB
3) cat /sdcard/Superuser.apk > /system/app/Superuser.apk
4) cat /sdcard/su > /system/bin/su
5) chmod 06755 /system/bin/su
The Following User Says Thank You to Vmanisme For This Useful Post:
I got that same error when trying to do it through Ubuntu. I just can't figure out why i'm having so many issues with this. I'm following all of the steps to the letter, but it just ain't working.
BTW, in case I ever get past the adb steps, when you say to unmount the SD card, does that mean to unmount it from the computer or does it mean to go into the 'Settings\SD Card and phone storage' and unmount it from there?
Last edited by flyinjoe13; June 30th, 2010 at 07:11 AM.
The Following User Says Thank You to flyinjoe13 For This Useful Post:
I believe I got it to root (although, there is no indication in the instructions to tell you if you are successful). I have the SuperUser icon in my downloaded apps now.
FYI - The SD card should be unmounted through the phone via SD Card & Phone Storage > Unmount SD Card.
Then, you should perform the operation described as 2a in the previous post and follow the rest of the instruction in Part 2 of the original post.
I do have some confusion about how to use it.....what are the best apps for the LG Ally that require root access?
I also am unclear how PdaNet is supposed to function. I cannot connect to my device using the taskbar shortcut (GUI tools) and can only connect via the command prompt after a couple of attempts.
Any guidance on how to use this once the rooting is complete would be appreciated.
I'm betting if you're getting an access denied, it's quite possible the commands need to be changed like follows:
Instead of:
adb push su\asroot2 /data/local/
change it to:
adb push su/asroot2 /data/local/
Makes it more difficult that I don't have a physical Ally in hand to try it on, but at least it's got the adb working in Windows. Now if we could just get someone to write a nice little vb app that would do all that for you, and just drop you at a rooted phone, lol.
Make sure after you run the .bat file, to continue with the steps in part 2 (and you WILL need to add the mount command, I'll edit my directions to add that step back in).
The windows instructions work very well. Here is my post from lgallyforums.com (my responses are in bold):
Quote:
These directions SHOULD work for Windows, just make sure you use the drivers from pdanet, as they work in XP/Vista/7, x32 & x64. Most of these instructions are from Crepiduse. I HAVE NOT TESTED THIS AT ALL, BUT THIS SHOULD WORK JUST LIKE THE LINUX DIRECTIONS. I'M NOT RESPONSIBLE FOR YOU BRICKING YOUR PHONE, YOU HAVE BEEN WARNED... Also, if someone would test this and report back if it works or not, that'd be great, lol.
My pre-configured pack with batch file for the initial parts of the root process is available here... Let me know if you get errors pushing the files up to the phone (not sure if the sdk uses the standard windows \, or the linux / on the windows side, lol).
make it easy for yourself and download his package from that link. it's all of 23mb in size and his directions are almost spot on from this point. not only that, but you can skip steps 2, 3, and 4 in part 1.
-----------------------------------------------------------------------
Windows
Part 1
Mount SD Card in Phone!
1) download windows client pack for pdanet for your flavor of windows and install drivers for debug access (or my pack I already pre-configured for root on the Ally) Download PDANet
this is very important. This program essentially gives you adb access to your phone without finding a way into the recovery console - which I have yet to find.
Follow the installation directions to a "T". The step about about going into "USB debugging" mode is most important. If you don't do that, adb will NOT see the phone. (Settings -> Application Settings -> Development -> check the box next to "USB Debugging" and click "OK" on the next screen)
edit: a little more info on the installation of PDAnet. This program is going to install the ADB driver for your ally phone. When it starts popping up and wanting to install multiple LG USB Modem's, just ignore them because you aren't going to have the drivers. The only thing that needs to be installed correctly is the ADB driver.
----------------------------------------------------------------------
2) download android sdk for windows & extract to a folder (c:\android\sdk for example)
3) download http://zenthought.org/tmp/asroot2 and place in your c:\android\sdk folder
4) wget http://bit.ly/brI0EV
To make things easier, I would create a folder under the c:\android\sdk\tools called su (md c:\android\sdk\tools\su) and copy the asroot2, and the contents of the zip file over to this (just the su file, and the apk file, the rest shouldn't matter). Alternately, I'll post up a pre-configured folder you can extract into your c: root, and run the allyroot batch file in the c:\android\sdk\tools folder from there with everything where it should be for these directions...
5) bring up a command prompt in windows (might have to be administrator-level cmd, not sure)
6) Change into the folder you created in step 2 (cd c:\android\sdk\tools in my example)
7) adb push su/asroot2 /data/local/
8) adb push su/su /sdcard/su (unless you've already done #4)
9) adb push su/Superuser.apk /sdcard/Superuser.apk
10) adb shell chmod 0755 /data/local/asroot2
11) adb shell
A $ prompt from the android will open now (this should also be where the Allyroot.bat file should drop you, with the above steps already completed):
At this point, the only way I could get the root prompt to come up was to unmount the SD Card (Settings -> SD Card & Phone Storage Settings -> click "Unmount SD card") from the phone completely and remove it. Seems weird but it worked. Once you get through step 2a, push the SD Card back into the phone and wait for it to re mount the card. You'll need the card in the phone for step 3 and beyond.
------------------------------------------------------------------------
Part 2
Enter these commands from the $ prompt above:
1) /data/local/asroot2 /system/bin/sh
(at this point your $ prompt should be a # meaning you are root, if not, type exit and then begin over, when you open the new ./adb shell you will be # root)
When you get # shell, UNMOUNT the sdcard!!!!! This will make the correct link available. Then continue on. <-- I'm pretty sure you can ignore this line - crux.v
2) Use the menu option on the phone to disable sharing the SD card via USB <-- and this one. just make sure to unmount and remove the card prior to typing in step 1 - crux.v
2a) mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
3) cat /sdcard/Superuser.apk > /system/app/Superuser.apk
4) cat /sdcard/su > /system/bin/su
5) chmod 06755 /system/bin/su
this will void a warranty but you're not actually modifying any system files so the chances of actually bricking your phone are slim to none. just don't go deleting whatever files you want once you get root access.
the obligatory "screen shot or it didn't happen"
Last edited by Crux.V; June 30th, 2010 at 01:45 PM.
The Following User Says Thank You to Crux.V For This Useful Post:
This is what you should see after opening the terminal emulator on the Ally and typing in "su". You should actually be prompted by the "superuser permissions" program that you need to give the terminal emulator root access (in which you need to click "allow"). After that you should see the "#" prompt.
The Following User Says Thank You to Crux.V For This Useful Post:
OK, I'm going nuts here. I have downloaded all of the sdk stuff for windows. I have Pdanet on my phone and computer. I have tried doing steps 5 through 11 to no avail. For the first 10 times I couldn't get past the $. I did everything the directions said to do at the $ and never got to the # sign. The last two times, I wind up with a device not found message. My SD card is mounted. Debugging is on. What do I need to do to correct this.
I am using a Windows 7 operating system and my LG Ally.
thats the exact problem i was having. i saw that Crux.V said that taking the sd card out completly allowed him to get to the root prompt so i'll try that when i get home n post here if it works...
Device(s): Droid Eris rooted with Ivan 1.0, BB 8830
Carrier: Not Provided
Thanks: 5
Thanked 10 Times in 9 Posts
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
__________________
"No bastard ever won a war by dying for his country. He won it by making the other poor dumb bastard die for his country." General George Patton
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:
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.
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)...
Last edited by Crux.V; July 2nd, 2010 at 07:48 AM.
The Following 6 Users Say Thank You to Crux.V For This Useful Post:
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.
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).
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 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.
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! 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
Last edited by bamaredwingsfan; July 2nd, 2010 at 01:03 AM.
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
I tried to address the "permission denied" errors in my post here.
Please let me know if you get it to work using that method
I will see if I can't find a work around for the invalid length issue in a bit.
please keep any issues you are having with these guides out of this thread. There is another thread for this purpose.
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!
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?
Last edited by bdufflebag; July 6th, 2010 at 12:56 AM.
Reason: I figured something out, but still have another problem.
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.
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.
Doesn't work. Sorry. Wait, when do I remove the card?
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.
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
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?
__________________
MotoW385 => LG The V => Samsung Rogue => LG The V => HTC Droid Eris => Palm Pre Plus => HTC DROID Eris => LG The V => Motorola DROID => LG The V => HTC DROID Incredible