Bash is a command processor, typically run at the command-line, allowing the user to type commands which cause actions. Bash can also read commands from a file, called a script.

learn more… | top users | synonyms

2
votes
1answer
87 views

defining functions in TWRP

In "normal" android you start up a Terminal emulator or do "adb shell" and then from there you can defining a function by: function name { #code } name #runs "name" But by using adb shell over ...
0
votes
1answer
125 views

Addon.d bash script for removing apks after nightly reflash on Android 5.1 CM12.1 not working

I'm trying to have a bash script in /system/addon.d/ that removes unwanted apks from a nightly Android 5.1 (CM12.1) install for my Galaxy Nexus phone. Each new nightly reflash will reinstall some ...
0
votes
1answer
164 views

Android Tethering - Shell To Python Code (SL4A API)

I know I can convert how I call an activity from within a shell to python code. So given the correct code can someone help me in that conversion? I know I can use pyjinus so that should be another ...
0
votes
1answer
242 views

Error opening terminal: Screen

I just installed nano on my Nexus 9, which is rooted. However, when I try to run nano, it says "Error opening terminal: screen." bash-3.2# nano Error opening terminal: screen. Any help would be ...
1
vote
0answers
61 views

Checking if audio is playing with bash script on Tasker

I have the small script below to check if audio is in use on my Android. if grep -q RUNNING /proc/asound/card*/pcm*/sub*/status; then echo "Playing" ; else echo "Idle"; fi It works nicely in the ...
1
vote
0answers
400 views

Install Bash on rooted Kindle Fire

I just rooted my Kindle Fire and installed QuickSSHd, an SSH daemon app. I can log in via SSH (using Putty in Windows 7) and become root, etc. It appears, however, that the only shell installed is ...
0
votes
0answers
126 views

Rooted phone no root access in bash but sh

on cm 12.1 (I know the nightlies) I experienced something very curious. at first, if I start a terminal emulator, I'm not root. I'm just the user the app is running in. so if I do echo $USER it ...
0
votes
0answers
533 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 ...
-1
votes
0answers
25 views

i can't execute bash commands and more permissions of super user

I could not execute many Bash commands in the shell and I could not change the content, change the permission or paste file to many directories, example: /usr/bin – even when I ran it as root. I think ...