Scripts are small programs written for a command interpreter or another scripting language.

learn more… | top users | synonyms

1
vote
1answer
18 views

Share text via HTTP request

I'd like to add an item in the system "Share" menu that sends links and other small text via HTTP POST requests. On my PC i'm using curl + a shellscript.
0
votes
1answer
100 views

Run shell script in background process no matter what activity in foreground? [closed]

I have a shell script that looks does the following: # /mnt/sdcard/touch.sh sleep 10 while [ 1 ]; do input swipe 700 380 1020 600 1000 input tap 960 540 input swipe 1220 700 900 480 1000 ...
0
votes
1answer
94 views

How can I manage “desktop” icons

I want to remove all the icons on the desktop, (and also in the bottom bar) and place new ones via ADB. My script already removes all the apps, but icons/shortcuts remanin there! Is there any command ...
0
votes
0answers
31 views

How can I detect if a shell script is running on Android?

What is the most reliable way to detect if a script is running on Android (instead of a regular Linux build)? To run scripts, I'm using bash, the Terminal app, and BusyBox.
0
votes
0answers
95 views

Help with this ADB REVERSE Tethering Script?

I added the functionality to automatically turn on reverse tethering after many fails: Now i only enter t into terminal alias t='r && sz $tether && r && sz $n' tether='am ...
0
votes
0answers
78 views

sound alarm from terminal emulator

For my purposes, I want to create a simple bash script, that will notify me when appropriate conditions will meet. Is there a way to make a sound alert from Android Terminal Emulator? I'm running ...
0
votes
0answers
118 views

Android “Boot Logo Showing Time” Script

Did anyone know where's the "Boot Logo Showing Time" script location? i want to change the boot logo show up time, because my boot logo is only show up for a half-seconds (500ms) then disappear and ...
0
votes
0answers
26 views

Trigger sync of calendar/addressbook remotely

I would like to trigger the synchronization of calender and address book on the command line (using an adb command or a script). The background is that I have set up my own caldav and carddav server ...
0
votes
1answer
40 views

Handeling android emulator via command line

I installed default android emualator in windows xp . Is there a way to launch android browser with a specific url open on it with help of command line . Basically I use emulator for testing my ...
2
votes
4answers
535 views

how can I randomize my MAC address every time my WiFi is turned on?

Given the increased prevalence of systems which track people's movements by their Mac addresses I'd like to obscure mine. I have a rooted galaxy note 2 with busybox installed. I can change my MAC ...
0
votes
1answer
205 views

Can I run scripts on startup on rooted Galaxy Note 3?

I want to be able to run a shell command (e.g. mount) on startup on my Galaxy Note 3 (stock rooted Android 4.3) Typically on Linux that'd be done using /etc/init.d but I don't have that directory on ...
0
votes
0answers
104 views

Learning Android command line

I've been googling it a lot but couldn't find anything substantial. I'm not familiar with Linux. Could you guys point me in the right direction? I want to do just about everything from android command ...
0
votes
1answer
170 views

regularly refresh Chrome tab

I have a Transformer Prime TF201 which I sit next to my main pc to display a webpage that shows stats about the systems I work on. However this page is a bit rubbish for updating and will time out ...
0
votes
0answers
185 views

How can I fix phone corruption when using USB mass storage mode?

It used to happen in stock ICS and remains in CyanogenMod 9. Whenever I connect my phone to computer through USB using mass storage mode (MSC), my phone gets crazy. In ICS, I remember it used to mess ...
1
vote
1answer
116 views

Home screen icon for terminal program?

I'm using terminal-ide http://code.google.com/p/terminal-ide/ which is basically a terminal for android with all sorts of utilities. One is able to create bash scripts for example. Is there a way to ...
0
votes
0answers
22 views

Scripting Android [duplicate]

Possible Duplicate: Is there no way to get scripts to run in Android? There were similar questions like this one here Is there no way to get scripts to run in Android?. Most of them were ...
2
votes
1answer
2k views

How can I successfully run this script on a emulated terminal on Android?

Background I am trying to install Ubuntu onto my Acer Iconia A500 using VNC and this application called Complete Linux Installer. My tablet is rooted and I have found several sources saying they have ...
0
votes
4answers
3k views

How do I script my phone?

What I mostly want to do, is quickly alter settings, add alarms etc. It is perhaps called something else? This is from a Windows PC. Language is not important, but I know Python and UNIX scripting. ...
0
votes
2answers
3k views

How to create an update.zip file that can copy & rename a file?

Here's exactly what I'm looking for - I need an 'update.zip' file that can copy a file (example): /system/framework/file-to-copy.apk to another folder: /system/ and then it would rename the ...
4
votes
2answers
2k views

Is there no way to get scripts to run in Android?

Since Android is Linux at its base, I logically think it should be possible to run a script on Android, like a Python script or PHP script (with executable bit obviously). If not conventionally, is ...
3
votes
3answers
1k views

Shell script to kill custom apps, run another app then restart killed apps?

Is it possible to make a shell script that would run using Smanager, for example, to do the following: Kill a list of custom apps loaded from a file Run one custom app loaded from the same file When ...
2
votes
2answers
691 views

How can I execute a script on the SD card and be able to pass arguments to it?

I tried executing a script on the sdcard as is because on FAT, everything is 777. ./.profile ./.profile: permission denied I added this as the initial command for the Android shell and it executes ...
2
votes
0answers
122 views

Is there an application that allows fine tuning of what ringtone to play on Android? [closed]

I'm not very satisfied with phonebook's ringtone assignment: they disappear sporadically and sometimes fail to play (default ringtone is played instead). Ideally I want an application that do this: ...
3
votes
0answers
391 views

init.d doesn't get executed

i am using samsung s2 and a custom rom, external sd card is mounted to /emmc but i want it to mount to /mnt/sdcard/external_sd, how could i mount it using init.d? i made a file called "99mount" with ...
3
votes
1answer
463 views

Can't run any Python script on my Android phone

I have an Acer Liquid Metal, Gingerbread... I've tried installing Python on Android (and s4la: http://code.google.com/p/android-scripting/) but when I run the hello world script I get: dlopen ...
8
votes
2answers
3k views

On Android can I write scripts (similar to Win .bat files) to combine several command line commands?

On Windows, I can run two commands using a .bat file. How can I achieve the same thing on Android For example: update my podcasts by calling pcastclient /updateALL force sync of my pictures ...
0
votes
1answer
321 views

Where are binaries installed?

I just recently rooted my phone so I could install SL4A. I want to execute some commands via a Python script, specifically turn Google voice off for all calls, make the call and then turn it back on. ...
11
votes
1answer
3k views

Start an Android application via a shell script?

Is it possible to start an actual Android application from the command line in Android? For example, say I'd simply like to start/bring to the front my calendar. Is there a way that I can do this ...
19
votes
3answers
41k views

How can I run a script on boot?

I'm accustomed to running scripts on boot in Linux, but I'm not sure how to do this in Android. I'd like to start my SSH daemon on start, so I'll always be able to connect. How can I run an arbitrary ...