[Q] Saferoot not working - files/adb.linux not found

Search This thread

nlhaines12

Member
May 6, 2013
15
1
Im attempting to root my Galaxy S4 using saferoot as detailed here: http://xdaforums.com/showthread.php?t=2565758&page=172

Android Version is 4.3
Build Version: VRUEMK2
Kernel Version 3.4.0


Here is the output I get:

Code:
./install.sh
---           Samsung i545 VRUEMJ7 Root               ---
--- Based on the CVE-2013-6282 exploit by cubeundcube ---

./install.sh: 11: [: X: unexpected operator
[*] Testing adb usability

Plug in your phone and press ENTER to continue ..../install.sh: 67: read: arg count
./install.sh: 68: ./install.sh: files/adb.linux: not found

Watch your phone. If you see the "Allow USB debugging" prompt,
tap on the "Always allow from this computer" checkbox,
then tap OK.

If this script appears to be stuck at "Waiting for your phone to appear",
then you should try unplugging and re-plugging it to get the
permission prompt for USB debugging to appear.
If you've already done that, you should tap on the USB icon
in the notifications area that says "Connected as a media device".
On the "USB computer connection" page, switch between
"Camera" and "Media Device" to see if the device appears.
[*] Waiting for your phone to appear...
Watch your phone. Unlock it and give permission for the install to run.
./install.sh: 85: ./install.sh: files/adb.linux: not found
[*] Your phone is detected and ready for rooting.

[*] Sending files to your device...
./install.sh: 92: [: missing ]
./install.sh: 95: ./install.sh: files/adb.linux: not found
./install.sh: 96: [: missing ]

[*] Starting rooting program.
./install.sh: 99: ./install.sh: files/adb.linux: not found

[*] Checking if rooting succeeded
./install.sh: 102: ./install.sh: files/adb.linux: not found
[*] Unfortunately, rooting failed. Cleaning up.
./install.sh: 105: ./install.sh: files/adb.linux: not found
./install.sh: 106: ./install.sh: files/adb.linux: not found
./install.sh: 107: [: missing ]
./install.sh: 108: ./install.sh: files/adb.linux: not found
./install.sh: 109: ./install.sh: files/adb.linux: not found

--- All Finished ---

I set permissions to 777 for all files and subdirectories. files/adb.linux is where it should be.

Can anybody help?
 

Oishikatta

Senior Member
Mar 16, 2014
194
97
Read the OP and there are directions for Linux/Mac OS. Why would I need windows?

He assumed you had pushed the saferoot files directly to your phone and attempted to run them on it.

If you are using an actual computer, then the problem is your shell/interpreter. Try running the script by opening a terminal, cd to the extracted directory, and then "bash install.sh".
 
  • Like
Reactions: nlhaines12

nlhaines12

Member
May 6, 2013
15
1
Ah, that makes sense, thanks a ton. Maybe this is a noobish question, but why doesn't the install.sh file just contain the hashbang line at the beginning?
 

nlhaines12

Member
May 6, 2013
15
1
Ah, that makes sense, thanks a ton. Maybe this is a noobish question, but why doesn't the install.sh file just contain the hashbang line at the beginning?

Tried running the install script with "bash install.sh", and it works a but better, but I'm still getting the same file not found error.

Code:
---           Samsung i545 VRUEMJ7 Root               ---
--- Based on the CVE-2013-6282 exploit by cubeundcube ---

Do you want to install Busybox on your device [Y/N]? y
[*] Testing adb usability

Plug in your phone and press ENTER to continue ...
install.sh: line 68: files/adb.linux: No such file or directory

Watch your phone. If you see the "Allow USB debugging" prompt,
tap on the "Always allow from this computer" checkbox,
then tap OK.

If this script appears to be stuck at "Waiting for your phone to appear",
then you should try unplugging and re-plugging it to get the
permission prompt for USB debugging to appear.
If you've already done that, you should tap on the USB icon
in the notifications area that says "Connected as a media device".
On the "USB computer connection" page, switch between
"Camera" and "Media Device" to see if the device appears.
[*] Waiting for your phone to appear...
Watch your phone. Unlock it and give permission for the install to run.
install.sh: line 85: files/adb.linux: No such file or directory
[*] Your phone is detected and ready for rooting.

[*] Sending files to your device...
install.sh: line 92: [: missing `]'
install.sh: line 95: files/adb.linux: No such file or directory
install.sh: line 96: [: missing `]'

[*] Starting rooting program.
install.sh: line 99: files/adb.linux: No such file or directory

[*] Checking if rooting succeeded
install.sh: line 102: files/adb.linux: No such file or directory
[*] Unfortunately, rooting failed. Cleaning up.
install.sh: line 105: files/adb.linux: No such file or directory
install.sh: line 106: files/adb.linux: No such file or directory
install.sh: line 107: [: missing `]'
install.sh: line 108: files/adb.linux: No such file or directory
install.sh: line 109: files/adb.linux: No such file or directory

--- All Finished ---
 

Oishikatta

Senior Member
Mar 16, 2014
194
97
What do you get if you run, from the saferoot directory "files/adb.linux"?

It looks like the rest of the script is working now, so you might just try downloading adb from the sdk and replacing files/adb.linux with a symlink to it.
 

Ekterm

Member
Nov 9, 2016
48
0
im having this same problem. I dont know what a symlink is, im kind of a programming noob. Did anyone figure out how make this work?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Read the OP and there are directions for Linux/Mac OS. Why would I need windows?

    He assumed you had pushed the saferoot files directly to your phone and attempted to run them on it.

    If you are using an actual computer, then the problem is your shell/interpreter. Try running the script by opening a terminal, cd to the extracted directory, and then "bash install.sh".