2# -*- Mode: sh; indent-tabs-mode: nil; tab-width: 4 -*-
4# Our goal here is to get an Ubuntu Touch device into a testable unlocked state.
5# This will include a reboot.
7WAIT_COMMAND="adb reboot; sleep 5; adb wait-for-device; sleep 20"
9while getopts s:w: opt; do
12 export ANDROID_SERIAL=$OPTARG
23 # We need to go through sudo to get a proper environment for dbus set up
24 UNLOCK_OUTPUT=$(adb shell "gdbus call --session --dest com.canonical.UnityGreeter --object-path / --method com.canonical.UnityGreeter.HideGreeter && echo Greeter unlocked" 2>&1)
25 if echo "$UNLOCK_OUTPUT" | grep 'Greeter unlocked' >/dev/null; then
26 echo "I: Unlock passed"
29 echo "I: Unlock attempt $i failed, script output: '$UNLOCK_OUTPUT'"
34echo "I: Too many unlock failures, giving up"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list