/usr/share/upstart/sessions/android-usb-state.conf is in lxc-android-config 0.230+16.04.20160328-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # android-usb-state
#
# Sends android-usb-connected/disconnected events, based
# on the events from udev. Used by the mtp-server job.
description "Emits android-usb-connected/disconnected events"
start on android_usb-device-changed
task
emits android-usb-connected
emits android-usb-disconnected
script
if [ "$USB_STATE" = CONNECTED ]; then
/sbin/initctl emit android-usb-connected
elif [ "$USB_STATE" = DISCONNECTED ]; then
/sbin/initctl emit android-usb-disconnected
fi
end script
|