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
22from unity8 import process_helpers as helpers;
23logging.basicConfig(level=logging.INFO);
24bus = dbus.SystemBus().get_object("com.canonical.powerd", "/com/canonical/powerd");
25cookie = bus.requestSysState("unlock-device-hold", 1, dbus_interface="com.canonical.powerd");
26helpers.restart_unity_with_testability();
27bus.clearSysState(cookie, dbus_interface="com.canonical.powerd");
33UNLOCK_OUTPUT=$(adb shell "sudo -u phablet -i python3 -c '$UNLOCK_SCRIPT'" 2>&1)
34if echo "$UNLOCK_OUTPUT" | grep 'Greeter unlocked' >/dev/null; then
35 echo "I: Unlock passed"
38 echo "I: Unlock failed, script output: '$UNLOCK_OUTPUT'"
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