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

learn more… | top users | synonyms

1
vote
2answers
1k 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 ...
2
votes
1answer
46 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.
2
votes
1answer
4k 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 ...
1
vote
1answer
922 views

is there a way to run *.sh file by just touching it in a file manager?

I mean like it is when user opens an image file a pane opens where user can select app for given type. But when I'm clicking on *.sh file the first option that shows up is to open as ...
0
votes
1answer
192 views

Automatically runs Dolphin Browser on boot up

I am new here. I have some android sticks. I use them to run a kiosk. That is some kind of newspaper on a big screen. I runs in the dolphin browser. I want that my clients just have to power on the ...
0
votes
1answer
270 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
1answer
128 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 ...
-1
votes
1answer
37 views

Executing script on device shutdown

For custom scripts at boot, we have init.d. I want to know if there's a possibility of executing a custom script when shutting down, something similar to init.d or by using an APK?
4
votes
0answers
704 views

How can I change preferred network type through a script (or terminal command)

I'm currently attempting to create a workaround for a problem that is plaguing a ROM that I'm using. While my phone and ROM are capable of using LTE, and use it perfectly fine, the "preferred network ...
2
votes
0answers
332 views

Running your own .sh script at vold.decrypt=trigger_shutdown_framework via init.rc (android 5.0)

I want to workaround a vendor bug in an Android 5.0 phone (chinese, MTK, no proper source) Problem is due to a bug in some binary, /data is not properly released on ...
2
votes
0answers
160 views

ifup/ifdown scripts

I am fiddeling with some network related things and want to try them on Android too. In Ubuntu it was quite easy to run some commands if an interface (eth0 or wlan0) goes up or down by simply adding ...
1
vote
0answers
357 views

How can I run a shell script when some WiFi is connected?

I have a really simple shell script, that just adds a route to my internal development machine. This is useful, as that machine has some LXC containers inside, so I can reach all my containers from my ...
1
vote
0answers
605 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
29 views

CWM recovery Nandroid Backup

Is there any way to create a Nandroid backup inside CWM recovery, by using the /cache/recovery/extendedcommand file? (This file supports all the commands a normal updater-script file supports inside ...
0
votes
0answers
49 views

Automatically scroll down using the UI?

I have an app with a window/UI that is extremely high/long. I have been scrolling down manually for several minutes without reaching the end. Is there a way to script Android to scroll down? On my Mac ...
0
votes
0answers
181 views

How to remount /system from host shell script?

I am trying to remount the /system partition from a shell, and tried both commands suggested in this post, but it does not work. Here are the script commands I am issuing: adb shell mount | grep -e ...
0
votes
0answers
64 views

Wanted: A shell script to automate upgrades

I have a rooted Nexus 5, but this question would apply, I think, to any rooted device running Android 5.x and higher. Note also this is a question about a script to run on a osx/linux to manipulate ...
0
votes
0answers
46 views

How to store list of installed (paid and unpaid) apps to a log file?

I would like to store a list of all paid and unpaid apps in a log file (which I would then upload to Google Drive or FTP to some other server). This way if my phone is lost, stolen, or breaks, I will ...
0
votes
0answers
72 views

How to run a startup script on android mk808b plus?

I'm using an authentication app called 'Proxy droid' to authenticate mk808 device on our network. Every time device get restarted I've to manually switch on the app and then switch on the ...
0
votes
0answers
71 views

Any way to disable/enable mobile/cellular data via a binary executable?

I want to create a script that involves disabling and enabling mobile/cellular data, but I can't find a binary for it anywhere. Am I missing something? (I have CM12.1 if there's something that it has ...
0
votes
0answers
275 views

Mounting USB in android 4.1.2

I am trying to mount USB pen drive in my old Xperia phone running andorid 4.1.2 When I connect OTG device to my phone I get an USB power consumption error. After little search I found a command to ...
0
votes
0answers
111 views

How to automate post install setup

I've noticed recently that i spend quite a bit of time setting up various settings after a clean ROM install. I was wondering how could i automate this post install hassle. Specificly im talking ...
0
votes
0answers
520 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
286 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 ...