Commit Graph

16 Commits (master)

Author SHA1 Message Date
Alan SCHNEIDER aeaeb115c9 * Check WiFi before ServerStarter
* Retored 'ps dropbear' quick parsing to check if ServerStarter has to kill before starting
2012-06-13 10:52:11 +02:00
Alan SCHNEIDER cc34afb1d9 * Use of a lockFile (not a pidFile anymore)
* Calls killall() instead of kill()
2012-06-12 17:14:54 +02:00
Alan SCHNEIDER 0cbfd9d8d7 * Improves: ServerStopper calls killall() directly if ServerPid <= 0 2012-04-27 13:41:06 +02:00
Alan SCHNEIDER deda98fcc1 * SettingsPage.CredentialsLogin moved from String to Boolean to reflect dropbear's behavior
* CredentialsAlertDialog updated
  * ServerPage.Infos updated
  * SettingsHelper updated
* Fix: kill -9 pid is called along with kilall
2012-04-26 21:01:35 +02:00
Alan SCHNEIDER 0af0b5a89a * Moves CompleteRemoval from SettingsPage.General to SettingsPage.Dropbear
* Removes banner (was not working), puts ListeningPort on top
* Detects if storage is missing before running Explorer
* Toasts asking to restart the server upon Dropbear configuration changes
* Nice messages during installation and removal
* ServerStopper now alwasy uses killall()
* Fix: ServerUtils.getPublicKeys(): retrieves only the first key
2012-04-26 18:06:36 +02:00
Alan SCHNEIDER 5103249e82 * Stores ServerPid to save precious ServerUtils.getServerPidFromPs() calls
* Removes useless FileSelected and onActivityResult implementations
* Fix: ServerPage.PID was not aligned right
2012-04-25 17:10:02 +02:00
Alan SCHNEIDER 6329bb348f * Adds setting assumeRoot in General
* Handles in a cleaner way errors in Tasks:
  return falseWithError(errorMsg),
  which Logs, Toasts and returns false
* ServerUtils.getServerPidFromFile checks if file exists first
2012-04-24 23:52:40 +02:00
Alan SCHNEIDER a4f2354f99 * Implementation of hideAllBut() than hides all contents except one
Also, clicking on the active content will invert its visibility.
* Massive cleanup/rewrote of Log.* calls
* Fix: clickable ServerPage's infos
2012-04-24 22:57:45 +02:00
Alan SCHNEIDER f48d5616aa * BootReceiver implementation (not tested)
* Exceptions logs (a bit) more verbose
* SettingsHelper
  * Now a Singleton
  * Uses DefaultSharedPreferences
  * Creates an Editor for each setter
* Fix: dismiss() on a null ProgressDialog in all tasks
2012-04-24 12:56:58 +02:00
Alan SCHNEIDER 7a3033cb74 * Improves ServerStopper
* Human-readable Toast messages
2012-04-23 18:17:13 +02:00
Alan SCHNEIDER bb36eda359 * Code cleanup (static, final, exceptions)
* ServerUtils.getServerPidFromPs() used by default
* ServerUtils.getServerPidFromFile() is unusable because dropbear waits a bit before writing to the pidFile
2012-04-23 16:21:45 +02:00
Alan SCHNEIDER 262064f8e7 * Merge branch 'devel' of github.com:shkschneider/android_DropBearServer:
* Display PID
  * ServerStarter functioning
  * ServerStopper functioning
  * Better DropbearRemover
  * Better DropbearInstaller
  * ShellUtils always uses Busybox
  * New recursive functions
  * Fix github link: leonnib4 -> shkschneider
  * Compatibility commit
    * match_parent -> fill_parent
    * Fix @Overrides
    * Fix .R imports
* ProgressDialog with percentage
* Overall improvements
2012-04-23 10:45:12 +02:00
Alan SCHNEIDER 40039e3425 * Bind settings elements (onClick/onCheck)
* Checker called only once in a raw
* Add colors
* SettingsHelper with SharedPrefs
2012-04-23 10:19:41 +02:00
Alan SCHNEIDER 1b5037c562 * Display PID
* ServerStarter functioning
* ServerStopper functioning
* Better DropbearRemover
* Better DropbearInstaller
2012-04-23 01:39:18 +02:00
Alan SCHNEIDER a1d1fb69a5 * ProgressDialog check onCreate, spin check onResume
* Nicer ProgressDialog with horizontal chart
2012-04-19 11:28:19 +02:00
Alan SCHNEIDER 566e5cbc42 * Clear commands once executed
* minSdkVersion=8
* supports-screens small, normal, large, xlarge
* all callbacks separated and functioning
* improved verbosity (progress) of dropbear installation
* dropbear installation complete
* server pid from ps is functioning
2012-04-18 13:06:54 +02:00