Greg Alexander
feeee312bd
First draft of API to launch activities
...
echo 'activity -- http://buh.com ' > api/cmd
2 years ago
Greg Alexander
c9d81b5f33
Add new "Enable /sdcard" menu option that requests the
...
WRITE_EXTERNAL_STORAGE permission even if it's already been requested
once before on startup, because changing from SDK 30 to SDK 29 appears to
clear it.
4 years ago
Greg Alexander
cf41fb58d0
Update dropbear version in "About" message
4 years ago
Greg Alexander
a2aa4a2d1c
Implement the hack from stackoverflow to detect if the task is really in
...
the background even though it's in Activity.onResume() (works around
Android 9 bug).
5 years ago
Greg Alexander
01b3a65a05
make all startService calls go through
...
SimpleSSHDService.do_startService() so they can be forced through
startForegroundService or what-have-you.
5 years ago
Greg Alexander
bbbbb36795
If launching an http intent fails, then fallback to WebView (because
...
Android TV doesn't have Chrome, I guess). This resolves the conundrum of
what to do about the one Samsung Note 7 out there that doesn't have
Chrome, too.
5 years ago
Greg Alexander
97989bce7f
move the option menu items into their own _clicked functions
5 years ago
Greg Alexander
f0cef36573
moved the options menu into the main_tv layout (non-functional).
5 years ago
Greg Alexander
51ca87cc18
whoops, using a static function to differentiate derived classes...dumb.
...
use a variable instead.
5 years ago
Greg Alexander
8952d008f2
TV-LM: add launcher target for android TV (leanback)
5 years ago
Greg Alexander
823591055a
Factor out the idiom for startService() vs startForegroundService(), and
...
use it in StartReceive/StopReceiver as well as BootReceiver, so that the
sshd service can be started and stopped even if the UI is closed.
5 years ago
Greg Alexander
ebbdac1787
add org.galexander.sshd.START and org.galexander.sshd.STOP broadcast receiver
5 years ago
Greg Alexander
cf84ff9379
fix restart after a crash (it would not restart if there was a stale pid
...
file from the previous execution)
5 years ago
Greg Alexander
445c2957ec
Don't call startForegroundService() except on Oreo and above, because
...
that's when it was added.
5 years ago
Greg Alexander
23a2bda614
Limit to only displaying 5 IPs at once (the android emulator sets up
...
about 20 interfaces somehow, which really spams the screen).
5 years ago
Greg Alexander
c5fb42b1f1
Update dropbear version in "About" string.
5 years ago
Greg Alexander
7f58879b35
Implement a sanity check of settings so that if onboot is selected,
...
foreground is forced.
5 years ago
Greg Alexander
83b5dd496d
If asked to start at boot in background on Oreo, give a toast so the user
...
knows why it doesn't work.
5 years ago
Greg Alexander
e0151fa757
Now can start-on-boot on Oreo/Pie, with the caveat that start-on-boot
...
requires foreground-service.
5 years ago
Greg Alexander
9b451c9b29
Define the channel for the notification, which requires using
...
NotificationCompat, which I decided to do using "AndroidX".
Anyways, this builds, but I don't know if it works.
5 years ago
Greg Alexander
190c8588e9
request the SD card permission if it hasn't already been granted or
...
requested in the past.
5 years ago
Greg Alexander
22d7993e23
Find native lib directory the correct way, using
...
Context.getApplicationInfo().nativeLibraryDir.
5 years ago
Greg Alexander
be43d90c70
Manually convert from ant to gradle, roughly.
...
NB - Play store currently requires targetSdkVersion>=26, but will soon
(August) require >=28.
5 years ago