Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP the_pirate_predator

the_pirate_predator
22nd January 2014, 01:46 PM   |  #1  
Guest
Thanks Meter: 0
 
n/a posts
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.
Last edited by the_pirate_predator; 23rd January 2014 at 01:06 PM. Reason: Added Info
22nd January 2014, 05:45 PM   |  #2  
hnkotnis's Avatar
Senior Member
Flag Sangli, Maharashtra, India, Asia, Earth, Solar System, Milky Way Galaxy, Local Galaxy Group,Universe
Thanks Meter: 472
 
1,029 posts
Join Date:Joined: Jul 2013
More
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
27th January 2014, 01:50 AM   |  #3  
Me-Nex S's Avatar
Senior Member
Flag Manama
Thanks Meter: 94
 
168 posts
Join Date:Joined: Oct 2011
Donate to Me
More
can you plz try to run this script!!

https://www.dropbox.com/s/8atidhjswrts7qe/yamas.sh
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes