Commit Graph

20 Commits (master)

Author SHA1 Message Date
Alan SCHNEIDER b29bca2eea * Speed improvements on DropBearInstaller/Remover
* Possible fix on wrong install return code (with full paths)
2012-07-15 15:53:35 +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 c4830ea913 [1.6.0]
* App name changed to 'DropBear SSH Server'
* Using another dropbear build, supports banner
* Basic banner implementation (non configurable, for now)
* Banner implementation
* Bump version 1.6.0
2012-04-29 18:54:28 +02:00
Alan SCHNEIDER 85cbad1baa * Revert: Complete removal restored to General (for obvious reason...)
* Adds res/raw/scp to fix SCP support
* Note: logins are ineffective
2012-04-26 18:39:38 +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 ed420ca99e * Fix: Pleases dropbear by setting host keys' owner to root 2012-04-26 16:18:37 +02:00
Alan SCHNEIDER 8783364cb4 * Adds public keys
* File explorer: add a public key form sdcard
  * SettingsPage.PublicKeysList: click to drop a public key
* Wording: Accounts -> Credentials
* Layouts:
  * SettingsPage.CredentialsInfos is more clear
  * SettingsPage.CredentialsInfos is clickable
  * SettingsPage.PublicKeysContent is clickable
* ExplorerActivity callback (startActivityForResult)
  * Result comes to MainActivity
  * Request to updatePublicKeys() is sent to MainAdapter>SettingsPage
* ServerStopper uses kill and kilall from a public static in ServerPage
* Adds CredentialsAlertDialog to change credentials
  * Updates hints
  * Set default values if empty
  * Set SharedPrefs on return
* Adds PublicKeysAlertDialog to remove a key
  * Removes public key from authorized_keys
* New installation procedure:
  * Insure that files are created with app's uid
  * dropbearmulti as root in DataDir
  * symlinks in /system/xbin as root
  * host_rsa/host_dss are 600 in DataDir as app
  * pid is 600 in DataDir as app
  * authorized_keys is 600 in DataDir as app
    * This allows the reading and parsing of public keys
* New removal procedure:
  * Reflects the new file's locations
* Fix: ServerPage.GetDropbear was visible even without having busybox installed
* Fix: Toast error when starting server without WiFi (depending on SharedPreferences)
2012-04-26 15:24:04 +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 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 1de7192014 * Improves ServerUtil static methods
* Stores dropbearmulti into getDir() and not getCacheDir()
2012-04-23 13:52:55 +02:00
Alan SCHNEIDER f6f171c5eb * IPv4 address detection (android.permissions.INTERNET)
* Server
  * Network connexion check
  * Dropbear PID
  * Infos with ssh commands
  * New dropbear (from droidsshd) "dropbearmulti"
    * /data/data/.../dropbearmulti
    * Provides dropbear dropbearkey ssh scp (as symlinks)
  * Host keys now as /data/dropbear/host_rsa and /data/dropbear/host_dss
  * Authorized_keys now as /data/dropbear/authorized_keys
  * ServerStopper called before DropbearRemover, if needed
  * Checker.checkDropbear() also checks for RSA and DSS host keys
* Settings
  * Remove master password
  * Remove MessageOfTheday
  * Add master account (root:42)
* Fix: settings menus can always expand
2012-04-23 13:15:38 +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 3eebe3eae0 * Fix github link: leonnib4 -> shkschneider
* Compatibility commit
  * match_parent -> fill_parent
  * Fix @Overrides
  * Fix .R imports
2012-04-22 21:36:58 +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 b14f33047c * Unified DropBear wording
* Using android-actionbar
  * Custom home action
  * Custom check action
* New Check ASyncTask for startup and check action (with callback)
2012-04-18 16:39:29 +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