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

Root Ask question's here (Dont flood the root topic, please)

Thanks for the response icon. when I get the $ and type exit it gives me another $ and then I type exit again and get back to a DOS prompt. When I go back into the adb shell I get the same $. At no time have I been able to get the # and have the mount command succeed. It is really driving me nuts as I can't figure out why it isn't working when I am following the instructions to the letter.
 
Upvote 0
Will, I suspect that it depends on what you mean by "works". I tried OverclockWidget, since it's free; didn't want to pay for setcpu yet. You can change the clock speed just fine within the normal limits, but you can't overclock it (i.e., 600 MHz is the limit). It looks like you might need kernel support to do any better, so my guess is the same would happen with setcpu... i.e., it will run, and you will be able to underclock, but you can't overclock until someone gets around to building a new kernel for the device.
 
Upvote 0
So just to summarize; if you are having a problem with asroot2 not giving you a root shell (i.e., a # prompt), then:

(a) Take comfort in the fact that, at least, you are having problems at the right place. This is the actual hard step of the process, where we're exploiting a flaw in the phone software to essentially trick the phone into doing something it wasn't supposed to do.

Related to this, though, realize that no one really *knows* for sure how to make asroot2 work correctly. A lot of us have gotten it to work, but if we were to have to do it again, we might be just as bad off as you.

(b) Try all sorts of things with the SD card. That seems to make a difference for a lot of people. Try toggling the option to share the SD card with the operating system (by clicking the "Ongoing" item in the notification bar). Try removing and reinserting the SD card. Try exiting and rerunning the adb shell command. And every time you change *anything*, run asroot2 again to see if it works. This really is just a matter of fiddling until something happens.

(c) It is extremely unlikely that trying a different operating system will have any effect on whether asroot2 functions. I know a lot of people are talking about getting Linux to do this, but it's almost surely not worth your time to go install Linux somewhere if you've already got this far. Unless of course you just wanted the better operating system anyway. :)

As I've reported before, I seemed to get asroot2 working consistently by ensuring that the phone was connected by USB with USB debugging enabled, and the SD card shared with the computer. That might have just been a coincidence, though. Like I said, no one really knows for sure.
 
  • Like
Reactions: Crux.V and icon123
Upvote 0
If you are getting "permission denied" when trying to run the command "adb push <file> <file>" try copying the files to the sd card manually through windows.

allyfiles.jpg



(please note: my card was drive F: yours probably will be a different letter)

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

very important here - also copy the "asroot2" program to the SD card. I don't have it pictured because I didn't need to use this method

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

If you copied these files manually, and if you did this while you were connected into your phone (through "adb shell"), type exit until you get back to the windows command prompt (c:\android\sdk\tools). After that, use windows to eject drive F: (or what ever drive letter you had - from the task bar icon near the time in the bottom right hand corner of your screen) then unplug the phone from the computer. Wait about 5-10 second and plug the phone back in. wait another couple of seconds for windows to recognize the phone and then go back to the command prompt window and type in:

adb devices

if you see your phone again (which you should) skip the "adb push" and the "adb shell chmod ..." commands in my windows guide and type in:

adb shell

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

very important here.....

If windows can see your SD card, the phone will NOT be able to access it. If, after you plug the phone back into your computer, windows wants to look at the contents then just leave the phone connected to the computer and use windows' eject icon and "eject the drive". Windows must not be able to see the SD card for you to continue.

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

Once again you should see the "$" prompt. At this point, type in these two commands

cat /sdcard/asroot2 > /data/local/asroot2

chmod 777 /data/local/asroot2

From here, you should be able to start with step 9 in my windows guide and go from there. Let me know if you're still having issues.
 
Upvote 0
type in:

cd /data/local

then:

ls -l

you should see something similar to this:

$ ls -l
ls -l
-rwxrwxrwx shell shell 74512 2010-07-02 08:31 asroot2
drwxrwx--x shell shell 2010-06-07 00:59 tmp
$

the line that I bolded is the one you want to see. if you don't see that line, the asroot2 program is not on your phone and you need to reread/retry the steps above.

if you see that exact line, type in:

cd /system/bin

then:

ls -l

*WARNING* there are a lot of file in this directory, you will probably have to search pretty hard for the "sh" program.

you should see

lrwxr-xr-x root shell 2010-04-28 16:03 dmesg -> toolbox
-rwxr-xr-x root shell 26224 2010-04-28 16:01 playmp3
-rwxr-xr-x root shell 86972 2010-04-28 16:01 sh
-rwxr-xr-x root shell 5700 2010-04-28 16:01 diag_klog
-rwxr-xr-x root shell 73200 2010-04-28 16:01 toolbox
lrwxr-xr-x root shell 2010-04-28 16:03 df -> toolbox

these lines will probably not be exactly like what you see on your phone but the line I bolded needs to be somewhere in that long list of programs. If you don't see "sh" anywhere... you have a real problem with your phone.
 
Upvote 0
bamared, Can you please post exactly what command you're typing, and exactly what error you're getting from it? I'm looking around for that information, but I don't see it off-hand.
Im connecting the phone to the pc and running the adb device command to make sure the phone is connected. Next i will run the allyroot.bat file and it will slam back permission denied errors when the bat file tries to write the su and superuser.apk file to the sdcard. asroot2 will write correctly as it should, but those other 2 files wont. I also get the same errors if i just do the commands one at time via adb as well.
I will say though that i did get the allyroot.bat file work correctly the very 1st time i ran it. But when i got to the last command or 2 where you supposed to get the # sign, it would never work and say enjoy the shell but always be the $ sign. I tried all the steps to rerun that last step or 2 again an it would always be the same, it would say it worked but never give me the root sign. So i just closed out of the whole thing, and now all i get is permission denied errors when i am running the bat file or doing it the manual way:thinking:
As for which commands, i have typed them word for word, an also just cut an pasted them into Cpromt as well always getting the same results. Going by crux.v's walkthrough of course. I have a dual booting PC with windows 7 an XP as well, and i get those errors either which way i go.

Also if a mod would like to delete my posts from the original root thread, please do in the interest of cleaning up the thread.
 
Upvote 0
type in:

cd /data/local

then:

ls -l

you should see something similar to this:

$ ls -l
ls -l
-rwxrwxrwx shell shell 74512 2010-07-02 08:31 asroot2
drwxrwx--x shell shell 2010-06-07 00:59 tmp
$

the line that I bolded is the one you want to see. if you don't see that line, the asroot2 program is not on your phone and you need to reread/retry the steps above.

if you see that exact line, type in:

cd /system/bin

then:

ls -l

*WARNING* there are a lot of file in this directory, you will probably have to search pretty hard for the "sh" program.

you should see

lrwxr-xr-x root shell 2010-04-28 16:03 dmesg -> toolbox
-rwxr-xr-x root shell 26224 2010-04-28 16:01 playmp3
-rwxr-xr-x root shell 86972 2010-04-28 16:01 sh
-rwxr-xr-x root shell 5700 2010-04-28 16:01 diag_klog
-rwxr-xr-x root shell 73200 2010-04-28 16:01 toolbox
lrwxr-xr-x root shell 2010-04-28 16:03 df -> toolbox

these lines will probably not be exactly like what you see on your phone but the line I bolded needs to be somewhere in that long list of programs. If you don't see "sh" anywhere... you have a real problem with your phone.
I think i may see my error. When i do the above commands, here is what mine says
-rwxrwxrwx shell shell 0 2010-07-02 19:52 asroot2
-rw-rw-rw- shell shell 46809 2010-06-30 21:09 asroot2.txt
im thinking it shouldn't be a text file there. How do i delete it an start over?
 
Upvote 0
Holy cow, i did it. Im going to be honest, i don't know how i did it, but i did it. I did alot of removing and inserting the sdcard at various stages of the install so may times, i lost count. But that had alot to do with it. I will cut an past my install log, and maybe somebody can make heads or tails out of it and see something i did an it help them out.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Jason Hayes>cd c:\android\sdk\tools
C:\android\sdk\tools>adb devices
List of devices attached
A00000215934EF device

C:\android\sdk\tools>dir
Volume in drive C has no label.
Volume Serial Number is 18EF-9BE4
Directory of C:\android\sdk\tools
07/02/2010 12:01 AM <DIR> .
07/02/2010 12:01 AM <DIR> ..
07/01/2010 11:58 PM 578,611 adb.exe
07/01/2010 11:58 PM 96,256 AdbWinApi.dll
07/01/2010 11:58 PM 60,928 AdbWinUsbApi.dll
07/01/2010 11:58 PM 517 allyroot.bat
07/01/2010 11:58 PM 3,394 android.bat
07/01/2010 11:58 PM 1,565 apkbuilder.bat
07/01/2010 11:58 PM 2,129 ddms.bat
07/01/2010 11:58 PM 302,823 dmtracedump.exe
07/01/2010 11:58 PM 1,491 draw9patch.bat
07/01/2010 11:58 PM 8,596,234 emulator.exe
07/01/2010 11:58 PM 17,976 emulator_NOTICE.txt
07/01/2010 11:58 PM 921,075 etc1tool.exe
07/01/2010 11:58 PM 336,613 fastboot.exe
07/01/2010 11:58 PM 1,528 hierarchyviewer.bat
07/01/2010 11:58 PM 216,987 hprof-conv.exe
07/01/2010 11:59 PM <DIR> Jet
07/01/2010 11:59 PM 1,680 layoutopt.bat
07/02/2010 12:01 AM <DIR> lib
07/02/2010 12:01 AM 212,741 mksdcard.exe
07/02/2010 12:01 AM 205,851 NOTICE.txt
07/02/2010 12:01 AM 33 source.properties
07/02/2010 12:01 AM 1,627,623 sqlite3.exe
07/02/2010 12:01 AM <DIR> su
07/02/2010 12:01 AM 1,982 traceview.bat
07/02/2010 12:01 AM 628,727 zipalign.exe
22 File(s) 13,816,764 bytes
5 Dir(s) 68,573,335,552 bytes free
C:\android\sdk\tools>adb shell
$ cat /sdcard/asroot2 > /data/local/asroot2
cat /sdcard/asroot2 > /data/local/asroot2
cannot create /data/local/asroot2: text busy
$ chmod 777 /data/local/asroot2
chmod 777 /data/local/asroot2
$ chmod 777 /data/local/asroot2
chmod 777 /data/local/asroot2
$ /data/local/asroot2 /system/bin/sh
/data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15537/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15544/fd/3
SUCCESS: Enjoy the shell.
$ exit
exit
$ adb shell
adb shell
adb: permission denied
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15556/fd/3
SUCCESS: Enjoy the shell.
$ adb push asroot2 /data/local/
adb push asroot2 /data/local/
adb: permission denied
$ adb shell chmod 0755 /data/local/asroot2
adb shell chmod 0755 /data/local/asroot2
adb: permission denied
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15571/fd/3
SUCCESS: Enjoy the shell.
$ chmod 0755 /data/local/asroot2
chmod 0755 /data/local/asroot2
$ cat /sdcard/asroot2 > /data/local/asroot2
cat /sdcard/asroot2 > /data/local/asroot2
cannot create /data/local/asroot2: text busy
$ cat /sdcard/asroot2 > /data/local/asroot2
cat /sdcard/asroot2 > /data/local/asroot2
cannot create /data/local/asroot2: text busy
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15699/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15722/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15727/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15732/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15748/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15753/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15756/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15759/fd/3
SUCCESS: Enjoy the shell.
$ data/local/asroot2 /system/bin/sh
data/local/asroot2 /system/bin/sh
[+] Using newer pipe_inode_info layout
Opening: /proc/15767/fd/3
SUCCESS: Enjoy the shell.
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
# cat /sdcard/Superuser.apk > /system/app/Superuser.apk
cat /sdcard/Superuser.apk > /system/app/Superuser.apk
/sdcard/Superuser.apk: No such file or directory
# cat /sdcard/Superuser.apk > /system/app/Superuser.apk
cat /sdcard/Superuser.apk > /system/app/Superuser.apk
/sdcard/Superuser.apk: No such file or directory
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
# cat /sdcard/Superuser.apk > /system/app/Superuser.apk
cat /sdcard/Superuser.apk > /system/app/Superuser.apk
/sdcard/Superuser.apk: No such file or directory
# cat /sdcard/su > /system/bin/su
cat /sdcard/su > /system/bin/su
/sdcard/su: No such file or directory
# chmod 06755 /system/bin/su
chmod 06755 /system/bin/su
# chmod 777 /data/local/asroot2.txt
chmod 777 /data/local/asroot2.txt
# rm /data/local/asroot2.txt
rm /data/local/asroot2.txt
# cat /sdcard/Superuser.apk > /system/app/Superuser.apk
cat /sdcard/Superuser.apk > /system/app/Superuser.apk
/sdcard/Superuser.apk: No such file or directory
# cat /sdcard/Superuser.apk > /system/app/Superuser.apk
cat /sdcard/Superuser.apk > /system/app/Superuser.apk
# cat /sdcard/su > /system/bin/su
cat /sdcard/su > /system/bin/su
# chmod 06755 /system/bin/su
chmod 06755 /system/bin/su
# reboot
reboot
C:\android\sdk\tools>
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones