/etc/init/android-tools-adbd.conf is in android-tools-adbd 4.2.2+git20130218-3ubuntu23.
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 24 25 26 27 28 | # adbd - run adb debugging shell
#
# This task enables the adb shell
description "adbd"
start on android-container persist.sys.usb.config=*adb
stop on runlevel [06]
respawn
pre-start script
if [ -d /sys/class/android_usb ]
then
if [ -d /sys/class/android_usb/android0/f_ffs ]
then
# some devices use the functionfs (i.e. manta)
# we need to mount it to keep adb working
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb
fi
else
grep -q qemu /proc/cmdline || { stop; exit 0; }
fi
end script
exec su - -c adbd
|