Greg Alexander
|
bf8c204a8c
|
don't include "IP: " in notification string
|
8 years ago |
Greg Alexander
|
3ef00eb6a1
|
now the notification view looks good and has useful information
|
8 years ago |
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
|
8 years ago |
Greg Alexander
|
f652b1b3c6
|
add a contentView to the notification, which is needed at least in
android 5 (and probably earlier)
|
8 years ago |
Greg Alexander
|
14a9812c85
|
now if you tap on the notification it goes to the SimpleSSHD main
activity so you can conveniently stop the service
|
8 years ago |
Greg Alexander
|
3da61bfa96
|
make the foreground service an option
|
8 years ago |
Greg Alexander
|
ae7703fad0
|
implemented startForeground(), with some reservation
|
8 years ago |
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.
|
8 years ago |
Greg Alexander
|
a916ac5c08
|
add 'buffersu' program to wrap rsync and make sure there is no wedging
when SuperSU is combined with rsync
|
9 years ago |
Greg Alexander
|
8a1bc2c4e0
|
made the JNI methods static because they didn't use this anyways
|
10 years ago |
Greg Alexander
|
5df0610f5c
|
implement the extra dropbear commandline options
|
10 years ago |
Greg Alexander
|
637de21aca
|
add locking to resolve some thread safety issues
|
10 years ago |
Greg Alexander
|
932bfa3242
|
save the static pointer to the main Activity in SimpleSSHD because it'll
be used by more than just SimpleSSHDService..
|
10 years ago |
Greg Alexander
|
f0347f7477
|
probably startForeground() is overkill?
|
10 years ago |
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.
|
10 years ago |
Greg Alexander
|
e77351edd4
|
factor the SharedPreferences usage into its own Prefs class
|
10 years ago |
Greg Alexander
|
5248db4380
|
add a (useless) service onDestroy() to clean up the sshd
|
10 years ago |
Greg Alexander
|
58eefb02b9
|
add something to wait for the forked process to die, so it doesn't become
a zombie
|
10 years ago |
Greg Alexander
|
1febe9ebe9
|
add service lifetime termination, and notes about future service foregrounding..
|
10 years ago |
Greg Alexander
|
a9ca75accc
|
communicate the preferences to the C code
|
10 years ago |
Greg Alexander
|
8ced3ab635
|
and there's the start/stop button implementation
|
10 years ago |
Greg Alexander
|
9cac7ed132
|
make sshd_pid static
|
10 years ago |
Greg Alexander
|
720007ae32
|
now it compiles...
|
10 years ago |
Greg Alexander
|
643a5aff23
|
first draft of service
|
10 years ago |