This file is indexed.

/etc/init/adbd-emergency-shell.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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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) or (stopped lightdm RESULT=failed)
stop on runlevel [!2345]

respawn

pre-start script
        if getprop persist.sys.usb.config|grep -q adb; then
                if [ -d /sys/class/android_usb ]
                then

                if [ -d /sys/class/android_usb/android0/f_ffs ] && \
                [ -n "$(cat /sys/class/android_usb/android0/f_ffs/aliases)" ]
                then
                        if ! $(mount|grep -q ^adb)
                        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 || true
                        fi
                fi
                else
                        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
                fi
        else
                stop
        fi
end script

exec su - -c adbd