Greg Alexander
|
c4e32e3ddc
|
runOnUiThread() wants a Runnable, not a Thread, but i don't think it
matters. anyways, re-factored while i was there.
|
2018-05-19 18:33:47 -04:00 |
|
Greg Alexander
|
906d6a30ef
|
use app-private path for home/ssh directory by default, and make a menu
option to Copy App-private Path
|
2018-05-19 16:48:26 -04:00 |
|
Greg Alexander
|
af616dbc79
|
fix crash from ActivityNotFoundException when note 7 user attempts to
view documentation
|
2018-05-16 18:06:21 -04:00 |
|
Greg Alexander
|
9efa856065
|
add option to set environment variables
|
2018-05-16 16:23:12 -04:00 |
|
Greg Alexander
|
bf8c204a8c
|
don't include "IP: " in notification string
|
2016-10-17 09:53:45 -04:00 |
|
Greg Alexander
|
3ef00eb6a1
|
now the notification view looks good and has useful information
|
2016-10-17 09:47:36 -04:00 |
|
Greg Alexander
|
9c7454d222
|
when launching the sshd service, make sure the /sdcard/ssh path exists,
otherwise we won't be able to access dropbear.err
|
2016-10-17 09:35:31 -04:00 |
|
Greg Alexander
|
f652b1b3c6
|
add a contentView to the notification, which is needed at least in
android 5 (and probably earlier)
|
2016-10-17 09:12:11 -04:00 |
|
Greg Alexander
|
0523529968
|
replace awkward authorized keys editor with a single "Reset Keys" option
to delete the authorized_keys file and revert to single-use passwords
|
2016-10-16 19:07:52 -04:00 |
|
Greg Alexander
|
c9b8494352
|
add "Start on Open" option that makes the activity start the service, and
stopping the service ends the activity
|
2016-10-16 15:54:06 -04:00 |
|
Greg Alexander
|
14a9812c85
|
now if you tap on the notification it goes to the SimpleSSHD main
activity so you can conveniently stop the service
|
2016-10-16 15:13:22 -04:00 |
|
Greg Alexander
|
3da61bfa96
|
make the foreground service an option
|
2016-10-16 14:47:16 -04:00 |
|
Greg Alexander
|
ae7703fad0
|
implemented startForeground(), with some reservation
|
2016-10-01 17:35:41 -04:00 |
|
Greg Alexander
|
73d4406ee1
|
automatically restart sshd if the system kills it (or it crashes). but
don't restart it if it dies twice within 10 seconds.
only access sshd_pid (et al) from a few select spots now, with proper
synchronization.
|
2016-07-04 20:37:54 -04:00 |
|
Greg Alexander
|
4eecabf241
|
and now it works, even will create a new ssh directory from scratch
|
2016-06-19 16:45:18 -04:00 |
|
Greg Alexander
|
31fd0b37d0
|
now it compiles
|
2016-06-19 16:12:19 -04:00 |
|
Greg Alexander
|
84f9f31c14
|
first draft of new authorized_keys creation activity and support threads
|
2016-06-19 15:44:44 -04:00 |
|
Greg Alexander
|
65d628499b
|
beginning framework for authorized keys editor
|
2016-06-18 16:47:53 -04:00 |
|
Greg Alexander
|
b35cee186d
|
separate "Documentation" and "About" choices, and About just displays
version numbers now
|
2015-11-23 09:00:03 -05:00 |
|
Greg Alexander
|
a916ac5c08
|
add 'buffersu' program to wrap rsync and make sure there is no wedging
when SuperSU is combined with rsync
|
2015-06-20 13:52:34 -04:00 |
|
Greg Alexander
|
fc20a31b6c
|
if there are multiple interfaces up, go ahead and list them all
|
2015-01-18 16:32:12 -05:00 |
|
Greg Alexander
|
698ce0c52c
|
now it skips the fe80 bogus ipv6 addr
|
2015-01-18 16:26:36 -05:00 |
|
Greg Alexander
|
63d63e4f84
|
this approach using java.net.NetworkInterface doesn't seem to work either
- it gives a random ipv6 address of no relation to any reality I'm
interested in, I think
|
2015-01-18 16:12:42 -05:00 |
|
Greg Alexander
|
615e835880
|
get the ip address of the device using wifimanager, which only works if
we're on wifi, and needs a new permission
|
2015-01-18 16:10:29 -05:00 |
|
Greg Alexander
|
3620b17411
|
implement start on boot
|
2014-12-17 23:18:27 -05:00 |
|
Greg Alexander
|
8a1bc2c4e0
|
made the JNI methods static because they didn't use this anyways
|
2014-12-17 22:48:38 -05:00 |
|
Greg Alexander
|
5df0610f5c
|
implement the extra dropbear commandline options
|
2014-12-17 22:46:04 -05:00 |
|
Greg Alexander
|
637de21aca
|
add locking to resolve some thread safety issues
|
2014-12-17 20:54:40 -05:00 |
|
Greg Alexander
|
5c7d92415c
|
remove debug code from updater thread
|
2014-12-17 20:40:44 -05:00 |
|
Greg Alexander
|
a40b35a5a2
|
updater checks length as well as time, in case there are multiple
modifications within the same second
|
2014-12-17 20:39:48 -05:00 |
|
Greg Alexander
|
52a1093dde
|
make the log view always show the bottom of the log
|
2014-12-17 20:39:34 -05:00 |
|
Greg Alexander
|
4581a224ac
|
first draft of a thread to poll for changes to the dropbear.err file
|
2014-12-17 20:27:37 -05:00 |
|
Greg Alexander
|
b44b9295d5
|
add display of the dropbear.err log (it doesn't update yet)
|
2014-12-17 19:58:22 -05:00 |
|
Greg Alexander
|
932bfa3242
|
save the static pointer to the main Activity in SimpleSSHD because it'll
be used by more than just SimpleSSHDService..
|
2014-12-17 19:34:35 -05:00 |
|
Greg Alexander
|
76eb76fac4
|
get rid of the old prefs machinery
|
2014-12-17 18:43:01 -05:00 |
|
Greg Alexander
|
e49cf68feb
|
port is a string now because none of the stock preference widgets will do
a number...
|
2014-12-17 18:39:57 -05:00 |
|
Greg Alexander
|
bbcb048996
|
first draft of settings activity
|
2014-12-17 18:38:39 -05:00 |
|
Greg Alexander
|
95c028ad81
|
add an options menu to access the future settings activity
|
2014-12-17 16:46:02 -05:00 |
|
Greg Alexander
|
324bf93935
|
no need to specify -l on the shell, dropbear does it as appropriate
|
2014-12-16 23:11:51 -05:00 |
|
Greg Alexander
|
f0347f7477
|
probably startForeground() is overkill?
|
2014-12-16 18:43:12 -05:00 |
|
Greg Alexander
|
5c01b97345
|
when creating the Service, we check for a pid file for an orphaned daemon
process, and if it exists, we kill it.
|
2014-12-16 18:42:37 -05:00 |
|
Greg Alexander
|
e77351edd4
|
factor the SharedPreferences usage into its own Prefs class
|
2014-12-16 18:31:53 -05:00 |
|
Greg Alexander
|
5248db4380
|
add a (useless) service onDestroy() to clean up the sshd
|
2014-12-16 18:20:01 -05:00 |
|
Greg Alexander
|
aa006d51d8
|
eek! and call super.onPause() too
|
2014-12-16 17:11:22 -05:00 |
|
Greg Alexander
|
f5d6675cad
|
make the start button color a little more palatable
|
2014-12-16 17:09:48 -05:00 |
|
Greg Alexander
|
58eefb02b9
|
add something to wait for the forked process to die, so it doesn't become
a zombie
|
2014-12-16 17:07:26 -05:00 |
|
Greg Alexander
|
c6fbf0cbcc
|
fix getting the port number out of the UI
|
2014-12-16 16:50:05 -05:00 |
|
Greg Alexander
|
41faa118cc
|
fix typos in definition of startstop_clicked()
|
2014-12-16 16:49:54 -05:00 |
|
Greg Alexander
|
b9ad9864ce
|
whoops, chain to super.onResume()
|
2014-12-16 16:37:17 -05:00 |
|
Greg Alexander
|
1febe9ebe9
|
add service lifetime termination, and notes about future service foregrounding..
|
2014-12-16 15:55:14 -05:00 |
|