This file is indexed.

/usr/share/initramfs-tools/scripts/panic/adbd is in initramfs-tools-ubuntu-touch 0.72.

This file is owned by root:root, with mode 0o755.

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
#!/bin/sh

PREREQ=""
prereqs()
{
	echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac


echo "initrd: enabling USB debugging" >/dev/kmsg || true

path="/sys/class/android_usb/android0"
panicpath="/sys/module/kernel/parameters/panic"

echo 18d1 >$path/idVendor || true
echo D002 >$path/idProduct || true
echo adb >$path/functions || true
echo 1 >$path/enable || true

echo 0 >$panicpath || true

mkdir -p /system/bin
cp /bin/sh /system/bin/

echo "initrd: starting adbd for USB debugging" >/dev/kmsg || true

/sbin/adbd