/etc/init/android-usb-state.conf is in lxc-android-config 0.162.
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 | 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
|