Commit Graph

45 Commits (master)

Author SHA1 Message Date
Alan SCHNEIDER ab82c025b7 Explorer: green text color 2012-06-17 22:10:06 +02:00
Alan SCHNEIDER 210df7d4dd * Increased top margins 2012-06-12 18:17:54 +02:00
Alan SCHNEIDER 1d74c6e5eb * Rework of colors (dark/ICS/green)
Chevron still to color in white
2012-06-12 18:04:23 +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 48b6c128fc Work in progress 2012-05-21 21:40:36 +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 a0fcc4eb73 * Removed startAtBoot/onlyIfRunningBefore (not working) 2012-04-27 16:47:23 +02:00
Alan SCHNEIDER 37da75cde9 * Fix: market icons for superuser/busybox 2012-04-27 16:47:23 +02:00
Alan SCHNEIDER e3738bb938 * ServerUtils.getDropbearVersion parser dropbear version (displayed in AboutPage)
* Improves layouts compatibility: using LinearLayouts instead of RelativeLayouts
* Removes res/layout/settings_banner (unused)
2012-04-27 14:08:17 +02:00
Alan SCHNEIDER 9a231ab77e * Improves: Explorer has a fixed header 2012-04-27 11:30:42 +02:00
Alan SCHNEIDER ebeded4b42 * Implements notifications (optional, default is true)
* Improves: onBackPress finished ExplorerActivity if dirStack is empty (top level)
* Improves: Removes 'password' label in SettingsPage.Credentials
* Fix: list_item_middle for 2nd and 3st items of SettingsPage.General
2012-04-27 00:59:53 +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 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 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 db56db20b2 * Accounts (only one for now) can be set in Settings
* Adds corresponding SharedPreferences
  * Bind EditText to SharedPreferences
* SettingsPage sets the Hint messages of AlertDialogs
2012-04-25 17:40:44 +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 4349eeaa14 * Improved Explorer (graphics, sorting etc.) 2012-04-25 15:53:10 +02:00
Alan SCHNEIDER f520b920d0 * Adds Explorer 2012-04-25 15:26:53 +02:00
Alan SCHNEIDER c0391375d3 * Optimized layouts
* About/appVersion is now dynamic from a static variable in MainActivity
2012-04-25 01:39:18 +02:00
Alan SCHNEIDER 9bde718224 * After deliberations, Help is removed 2012-04-25 01:03:20 +02:00
Alan SCHNEIDER edf257e85b * First writtings about Help 2012-04-25 00:59:27 +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 7131225493 * Resized and implemented new icons
* Implemented donate link (webbrowser/paypal)
* Fix: about 'github.' wording
2012-04-24 21:18:43 +02:00
Alan SCHNEIDER e4edbceddd * Using static references everywhere for SettingsHelper
* Set the AlertDialog's default text from SettingsHelper
* Banner/ListeningPort values are checked and set
* ServerPage's infos takes ListeningPort into account
* Fix: .setChecked(SettingsHelper.get()) does not call SettingsHelper.set() anymore
2012-04-24 18:12:41 +02:00
Alan SCHNEIDER c95f3a5b03 * Banner/ListeningPort LinearLayouts respond to clicks
* Custom AlertDialog (from XML) for Banner/ListeningPort
* Banner/ListeningPort's values displayed under them (in the same LinearLayout)
2012-04-24 17:44:39 +02:00
Alan SCHNEIDER 86f5eb7e72 * Prevent Git from indexing MacOS crap 2012-04-24 17:01:46 +02:00
Alan SCHNEIDER 6446e8a604 * Adds icons (unresized)
* Updates README with copyright of icons (all Free)
2012-04-24 16:51:03 +02:00
Alan SCHNEIDER 740ae79d05 * Settings
* Basic implementation of:
    AlertDialogs for Banner and ListeningPort
2012-04-24 15:17:04 +02:00
Alan SCHNEIDER c543d995b2 * Prepare the startAtBoot option 2012-04-23 17:12:10 +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 6649148ba9 Valid dropbear binaries 2012-04-23 11:02:32 +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 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 1b5fc46bc7 * Unstranslated app (my choice, for now)
* Disable ProgressDialog for CheckAction
2012-04-19 11:51:59 +02:00
Alan SCHNEIDER 82982ec1dd Fix server layout 2012-04-18 17:02:50 +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 d7df451351 * Temporary remove (TextView) info
* Callbacks set and working for ASyncTasks: StartServer, StopServer, DropbearInstaller
* Cleanup of (View) updates
* Cannot install dropbear if hasRootAccess == false
2012-04-17 17:03:41 +02:00
Alan SCHNEIDER 44eef36a57 * Add busybox detection to root detection process (su + Superuser + busybox)
* DropBear detection is OK
* DropBear installation is OK
* DropBearInstaller implemented in a ASyncTask without callback
* Basic Start/StopServer ASyncTask implementation
2012-04-17 14:49:00 +02:00
Alan SCHNEIDER 1c6a42fce0 Second day of work:
* Using RootTools with an facade 'DropBearServerHelper'
* Checking root (su + Superuser)
  Propose Superuser on Market
* Checking dropbear (dropbear + dropbearkey)
  Propose installation
* Log window at the bottom of ServerPage
* Install/Configure buttons are shown only if needed below 'Root privileges' and 'Dropbear status'
* Conditional 'Start/Stop' button OK
* Links are launching Intents in AboutPage (rate/donate/website)
2012-04-16 15:55:01 +02:00
Alan SCHNEIDER 6491f69db5 Bind updated layouts with fold/unfold 2012-04-13 17:50:55 +02:00
Alan SCHNEIDER 4385954f03 Add Eclipse project files
Update GitIgnore
Update layouts
2012-04-13 12:46:12 +02:00
Alan SCHNEIDER 9bf36ebc91 First day of work:
* Basic templates (android-viewpagertabs, android-uitableview):
  - main, with header and viewpagertabs
  - settings
  - server
  - help
  - about
* Basic code for views
* Root implementation (RootTools, custom class RootAccess)
* Android API 10+
2012-04-13 10:38:01 +02:00