diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/android-wait-for-emulator | 25 | ||||
-rwxr-xr-x | tools/checkstyle | 2 | ||||
-rw-r--r-- | tools/reset_yubikey.txt | 13 |
3 files changed, 39 insertions, 1 deletions
diff --git a/tools/android-wait-for-emulator b/tools/android-wait-for-emulator new file mode 100755 index 000000000..57d045900 --- /dev/null +++ b/tools/android-wait-for-emulator @@ -0,0 +1,25 @@ +#!/bin/bash + +# Originally written by Ralf Kistner <ralf@embarkmobile.com>, but placed in the public domain + +set +e + +bootanim="" +failcounter=0 +timeout_in_sec=720 + +until [[ "$bootanim" =~ "stopped" ]]; do + bootanim=`adb -e shell getprop init.svc.bootanim 2>&1 &` + if [[ "$bootanim" =~ "device not found" || "$bootanim" =~ "device offline" + || "$bootanim" =~ "running" ]]; then + let "failcounter += 1" + echo "Waiting for emulator to start" + if [[ $failcounter -gt timeout_in_sec ]]; then + echo "Timeout ($timeout_in_sec seconds) reached; failed to start emulator" + exit 1 + fi + fi + sleep 10 +done + +echo "Emulator is ready" diff --git a/tools/checkstyle b/tools/checkstyle index 27aabced2..0f6d142c8 100755 --- a/tools/checkstyle +++ b/tools/checkstyle @@ -1 +1 @@ -checkstyle -c tools/checkstyle.xml -r OpenPGP-Keychain/src/main/java 2>&1 | egrep -v 'log4j' +checkstyle -c tools/checkstyle.xml -r OpenKeychain/src/main/java 2>&1 | egrep -v 'log4j' diff --git a/tools/reset_yubikey.txt b/tools/reset_yubikey.txt new file mode 100644 index 000000000..a98d4d139 --- /dev/null +++ b/tools/reset_yubikey.txt @@ -0,0 +1,13 @@ +/hex +scd serialno +scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 +scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 +scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 +scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 +scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 +scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 +scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 +scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 +scd apdu 00 e6 00 00 +scd apdu 00 44 00 00 +/echo Card has been successfully reset. |