4
basedir=$(dirname $(readlink -f $0))
6
if ! adb-shell dpkg -s unity8-autopilot 2>/dev/null >/dev/null ; then
7
echo "Installing unity8-autopilot as a pre-req for unlocking screen"
8
adb shell sudo apt-get install -yq --force-yes unity8-autopilot
11
adb pull /usr/share/unity8/unlock-device "${basedir}"
12
chmod +x "${basedir}/unlock-device"
14
# unlock-device will reboot for us
15
exec "${basedir}/unlock-device" -w $basedir/../../scripts/reboot-and-wait