How do I configure Android without using the touch screen? I have an old Android phone around whose display broke after a fall. The touch screen has stopped working but I am reluctant to accept the device merely as a paper weight.

I do have some use cases for the device, e.g. as a file server, if only I could configure the network settings and install certain apps.

My specific use case is not the question but:

How do I configure my Android device without using the touch screen?

I wonder if it is possible to configure the device via USB connection.
You can send fake keys and touches to an Android device using adb and USB connection.

http://philatwarrimoo.blogspot.com.au/2013/06/root-huawei-x3-8150-without-windows-or.html

About 3/4 into my post I present a bash script to send keys and touches to allow me to setup an Huawei IDEOS phone.

eg

adb_tap 0x70 0x80  # tap on android icon
adb shell input keyevent 20  # down to 'Create'
adb shell input keyevent 20  # down to 'Sign in'
adb shell input keyevent 23  # enter
adb shell input text 'username@gmail.com'
adb shell input keyevent 20  # down to 'password'
adb shell input text 'password or 2-factor code'  # 2-factor pw
adb shell input keyevent 23  # enter
adb shell input keyevent 20  # down to 'Sign in'
adb shell input keyevent 23  # enter