Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
4 answers
3k views

How to write Android shell history to file?

Using Terminal Emulator for Android, is there a way to enable a persistent command history? So far, I've tried the following: Initial command of export HISTFILE=$HOME/.mksh_history User mksh profile ...
2 votes
1 answer
362 views

How to use multibyte file names in adb shell?

I have a Galaxy S6 running Android 7.0: zeroflte:/ $ getprop ro.build.version.release 7.0 There exists a file which uses the Unicode codepoint U+1F308 (RAINBOW) in its ...
1 vote
1 answer
845 views

How to Check if Script is run once device is booted?

I have a script I need to run once, and only once the phone is booted. I have attempted init.qcom.post_boot.sh, init.sec.boot.sh, debuggerd, and finally mkshrc While my script ran with debuggerd, I ...
3 votes
3 answers
1k views

Work-around for process substitution in mksh

An extremely useful feature of Bash, known as process substitution, is missing in the Android shell, mksh. This is highly unfortunate as it prevent you from doing things like: diff <(sort list1) &...
3 votes
1 answer
1k views

Shell .profile or /etc/profile for old android 2.3.3

Just rooted my old phone with Android 2.3.3 and I would like to define some aliases for each shell I start (with adb or terminal app). I found this question where one answer says that /etc/profile (=/...