From 5bceb6534d5f640dcdd4d5015cecfbad4e82a7b7 Mon Sep 17 00:00:00 2001 From: mar-v-in Date: Wed, 25 Sep 2013 19:29:53 +0200 Subject: [PATCH 1/1] Java/Android stuff (me coding dirty \o/) --- AndTuer/AndroidManifest.xml | 17 ++ AndTuer/project.properties | 3 + AndTuer/res/drawable/icon.png | Bin 0 -> 990 bytes AndTuer/res/layout/door.xml | 21 ++ AndTuer/res/menu/main.xml | 6 + AndTuer/res/values/strings.xml | 10 + AndTuer/res/xml/preferences.xml | 15 ++ .../de/hacksaar/andtuer/AndroidLogging.java | 21 ++ .../src/de/hacksaar/andtuer/AsyncTyshell.java | 137 ++++++++++ .../src/de/hacksaar/andtuer/DoorActivity.java | 237 ++++++++++++++++++ .../src/de/hacksaar/andtuer/DoorSettings.java | 49 ++++ .../andtuer/IntegerTextPreference.java | 29 +++ .../de/hacksaar/javatuer/DummyLogging.java | 18 ++ .../hacksaar/javatuer/InteractiveLogin.java | 34 +++ .../src/de/hacksaar/javatuer/SshClient.java | 158 ++++++++++++ .../de/hacksaar/javatuer/StderrLogging.java | 20 ++ .../src/de/hacksaar/javatuer/TuerLogging.java | 24 ++ .../de/hacksaar/javatuer/TyshellClient.java | 91 +++++++ 18 files changed, 890 insertions(+) create mode 100644 AndTuer/AndroidManifest.xml create mode 100644 AndTuer/project.properties create mode 100644 AndTuer/res/drawable/icon.png create mode 100644 AndTuer/res/layout/door.xml create mode 100644 AndTuer/res/menu/main.xml create mode 100644 AndTuer/res/values/strings.xml create mode 100644 AndTuer/res/xml/preferences.xml create mode 100644 AndTuer/src/de/hacksaar/andtuer/AndroidLogging.java create mode 100644 AndTuer/src/de/hacksaar/andtuer/AsyncTyshell.java create mode 100644 AndTuer/src/de/hacksaar/andtuer/DoorActivity.java create mode 100644 AndTuer/src/de/hacksaar/andtuer/DoorSettings.java create mode 100644 AndTuer/src/de/hacksaar/andtuer/IntegerTextPreference.java create mode 100644 JavaTuer/src/de/hacksaar/javatuer/DummyLogging.java create mode 100644 JavaTuer/src/de/hacksaar/javatuer/InteractiveLogin.java create mode 100644 JavaTuer/src/de/hacksaar/javatuer/SshClient.java create mode 100644 JavaTuer/src/de/hacksaar/javatuer/StderrLogging.java create mode 100644 JavaTuer/src/de/hacksaar/javatuer/TuerLogging.java create mode 100644 JavaTuer/src/de/hacksaar/javatuer/TyshellClient.java diff --git a/AndTuer/AndroidManifest.xml b/AndTuer/AndroidManifest.xml new file mode 100644 index 0000000..42c81c6 --- /dev/null +++ b/AndTuer/AndroidManifest.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + diff --git a/AndTuer/project.properties b/AndTuer/project.properties new file mode 100644 index 0000000..8ef3988 --- /dev/null +++ b/AndTuer/project.properties @@ -0,0 +1,3 @@ +# This file is automatically generated by IntelliJ IDEA +# Project target. +target=android-7 diff --git a/AndTuer/res/drawable/icon.png b/AndTuer/res/drawable/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..08ee50da978889f67f56dced4e8d7c0478d400ea GIT binary patch literal 990 zcmV<410np0P)Bm=9B+4V(stve@Q6Z~?UBYzla^-QYD? z0Gd3uH3KXI6LY!-c(l*pFpq-kpg))cW`oH*q=$ilAOe1XFW?<`0d9jEAjxeU2XFmw zG$MNpdRPQ|EykmOI#dNpGOV9uA!@)_(BZ|ITrPrS#k^_{D*qo&)Mm}x?&p=#t0VaX_V7w2)js(p-os<+{IL81LJ_c?yl`er%DhhA{j4(;R z21c{f7ag=i3*R_y>%2*R1;-gm2~Y=?O7b>-aP5@ewpMox4ZReVl zNd?TmHV?G2&#l}CR|3>p70gul1Fd48E7@oIdD-e|QD76@6`IWVdW8i@ zn5;=rPIol|%xspz0%Yv7l>jkGda1$!6id>J{CWyR`}$MB&SGH~KxhH909pVofEGXt zpaswZXaTeUeNTX-B>kJh{rN6Q?{p);JxTfY%(4vD6wZey^YFRY$jW$6au+P1HcqFS}_r1U^VZ8}TJFh*8Ev9t7!0}gR zULB|5^*rp4!LtGS->HHCbcnGdAOV_G5P%jNI>wgkiw6{s>`)~VYyfM7aYWW{qhqyn zQjGTc+f)jL&j{oEFP;58U{iKAmrJM4!BnGigTNB-Qojpm0ki;G04;zPKntLx09`iu zKP3T9rgfAR;HE|1FJZphMDOxRn^*I^5rE#w&q?z3gHI;u)cNg_I&|}_G2hkz3U_H+ ztz8(KCa;8Xoi<@n=LlFOjQc^qStz=EwOE+n8}MuqeS19Q_E&%b0N#qh)WR6{{{R30 M07*qoM6N<$f=l7H!2kdN literal 0 HcmV?d00001 diff --git a/AndTuer/res/layout/door.xml b/AndTuer/res/layout/door.xml new file mode 100644 index 0000000..d19b224 --- /dev/null +++ b/AndTuer/res/layout/door.xml @@ -0,0 +1,21 @@ + + + + + +