Yearly Archives: 2015


Changing Android system options via adb shell

While setting up an unattended testing environment which uses Android emulators, I’ve run into difficulties with the default system settings. An Android Virtual Device – like any freshly-installed Android device – is created with default settings which are not very friendly for a testing environment, namely: the lock screen is active, and shows up when […]

The "make yourself at home" screen. Known internally as "cling" screen.

Python – importing bash environment variables

I’ve run into situations where it was necessary to read the values of bash environment variables defined in a file into a python script. Something like that is achieved in bash simply by doing: source env.vars or . env.vars Where the content of env.vars could be something like this: BASE=/home/user/scripts BIN_DIR=$BASE/bin VAR1=xxxxx VAR2=yyyy The solutions […]