Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,777,893 Members 50,992 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
nlhaines12
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 11
Join Date: May 2013
Default [Q] Saferoot not working - files/adb.linux not found

Im attempting to root my Galaxy S4 using saferoot as detailed here: http://forum.xda-developers.com/show...65758&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?
 
nlhaines12
Old
#2  
Junior Member - OP
Thanks Meter 1
Posts: 11
Join Date: May 2013
Anybody?
 
cbmggm
Old
#3  
Senior Member
Thanks Meter 273
Posts: 547
Join Date: May 2011
Location: Medinah IL
Quote:
Originally Posted by nlhaines12 View Post
Anybody?
Don't push via ADB; run the script on a Windows PC. Read the OP.........

http://forum.xda-developers.com/show....php?t=2565758
 
nlhaines12
Old
#4  
Junior Member - OP
Thanks Meter 1
Posts: 11
Join Date: May 2013
Quote:
Originally Posted by cbmggm View Post
Don't push via ADB; run the script on a Windows PC. Read the OP.........

http://forum.xda-developers.com/show....php?t=2565758
Read the OP and there are directions for Linux/Mac OS. Why would I need windows?
 
Oishikatta
Old
#5  
Senior Member
Thanks Meter 81
Posts: 150
Join Date: Mar 2014
Quote:
Originally Posted by nlhaines12 View Post
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".
The Following User Says Thank You to Oishikatta For This Useful Post: [ Click to Expand ]
 
nlhaines12
Old
#6  
Junior Member - OP
Thanks Meter 1
Posts: 11
Join Date: May 2013
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
Old
#7  
Junior Member - OP
Thanks Meter 1
Posts: 11
Join Date: May 2013
Quote:
Originally Posted by nlhaines12 View Post
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
Old
#8  
Senior Member
Thanks Meter 81
Posts: 150
Join Date: Mar 2014
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Software Build Automation with Jenkins – XDA Developer TV

Many members of the XDA community come to learn and begin in the exciting … more

Add Bits and Pieces of Honami to Your Current ROM

In the last few months, we’ve talked about quite a few Sony Honami-related projects. … more

Always Enter the Correct Password with HideNoPasswords

If you’ve ever entered apassword on your mobile device, you’ve surely … more

Revert to Stock Recovery Effortless with Simple Recovery Switcher

Android updates released as OTA packages are very easy to apply,but they … more