5,814,863 Members 49,064 Now Online
XDA Developers Android and Mobile Development Forum

[SOLUTION][GUIDE]Running *.sh file without problem

Tip us?
the_pirate_predator Old
(Last edited by the_pirate_predator; 23rd January 2014 at 12:06 PM.) Reason: Added Info
#1  
Guest
Thanks Meter 0
Posts: n/a
Wink [SOLUTION][GUIDE]Running *.sh file without problem

This thread will help those who are struggling with running the scripts.

Try to clean up the code first - check for errors/bugs, update it!!

You need to root your phone.

First method:

To change permissions use chmod 0755 script.sh

as android/busybox chmod binary does not uses the chmod +x or chmod a+x notation and make sure that su binary is installed i.e phone is rooted

Second method:

Also you must have Busy Box Installed.

Here is the link to Google Play of that busybox app: https://play.google.com/store/apps/d...ybox.installer

Don't install the few latest versions because it is in nightlies.

I use Samsung Galaxy Y and I use the version 1.18.2.

Reboot your phone after installation.

Also you must have script manager installed.

Here is the link to Google Play of that manager app: https://play.google.com/store/apps/d....scriptmanager

Open Script Manager and give super user access.

Tap on Menu > Advanced Options > Config

Scroll down until you see Browse as Root

Tap on it and press the back button to save

Once again grant Script Manager SuperUser Access to save config

Exit Script Manager

Now again open Script Manager and browse for your script file (name_of_the_script.sh)

Tap on it and set properties to:

Favorites (Star Icon)

Root (Green Android Skull Icon)

After setting properties, tap on Run to execute the script installer.

When executed, it will do initial test, be patient and wait for it to complete its tasks.

If it shows errors that your phone is not rooted and the app doesn't have root permissions, then,

Sometimes, some methods are better than using terminal.

Download a root checker app from the play store and check whether your phone is really rooted.

If no, try to root again by following tutorials on xda.

If yes, update su binaries.

Also go to settings / preferences of superuser app, and click automatic response and then select 'allow'.

If you want to get yourself with terminal emulator commands, then see the following link

http://forum.xda-developers.com/show....php?t=1979909

If you are trying to copy a script from sdcard to internal memory, you can do that in three ways AFAIK:

copy the file via terminal

copy the file via file manager apps

copy by making a edify script and flashing it

If you are trying to run a script, you can do that in two ways AFAIK:

copy the file via terminal

copy by making a edify script and flashing it

Download Android Terminal Emulator from Google Play: https://play.google.com/store/apps/d...roidterm&hl=en

Goto Preferences in terminal and select Initial Command and enter "su" and save it

Also Change the terminal type to "linux" when you are using linux type commands.

Press thanks if I have helped.
 
hnkotnis
Old
#2  
hnkotnis's Avatar
Senior Member
Thanks Meter 436
Posts: 998
Join Date: Jul 2013
Location: Sangli, Maharashtra, India, Asia, Earth, Solar System, Milky Way Galaxy, Local Galaxy Group,Universe
I just want to tell you, I also have SGY and Busybox version 1.21.0 and 1.20.x work fine.

Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
 
Me-Nex S
Old
#3  
Me-Nex S's Avatar
Senior Member
Thanks Meter 66
Posts: 126
Join Date: Oct 2011
Location: Manama

 
DONATE TO ME
can you plz try to run this script!!

https://www.dropbox.com/s/8atidhjswrts7qe/yamas.sh
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes