how do you run scripts

Discussion in 'ChevyNo1' started by deadfrog82, Mar 21, 2010.

  1. deadfrog82
    Offline

    deadfrog82 New Member

    Joined:
    Feb 26, 2010
    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    0
    I keep seeing in other developers roms just run scripts to change things you don't like my question is how do you do that
  2. garrett
    Offline

    garrett Active Member Theme Developer Developer

    Joined:
    Oct 31, 2009
    Messages:
    2,017
    Likes Received:
    4
    Trophy Points:
    38
    Location:
    In a van by the River......
    scripts are just a series of linux commands that run in sequence...

    if you have a bash script created you need to "chmod u+x" to make it executable then just run the file either in adb shell or via a root terminal on the phone.

    to run the file the command would be "./samplascript" without the quotes
  3. christim
    Offline

    christim DF Super Moderator Rescue Squad

    Joined:
    Jan 23, 2010
    Messages:
    5,112
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    New England
    A script is like a batch file in windows. Anything you do often you can put into a script so you don't have to type it all out again.

    For instance, if you want to remove something you can do the following:

    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    rm /system/app/SomeSortOf.apk
    mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system

    or you can put all of the above into a script file and and then run:

    rmSomeSortOfApk

    and then run that instead
Search tags for this page
adb run script#gsc.tab
,

adb shell bash script

,

android bash script

,
bash scripting for android
,
execute bash script on android phone
,
how to run script adb
,

how to run scripts on android

,

run bash script android

,

run bash script in android

,
run bash script on android system