/etc/init/adbd-emergency-shell.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 15 16 17 18 19 20 21 22 23 | # adbd - run adb emergency shell
#
# This task enables the adb shell in emergency mode if the
# android container fails to start
description "adbd emergency shell"
start on stopped lxc-android-config RESULT=failed
stop on runlevel [!2345]
respawn
pre-start script
echo 0 >/sys/class/android_usb/android0/enable
echo -n 18d1 >/sys/class/android_usb/android0/idVendor
echo -n D002 >/sys/class/android_usb/android0/idProduct
echo -n adb >/sys/class/android_usb/android0/functions
echo 1 >/sys/class/android_usb/android0/enable
end script
exec /usr/bin/adbd
|